1 #ifndef _SEMIO_ROS_HUMANOIDSINKROS_H_ 2 #define _SEMIO_ROS_HUMANOIDSINKROS_H_ 5 #include <ros/node_handle.h> 6 #include <semio_msgs_ros/Humanoids.h> 44 HumanoidSinkROS( ::ros::NodeHandle
const & nh_rel, std::string
const & topic =
"humanoids" );
97 #endif // _SEMIO_ROS_HUMANOIDSINKROS_H_ ::ros::NodeHandle _nh_rel
NodeHandle copy for interfacing with ROS.
virtual void publishToSink(HumanoidArray const &humanoids)
Convert humanoids to a ROS message and publish it to ROS.
semio_msgs_ros::Humanoid _HumanoidMsg
ROS message for a single humanoid.
static _HumanoidJointMsg toROSMsg(HumanoidJoint const &joint)
Create a _HumanoidJointMsg from a semio::HumanoidJoint.
semio::HumanoidSink to sink humanoids to ROS
semio_msgs_ros::HumanoidJoint _HumanoidJointMsg
ROS message for a humanoid joint.
static _HumanoidJointMsg::Ptr toROSMsgPtr(HumanoidJoint const &joint)
Create a _HumanoidJointMsg::Ptr from a semio::HumanoidJoint.
semio_msgs_ros::Humanoids _HumanoidsMsg
ROS message for a vector of humanoids.
std::vector< semio::Humanoid > HumanoidArray
::ros::Publisher _humanoids_pub
Publisher for humanoid messages.
HumanoidSinkROS(::ros::NodeHandle const &nh_rel, std::string const &topic="humanoids")