|
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 |
| rclcpp::Node::SharedPtr | 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 |
| rclcpp::Publisher< geometry_msgs::msg::PoseStamped >::SharedPtr | pose_pub_ |
| rclcpp::Publisher< geometry_msgs::msg::TwistStamped >::SharedPtr | 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 31 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 259 of file PosePublisherItem.cpp.
|
static |
Definition at line 18 of file PosePublisherItem.cpp.
|
protected |
Definition at line 185 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 92 of file PosePublisherItem.cpp.
|
protected |
Definition at line 105 of file PosePublisherItem.cpp.
|
protected |
Definition at line 128 of file PosePublisherItem.cpp.
|
protected |
Definition at line 175 of file PosePublisherItem.cpp.
|
overrideprotectedvirtual |
Definition at line 79 of file PosePublisherItem.cpp.
|
protected |
Definition at line 72 of file PosePublisherItem.h.
|
protected |
Definition at line 79 of file PosePublisherItem.h.
|
protected |
Definition at line 68 of file PosePublisherItem.h.
|
inlinestatic |
Definition at line 36 of file PosePublisherItem.h.
|
protected |
Definition at line 74 of file PosePublisherItem.h.
|
protected |
Definition at line 78 of file PosePublisherItem.h.
|
protected |
Definition at line 76 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 70 of file PosePublisherItem.h.
|
protected |
Definition at line 83 of file PosePublisherItem.h.
|
protected |
Definition at line 89 of file PosePublisherItem.h.
|
protected |
Definition at line 66 of file PosePublisherItem.h.
|
protected |
Definition at line 88 of file PosePublisherItem.h.
|
protected |
Definition at line 86 of file PosePublisherItem.h.
|
protected |
Definition at line 82 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 65 of file PosePublisherItem.h.