semio_ros  0.10.6
semio::ros::HumanoidSinkROS Class Reference

semio::HumanoidSink to sink humanoids to ROS More...

#include <semio/ros/humanoid_sink_ros.h>

+ Inheritance diagram for semio::ros::HumanoidSinkROS:
+ Collaboration diagram for semio::ros::HumanoidSinkROS:

Public Types

typedef semio_msgs_ros::Humanoids _HumanoidsMsg
 ROS message for a vector of humanoids. More...
 
typedef semio_msgs_ros::Humanoid _HumanoidMsg
 ROS message for a single humanoid. More...
 
typedef semio_msgs_ros::HumanoidJoint _HumanoidJointMsg
 ROS message for a humanoid joint. More...
 

Public Member Functions

 HumanoidSinkROS (::ros::NodeHandle const &nh_rel, std::string const &topic="humanoids")
 
- Public Member Functions inherited from semio::HumanoidSink
 HumanoidSink ()
 
void publish (HumanoidArray const &humanoids)
 
HumanoidMultiStageFiltergetFilter ()
 
HumanoidMultiStageFilter const & getFilter () const
 

Static Public Member Functions

static _HumanoidJointMsg::Ptr toROSMsgPtr (HumanoidJoint const &joint)
 Create a _HumanoidJointMsg::Ptr from a semio::HumanoidJoint. More...
 
static _HumanoidJointMsg toROSMsg (HumanoidJoint const &joint)
 Create a _HumanoidJointMsg from a semio::HumanoidJoint. More...
 
static _HumanoidMsg::Ptr toROSMsgPtr (Humanoid const &humanoid)
 Create a _HumanoidMsg::Ptr from a semio::Humanoid. More...
 
static _HumanoidMsg toROSMsg (Humanoid const &humanoid)
 Create a _HumanoidMsg from a semio::Humanoid. More...
 
static _HumanoidsMsg::Ptr toROSMsgPtr (HumanoidArray const &humanoids)
 Create a _HumanoidsMsg::Ptr from a semio::Humanoids. More...
 
static _HumanoidsMsg toROSMsg (HumanoidArray const &humanoids)
 Create a _HumanoidsMsg from a semio::Humanoids. More...
 

Protected Member Functions

virtual void publishToSink (HumanoidArray const &humanoids)
 Convert humanoids to a ROS message and publish it to ROS. More...
 

Protected Attributes

::ros::NodeHandle _nh_rel
 NodeHandle copy for interfacing with ROS. More...
 
::ros::Publisher _humanoids_pub
 Publisher for humanoid messages. More...
 
- Protected Attributes inherited from semio::HumanoidSink
HumanoidMultiStageFilter _filter
 

Additional Inherited Members

- Data Fields inherited from semio::HumanoidSink
decltype(std::make_shared< HumanoidSink >()) typedef Ptr
 
decltype(std::make_shared< HumanoidSink const >()) typedef ConstPtr
 

Detailed Description

semio::HumanoidSink to sink humanoids to ROS

ROS Topics
TopicTypeDescription
Publications
variable; see topic param of HumanoidSinkROS()semio_msgs_ros/Humanoids_HumanoidsMsg messages to convert to semio::HumanoidArray

Definition at line 23 of file humanoid_sink_ros.h.

Member Typedef Documentation

typedef semio_msgs_ros::HumanoidJoint semio::ros::HumanoidSinkROS::_HumanoidJointMsg

ROS message for a humanoid joint.

Definition at line 31 of file humanoid_sink_ros.h.

typedef semio_msgs_ros::Humanoid semio::ros::HumanoidSinkROS::_HumanoidMsg

ROS message for a single humanoid.

Definition at line 29 of file humanoid_sink_ros.h.

typedef semio_msgs_ros::Humanoids semio::ros::HumanoidSinkROS::_HumanoidsMsg

ROS message for a vector of humanoids.

Definition at line 27 of file humanoid_sink_ros.h.

Constructor & Destructor Documentation

semio::ros::HumanoidSinkROS::HumanoidSinkROS ( ::ros::NodeHandle const &  nh_rel,
std::string const &  topic = "humanoids" 
)
Parameters
nh_relNodeHandle copy for interfacing with ROS.
topicROS topic on which to publish humanoids

