Plugin to publish clock topic.
More...
#include <ClockPublisher.h>
|
| ClockPublisher (const mjModel *m, mjData *d, const std::string &topic_name, mjtNum publish_rate, bool use_sim_time) |
| Constructor. More...
|
|
Plugin to publish clock topic.
Definition at line 17 of file ClockPublisher.h.
◆ ClockPublisher() [1/2]
◆ ClockPublisher() [2/2]
MujocoRosUtils::ClockPublisher::ClockPublisher |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
const std::string & |
topic_name, |
|
|
mjtNum |
publish_rate, |
|
|
bool |
use_sim_time |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
m | model |
d | data |
topic_name | topic name of clock |
publish_rate | publish rate |
use_sim_time | value of use_sim_time rosparam |
Definition at line 116 of file ClockPublisher.cpp.
◆ compute()
void MujocoRosUtils::ClockPublisher::compute |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
◆ Create()
ClockPublisher * MujocoRosUtils::ClockPublisher::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 69 of file ClockPublisher.cpp.
◆ RegisterPlugin()
void MujocoRosUtils::ClockPublisher::RegisterPlugin |
( |
| ) |
|
|
static |
◆ reset()
void MujocoRosUtils::ClockPublisher::reset |
( |
const mjModel * |
m, |
|
|
int |
plugin_id |
|
) |
| |
◆ nh_
rclcpp::Node::SharedPtr MujocoRosUtils::ClockPublisher::nh_ |
|
protected |
◆ pub_
rclcpp::Publisher<rosgraph_msgs::msg::Clock>::SharedPtr MujocoRosUtils::ClockPublisher::pub_ |
|
protected |
◆ publish_skip_
int MujocoRosUtils::ClockPublisher::publish_skip_ = 0 |
|
protected |
◆ sim_cnt_
int MujocoRosUtils::ClockPublisher::sim_cnt_ = 0 |
|
protected |
◆ topic_name_
std::string MujocoRosUtils::ClockPublisher::topic_name_ |
|
protected |
◆ use_sim_time_
bool MujocoRosUtils::ClockPublisher::use_sim_time_ = false |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/colcon_ws/src/isri-aist/MujocoRosUtils/plugin/ClockPublisher.h
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/colcon_ws/src/isri-aist/MujocoRosUtils/plugin/ClockPublisher.cpp