1 #ifndef _SEMIO_ROS_HUMANOIDSOURCEROS_H_ 2 #define _SEMIO_ROS_HUMANOIDSOURCEROS_H_ 5 #include <ros/node_handle.h> 6 #include <semio_msgs_ros/Humanoids.h> 46 HumanoidSourceROS( ::ros::NodeHandle
const & nh_rel, std::string
const & topic =
"humanoids" );
81 void humanoidsCB( _HumanoidsMsg::ConstPtr
const & msg );
88 #endif // _SEMIO_ROS_HUMANOIDSOURCEROS_H_
::ros::Subscriber _humanoids_sub
Subscriber for humanoid messages.
semio_msgs_ros::HumanoidJoint _HumanoidJointMsg
ROS message for a humanoid joint.
HumanoidSourceROS(::ros::NodeHandle const &nh_rel, std::string const &topic="humanoids")
::ros::NodeHandle _nh_rel
NodeHandle copy for interfacing with ROS.
void humanoidsCB(_HumanoidsMsg::ConstPtr const &msg)
ROS callback for humanoids messages.
semio_msgs_ros::Humanoids _HumanoidsMsg
ROS message for a vector of humanoids.
static HumanoidJoint fromROSMsg(_HumanoidJointMsg const &msg)
Create a semio::HumanoidJoint from a humanoid joint message.
_HumanoidsMsg::ConstPtr _last_humanoids_msg
ConstPtr to the last message received from ROS.
semio::HumanoidSource to source humanoids from ROS
HumanoidArray updateFromSource()
Convert _last_humanoids_msg to a semio::HumanoidArray.
std::vector< semio::Humanoid > HumanoidArray
semio_msgs_ros::Humanoid _HumanoidMsg
ROS message for a single humanoid.