Definition at line 3 of file humanoid_sink_ros.cpp.

Member Function Documentation

void semio::ros::HumanoidSinkROS::publishToSink ( HumanoidArray const &  humanoids)
protectedvirtual

Convert humanoids to a ROS message and publish it to ROS.

Parameters
humanoidsThe semio::HumanoidArray to convert and publish to ROS

Implements semio::HumanoidSink.

Definition at line 77 of file humanoid_sink_ros.cpp.

References _humanoids_pub, and toROSMsgPtr().

+ Here is the call graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidJointMsg semio::ros::HumanoidSinkROS::toROSMsg ( HumanoidJoint const &  joint)
static

Create a _HumanoidJointMsg from a semio::HumanoidJoint.

Parameters
jointThe joint to use
Returns
A _HumanoidJointMsg initialized from the data in joint

Definition at line 30 of file humanoid_sink_ros.cpp.

References toROSMsgPtr().

Referenced by toROSMsgPtr().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidMsg semio::ros::HumanoidSinkROS::toROSMsg ( Humanoid const &  humanoid)
static

Create a _HumanoidMsg from a semio::Humanoid.

Parameters
humanoidThe humanoid to use
Returns
A _HumanoidMsg initialized from the data in humanoid

Definition at line 52 of file humanoid_sink_ros.cpp.

References toROSMsgPtr().

+ Here is the call graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidsMsg semio::ros::HumanoidSinkROS::toROSMsg ( HumanoidArray const &  humanoids)
static

Create a _HumanoidsMsg from a semio::Humanoids.

Parameters
humanoidsThe humanoid array to use
Returns
A _HumanoidsMsg initialized from the data in humanoids

Definition at line 72 of file humanoid_sink_ros.cpp.

References toROSMsgPtr().

+ Here is the call graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidJointMsg::Ptr semio::ros::HumanoidSinkROS::toROSMsgPtr ( HumanoidJoint const &  joint)
static

Create a _HumanoidJointMsg::Ptr from a semio::HumanoidJoint.

Parameters
jointThe joint to use
Returns
A _HumanoidJointMsg::Ptr initialized from the data in joint

Definition at line 11 of file humanoid_sink_ros.cpp.

References semio::HumanoidJoint::joint_type_, semio::HumanoidJoint::orientation_, semio::HumanoidJoint::orientation_confidence_, semio::HumanoidJoint::position_, and semio::HumanoidJoint::position_confidence_.

Referenced by publishToSink(), and toROSMsg().

+ Here is the caller graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidMsg::Ptr semio::ros::HumanoidSinkROS::toROSMsgPtr ( Humanoid const &  humanoid)
static

Create a _HumanoidMsg::Ptr from a semio::Humanoid.

Parameters
humanoidThe humanoid to use
Returns
A _HumanoidMsg::Ptr initialized from the data in humanoid

Definition at line 35 of file humanoid_sink_ros.cpp.

References semio::Humanoid::id_, semio::Humanoid::joints_, toROSMsg(), and semio::Humanoid::tracking_state_.

+ Here is the call graph for this function:

semio::ros::HumanoidSinkROS::_HumanoidsMsg::Ptr semio::ros::HumanoidSinkROS::toROSMsgPtr ( HumanoidArray const &  humanoids)
static

Create a _HumanoidsMsg::Ptr from a semio::Humanoids.

Parameters
humanoidsThe humanoid array to use
Returns
A _HumanoidsMsg::Ptr initialized from the data in humanoids

Definition at line 57 of file humanoid_sink_ros.cpp.

References toROSMsg().

+ Here is the call graph for this function:

Field Documentation

::ros::Publisher semio::ros::HumanoidSinkROS::_humanoids_pub
protected

Publisher for humanoid messages.

Definition at line 37 of file humanoid_sink_ros.h.

Referenced by publishToSink().

::ros::NodeHandle semio::ros::HumanoidSinkROS::_nh_rel
protected

NodeHandle copy for interfacing with ROS.

Definition at line 35 of file humanoid_sink_ros.h.


The documentation for this class was generated from the following files: