![]() |
ros2_control - rolling
|
Base class for MuJoCo ROS 2 control plugins. More...
#include <mujoco_ros2_control_plugins_base.hpp>

Public Member Functions | |
| virtual bool | init (rclcpp::Node::SharedPtr node, const mjModel *model, mjData *data)=0 |
| Initialize the plugin. | |
| virtual void | update (const mjModel *model, mjData *data)=0 |
| Update the plugin (called every simulation step) | |
| virtual void | cleanup ()=0 |
| Cleanup the plugin. | |
Base class for MuJoCo ROS 2 control plugins.
This is an example base class that plugins can inherit from. Plugins can extend the functionality of mujoco_ros2_control by implementing custom behaviors.
|
pure virtual |
Cleanup the plugin.
Implemented in mujoco_ros2_control_plugins::HeartbeatPublisherPlugin.
|
pure virtual |
Initialize the plugin.
| node | Shared pointer to the ROS 2 node for accessing parameters |
| model | Pointer to the MuJoCo model |
| data | Pointer to the MuJoCo data |
Implemented in mujoco_ros2_control_plugins::HeartbeatPublisherPlugin.
|
pure virtual |
Update the plugin (called every simulation step)
| model | Pointer to the MuJoCo model |
| data | Pointer to the MuJoCo data |
Implemented in mujoco_ros2_control_plugins::HeartbeatPublisherPlugin.