semio_ros
0.10.6
|
semio::HumanoidSource to source humanoids from ROS More...
#include <semio/ros/humanoid_source_ros.h>
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 | |
HumanoidSourceROS (::ros::NodeHandle const &nh_rel, std::string const &topic="humanoids") | |
Public Member Functions inherited from semio::HumanoidSource | |
HumanoidSource () | |
HumanoidSource (__Arg &&arg, __Args &&...args) | |
HumanoidArray const & | update () |
HumanoidArray const & | get () const |
HumanoidMultiStageFilter & | getFilter () |
HumanoidMultiStageFilter const & | getFilter () const |
HumanoidSource (__Arg &&arg, __Args &&...args) | |
Static Public Member Functions | |
static HumanoidJoint | fromROSMsg (_HumanoidJointMsg const &msg) |
Create a semio::HumanoidJoint from a humanoid joint message. More... | |
static Humanoid | fromROSMsg (_HumanoidMsg const &msg) |
Create a semio::Humanoid from a humanoid message. More... | |
static HumanoidArray | fromROSMsg (_HumanoidsMsg const &msg) |
Create a semio::HumanoidArray from a humanoids message. More... | |
Protected Member Functions | |
HumanoidArray | updateFromSource () |
Convert _last_humanoids_msg to a semio::HumanoidArray. More... | |
void | humanoidsCB (_HumanoidsMsg::ConstPtr const &msg) |
ROS callback for humanoids messages. More... | |
Protected Attributes | |
::ros::NodeHandle | _nh_rel |
NodeHandle copy for interfacing with ROS. More... | |
::ros::Subscriber | _humanoids_sub |
Subscriber for humanoid messages. More... | |
_HumanoidsMsg::ConstPtr | _last_humanoids_msg |
ConstPtr to the last message received from ROS. More... | |
Protected Attributes inherited from semio::HumanoidSource | |
HumanoidArray | _humanoids |
HumanoidMultiStageFilter | _filter |
Additional Inherited Members | |
Data Fields inherited from semio::HumanoidSource | |
decltype(std::make_shared< HumanoidSource >()) typedef | Ptr |
decltype(std::make_shared< HumanoidSource const >()) typedef | ConstPtr |
semio::HumanoidSource to source humanoids from ROS
Topic | Type | Description |
---|---|---|
Subscriptions | ||
variable; see topic param of HumanoidSourceROS() | semio_msgs_ros/Humanoids | _HumanoidsMsg messages to convert to semio::HumanoidArray |
Definition at line 23 of file humanoid_source_ros.h.
typedef semio_msgs_ros::HumanoidJoint semio::ros::HumanoidSourceROS::_HumanoidJointMsg |
ROS message for a humanoid joint.
Definition at line 31 of file humanoid_source_ros.h.
typedef semio_msgs_ros::Humanoid semio::ros::HumanoidSourceROS::_HumanoidMsg |
ROS message for a single humanoid.
Definition at line 29 of file humanoid_source_ros.h.
typedef semio_msgs_ros::Humanoids semio::ros::HumanoidSourceROS::_HumanoidsMsg |
ROS message for a vector of humanoids.
Definition at line 27 of file humanoid_source_ros.h.
semio::ros::HumanoidSourceROS::HumanoidSourceROS | ( | ::ros::NodeHandle const & | nh_rel, |
std::string const & | topic = "humanoids" |
||
) |
nh_rel | NodeHandle copy for interfacing with ROS. |
topic | ROS topic on which to look for humanoids |
Definition at line 3 of file humanoid_source_ros.cpp.
|
static |
Create a semio::HumanoidJoint from a humanoid joint message.
msg | ConstPtr to the humanoid joint message |
msg
Definition at line 22 of file humanoid_source_ros.cpp.
Referenced by fromROSMsg(), and updateFromSource().
|
static |
Create a semio::Humanoid from a humanoid message.
msg | ConstPtr to the humanoid message |
msg
Definition at line 32 of file humanoid_source_ros.cpp.
References fromROSMsg().
|
static |
Create a semio::HumanoidArray from a humanoids message.
msg | ConstPtr to the humanoids message |
msg
Definition at line 46 of file humanoid_source_ros.cpp.
References fromROSMsg().
|
protected |
ROS callback for humanoids messages.
msg | ConstPtr to the humanoids message |
msg
Definition at line 59 of file humanoid_source_ros.cpp.
References _last_humanoids_msg.
|
protectedvirtual |
Convert _last_humanoids_msg to a semio::HumanoidArray.
Implements semio::HumanoidSource.
Definition at line 11 of file humanoid_source_ros.cpp.
References _last_humanoids_msg, and fromROSMsg().
|
protected |
Subscriber for humanoid messages.
Definition at line 37 of file humanoid_source_ros.h.
|
protected |
ConstPtr to the last message received from ROS.
Definition at line 39 of file humanoid_source_ros.h.
Referenced by humanoidsCB(), and updateFromSource().
|
protected |
NodeHandle copy for interfacing with ROS.
Definition at line 35 of file humanoid_source_ros.h.