![]() |
ros2_control - kilted
|
Plugin that runs gravity compensation on a force torque sensor. More...
#include <fts_grav_comp_plugin.hpp>


Public Member Functions | |
| std::vector< std::string > | get_sensor_names_from_parameters () |
| Parses the params file and returns a vector of unique sensor names. | |
| bool | register_fts (const mjModel *model) |
| Register force torque sensors from the model that match the params. | |
| bool | init (rclcpp::Node::SharedPtr node, const mjModel *model, mjData *data) override |
| Initialize the plugin. | |
| void | update_read (const mjModel *model, mjData *data) override |
| Compensate the force/torque sensors in the state read by ros2_control. | |
| void | cleanup () override |
| Cleanup the plugin. | |
| std::vector< FtsData > | get_fts_data () const |
| getter for fts data used for testing | |
Public Member Functions inherited from mujoco_ros2_control_plugins::MuJoCoROS2ControlPluginBase | |
| virtual void | update_write (const mjModel *model, mjData *data) |
Called once per write() cycle, on the control thread, after the hardware interface has staged the controller commands and right before they are sent to the simulation. | |
| virtual void | update (const mjModel *, mjData *) |
Same as update_write(). Default does nothing. | |
| virtual void | pre_step (mjData *) |
| Called immediately before every simulation step on the physics thread. Default does nothing. | |
| virtual void | on_reset (mjData *) |
| Called after a world reset (ResetWorld service or UI reset). Default does nothing. | |
Plugin that runs gravity compensation on a force torque sensor.
|
overridevirtual |
Cleanup the plugin.
Implements mujoco_ros2_control_plugins::MuJoCoROS2ControlPluginBase.
|
overridevirtual |
Initialize the plugin.
Implements mujoco_ros2_control_plugins::MuJoCoROS2ControlPluginBase.
|
overridevirtual |
Compensate the force/torque sensors in the state read by ros2_control.
Reimplemented from mujoco_ros2_control_plugins::MuJoCoROS2ControlPluginBase.