cnoid_ros_utils
|
Plugin item to publish topics and broadcast TF of pose and velocity of the model. More...
#include <PosePublisherItem.h>
Public Member Functions | |
PosePublisherItem () | |
PosePublisherItem (const PosePublisherItem &org) | |
~PosePublisherItem () | |
Static Public Member Functions | |
static void | initialize (cnoid::ExtensionManager *ext) |
Static Public Attributes | |
static bool | initialized_ = false |
Protected Member Functions | |
virtual cnoid::Item * | doDuplicate () const override |
virtual void | doPutProperties (cnoid::PutPropertyFunction &putProperty) override |
virtual bool | store (cnoid::Archive &archive) override |
virtual bool | restore (const cnoid::Archive &archive) override |
void | setup () |
bool | start () |
void | stop () |
void | onPostDynamics () |
int | getPubSkip () const |
Protected Attributes | |
cnoid::WorldItemPtr | world_ |
cnoid::SimulatorItemPtr | sim_ |
std::set< std::string > | hooked_sims_ |
int | post_dynamics_func_id_ = -1 |
cnoid::BodyItem * | body_item_ |
std::string | link_name_ = "" |
bool | output_tf_ = false |
std::shared_ptr< ros::NodeHandle > | nh_ |
std::string | frame_id_ = "" |
std::string | pose_topic_name_ = "" |
std::string | vel_topic_name_ = "" |
std::string | tf_child_frame_id_ = "" |
double | pub_rate_ = 30.0 |
ros::Publisher | pose_pub_ |
ros::Publisher | vel_pub_ |
std::shared_ptr< tf2_ros::TransformBroadcaster > | tf_br_ |
int | sim_cnt_ = 0 |
int | pub_skip_ = 0 |
Plugin item to publish topics and broadcast TF of pose and velocity of the model.
Properties
Link name
: target link name (root link if empty)Frame id
: frame id in the header of topic or TFPose topic name (only for topic output)
: pose topic name (cnoid/<body-name>/pose
if empty) [used only when Output TF
is false]Velocity topic name (only for topic output)
: velocity topic name (cnoid/<body-name>/vel
if empty) [used only when Output TF
is false]TF frame id (only for TF output)
: child frame id of TF (<link-name>
if empty) [used only when Output TF
is true]Publish rate
: rate of publish and broadcastOutput TF
: if true, broadcast TF, if false, publish topics Definition at line 30 of file PosePublisherItem.h.
PosePublisherItem::PosePublisherItem | ( | ) |
Definition at line 35 of file PosePublisherItem.cpp.
PosePublisherItem::PosePublisherItem | ( | const PosePublisherItem & | org | ) |
Definition at line 40 of file PosePublisherItem.cpp.
PosePublisherItem::~PosePublisherItem | ( | ) |
Definition at line 48 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 53 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 58 of file PosePublisherItem.cpp.
|
protected |
Definition at line 253 of file PosePublisherItem.cpp.
|
static |
Definition at line 18 of file PosePublisherItem.cpp.
|
protected |
Definition at line 183 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 90 of file PosePublisherItem.cpp.
|
protected |
Definition at line 103 of file PosePublisherItem.cpp.
|
protected |
Definition at line 126 of file PosePublisherItem.cpp.
|
protected |
Definition at line 173 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 77 of file PosePublisherItem.cpp.
|
protected |
Definition at line 71 of file PosePublisherItem.h.
|
protected |
Definition at line 78 of file PosePublisherItem.h.
|
protected |
Definition at line 67 of file PosePublisherItem.h.
|
inlinestatic |
Definition at line 35 of file PosePublisherItem.h.
|
protected |
Definition at line 73 of file PosePublisherItem.h.
|
protected |
Definition at line 77 of file PosePublisherItem.h.
|
protected |
Definition at line 75 of file PosePublisherItem.h.
|
protected |
Definition at line 83 of file PosePublisherItem.h.
|
protected |
Definition at line 79 of file PosePublisherItem.h.
|
protected |
Definition at line 69 of file PosePublisherItem.h.
|
protected |
Definition at line 82 of file PosePublisherItem.h.
|
protected |
Definition at line 88 of file PosePublisherItem.h.
|
protected |
Definition at line 65 of file PosePublisherItem.h.
|
protected |
Definition at line 87 of file PosePublisherItem.h.
|
protected |
Definition at line 85 of file PosePublisherItem.h.
|
protected |
Definition at line 81 of file PosePublisherItem.h.
|
protected |
Definition at line 84 of file PosePublisherItem.h.
|
protected |
Definition at line 80 of file PosePublisherItem.h.
|
protected |
Definition at line 64 of file PosePublisherItem.h.