Plugin to publish topics or broadcast TF of pose and velocity of the body.
More...
#include <PosePublisher.h>
|
| PosePublisher (const mjModel *m, mjData *d, int sensor_id, const std::string &frame_id, const std::string &pose_topic_name, const std::string &vel_topic_name, mjtNum publish_rate, bool output_tf, const std::string &tf_child_frame_id) |
| Constructor. More...
|
|
Plugin to publish topics or broadcast TF of pose and velocity of the body.
Definition at line 17 of file PosePublisher.h.
◆ PosePublisher() [1/2]
MujocoRosUtils::PosePublisher::PosePublisher |
( |
PosePublisher && |
| ) |
|
|
default |
◆ PosePublisher() [2/2]
MujocoRosUtils::PosePublisher::PosePublisher |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
sensor_id, |
|
|
const std::string & |
frame_id, |
|
|
const std::string & |
pose_topic_name, |
|
|
const std::string & |
vel_topic_name, |
|
|
mjtNum |
publish_rate, |
|
|
bool |
output_tf, |
|
|
const std::string & |
tf_child_frame_id |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
m | model |
d | data |
sensor_id | sensor ID |
frame_id | frame ID of topics header or TF parent |
pose_topic_name | topic name of pose |
vel_topic_name | topic name of velocity |
publish_rate | publish rate |
output_tf | whether to broadcast TF |
tf_child_frame_id | child frame ID for TF |
Definition at line 159 of file PosePublisher.cpp.
◆ compute()
void MujocoRosUtils::PosePublisher::compute |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
Compute.
- Parameters
-
m | model |
d | data |
plugin_id | plugin ID |
Definition at line 215 of file PosePublisher.cpp.
◆ Create()
PosePublisher * MujocoRosUtils::PosePublisher::Create |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
|
static |
Create an instance.
- Parameters
-
m | model |
d | data |
plugin_id | plugin ID |
Definition at line 73 of file PosePublisher.cpp.
◆ RegisterPlugin()
void MujocoRosUtils::PosePublisher::RegisterPlugin |
( |
| ) |
|
|
static |
◆ reset()
void MujocoRosUtils::PosePublisher::reset |
( |
const mjModel * |
m, |
|
|
int |
plugin_id |
|
) |
| |
◆ body_id_
int MujocoRosUtils::PosePublisher::body_id_ = -1 |
|
protected |
◆ frame_id_
std::string MujocoRosUtils::PosePublisher::frame_id_ |
|
protected |
Frame ID of topics header or TF parent.
Definition at line 89 of file PosePublisher.h.
◆ nh_
std::shared_ptr<ros::NodeHandle> MujocoRosUtils::PosePublisher::nh_ |
|
protected |
◆ output_tf_
bool MujocoRosUtils::PosePublisher::output_tf_ = false |
|
protected |
◆ pose_pub_
ros::Publisher MujocoRosUtils::PosePublisher::pose_pub_ |
|
protected |
◆ pose_topic_name_
std::string MujocoRosUtils::PosePublisher::pose_topic_name_ |
|
protected |
◆ publish_skip_
int MujocoRosUtils::PosePublisher::publish_skip_ = 0 |
|
protected |
Iteration interval to skip ROS publish.
Definition at line 98 of file PosePublisher.h.
◆ sensor_id_
int MujocoRosUtils::PosePublisher::sensor_id_ = -1 |
|
protected |
◆ sim_cnt_
int MujocoRosUtils::PosePublisher::sim_cnt_ = 0 |
|
protected |
◆ tf_br_
std::shared_ptr<tf2_ros::TransformBroadcaster> MujocoRosUtils::PosePublisher::tf_br_ |
|
protected |
◆ tf_child_frame_id_
std::string MujocoRosUtils::PosePublisher::tf_child_frame_id_ |
|
protected |
◆ vel_pub_
ros::Publisher MujocoRosUtils::PosePublisher::vel_pub_ |
|
protected |
◆ vel_topic_name_
std::string MujocoRosUtils::PosePublisher::vel_topic_name_ |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/PosePublisher.h
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/Plugin.cpp
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/PosePublisher.cpp