semio_ros
0.10.6
|
semio::HumanoidSink to sink humanoids to ROS More...
#include <semio/ros/humanoid_sink_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 | |
HumanoidSinkROS (::ros::NodeHandle const &nh_rel, std::string const &topic="humanoids") | |
Public Member Functions inherited from semio::HumanoidSink | |
HumanoidSink () | |
void | publish (HumanoidArray const &humanoids) |
HumanoidMultiStageFilter & | getFilter () |
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 |
semio::HumanoidSink to sink humanoids to ROS
Topic | Type | Description |
---|---|---|
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.
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.
semio::ros::HumanoidSinkROS::HumanoidSinkROS | ( | ::ros::NodeHandle const & | nh_rel, |
std::string const & | topic = "humanoids" |
||
) |
nh_rel | NodeHandle copy for interfacing with ROS. |
topic | ROS topic on which to publish humanoids |
Definition at line 3 of file humanoid_sink_ros.cpp.
|
protectedvirtual |
Convert humanoids
to a ROS message and publish it to ROS.
humanoids | The 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().
|
static |
Create a _HumanoidJointMsg from a semio::HumanoidJoint.
joint | The joint to use |
joint
Definition at line 30 of file humanoid_sink_ros.cpp.
References toROSMsgPtr().
Referenced by toROSMsgPtr().
|
static |
Create a _HumanoidMsg from a semio::Humanoid.
humanoid | The humanoid to use |
humanoid
Definition at line 52 of file humanoid_sink_ros.cpp.
References toROSMsgPtr().
|
static |
Create a _HumanoidsMsg from a semio::Humanoids.
humanoids | The humanoid array to use |
humanoids
Definition at line 72 of file humanoid_sink_ros.cpp.
References toROSMsgPtr().
|
static |
Create a _HumanoidJointMsg::Ptr from a semio::HumanoidJoint.
joint | The joint to use |
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().
|
static |
Create a _HumanoidMsg::Ptr from a semio::Humanoid.
humanoid | The humanoid to use |
humanoid
Definition at line 35 of file humanoid_sink_ros.cpp.
References semio::Humanoid::id_, semio::Humanoid::joints_, toROSMsg(), and semio::Humanoid::tracking_state_.
|
static |
Create a _HumanoidsMsg::Ptr from a semio::Humanoids.
humanoids | The humanoid array to use |
humanoids
Definition at line 57 of file humanoid_sink_ros.cpp.
References toROSMsg().
|
protected |
Publisher for humanoid messages.
Definition at line 37 of file humanoid_sink_ros.h.
Referenced by publishToSink().
|
protected |
NodeHandle copy for interfacing with ROS.
Definition at line 35 of file humanoid_sink_ros.h.