semio_ros
0.10.6
|
Utility class to simplify the creation of semio::HumanoidSource instances. More...
#include <semio/ros/humanoid_source_adapter.h>
Public Member Functions | |
HumanoidSourceAdapter (::ros::NodeHandle const &nh_rel, std::string const &default_source="fullbody") | |
HumanoidSource::Ptr | getHumanoidSource (std::string const &source="param") |
Create a semio::HumanoidSource. More... | |
Protected Attributes | |
::ros::NodeHandle | _nh_rel |
NodeHandle copy for interfacing with ROS. More... | |
std::string | _default_source |
The type of source to use by default if param mode is selected and the ROS param _humanoid_source/type is not defined. More... | |
Utility class to simplify the creation of semio::HumanoidSource instances.
Definition at line 15 of file humanoid_source_adapter.h.
semio::ros::HumanoidSourceAdapter::HumanoidSourceAdapter | ( | ::ros::NodeHandle const & | nh_rel, |
std::string const & | default_source = "fullbody" |
||
) |
nh_rel | NodeHandle copy for interfacing with ROS. |
default_source | The type of source to use by default if param mode is selected and the ROS param _humanoid_source/type is not defined. |
Definition at line 9 of file humanoid_source_adapter.cpp.
semio::HumanoidSource::Ptr semio::ros::HumanoidSourceAdapter::getHumanoidSource | ( | std::string const & | source = "param" | ) |
Create a semio::HumanoidSource.
If the ROS param _humanoid_source/filter/smoothing
is defined, then a semio::HumanoidSmoothingFilter will be added to the source's filter list. See ROS Params for more info.
source | The type of source to create
|
"none"
will be used if the value of source
is not recognizedName | Type | Default | Description |
---|---|---|---|
_humanoid_source/type | string | _default_source | Type of source to create when source is "param" |
_humanoid_source/filter/smoothing/add | any | undefined | Define this parameter to add a default smoothing filter to incoming humanoids (when no other smoothing params are defined) |
_humanoid_source/filter/smoothing/position | float64 | undefined | The strength of the position component of the smoothing filter |
_humanoid_source/filter/smoothing/orientation | float64 | undefined | The strength of the orientation component of the smoothing filter |
_humanoid_source/filter/smoothing/confidence | float64 | undefined | The strength of the confidence component of the smoothing filter |
_humanoid_source/filter/smoothing/window | float64 | undefined | The window (duration) of the smoothing filter; 0 = use all samples |
_humanoid_source/fullbody/show_cropped_image | bool | false | Whether to display the cropped face image from semio::HumanoidSourceFullBody |
Definition at line 17 of file humanoid_source_adapter.cpp.
References _default_source, _nh_rel, semio::HumanoidSmoothingFilter::getSmoothing(), semio::HumanoidStateFilter::getStandardFilterHumanoid(), and semio::HumanoidSource::Ptr.
Referenced by main().
|
protected |
The type of source to use by default if param mode is selected and the ROS param _humanoid_source/type
is not defined.
Definition at line 21 of file humanoid_source_adapter.h.
Referenced by getHumanoidSource().
|
protected |
NodeHandle copy for interfacing with ROS.
Definition at line 19 of file humanoid_source_adapter.h.
Referenced by getHumanoidSource().