ROS 2 Migration: gazebo_ros_api_plugin - ros-simulation/gazebo_ros_pkgs GitHub Wiki
Overview
On ROS 1, gazebo_ros_api_plugin was a large plugin which offered a lot of functionality in a bundle, giving users little flexibility to opt-in/out of features. On ROS 2, this plugin is being split into smaller, more focused plugins.
The progress of this task is being tracked on issue #779. As features are ported to ROS 2, this migration page will be updated.
gazebo_ros_init
This is a system plugin which:
- Forwards command line arguments to
rclcpp::init - Publishes sim time on
/clock - Offers the following services:
reset_worldreset_simulationpause_physicsunpause_physics
See more details on ROS 2 Migration: ROS clocks and sim time.
gazebo_ros_factory
This is a system plugin which:
- Forwards command line arguments to
rclcpp::init - Provides the
spawn_entityROS service for spawning SDF/URDF models and lights into simulation. - Provides the
delete_entityROS service for deleting models and lights from simulation.
See more details on ROS 2 Migration: Spawn and delete.
gazebo_ros_state
This is a world plugin which:
- Provides the
get_entity_stateROS service for querying the pose and twist of models, links and lights in simulation. - Provides the
set_entity_stateROS service for setting the pose and twist of models, links and lights in simulation. - Publishes the
model_statesROS topic periodically with the pose and twist of all models in simulation.
See more details on ROS 2 Migration: Entity states.
gazebo_ros_force_system
This is a system plugin which:
- Provides the
apply_link_wrenchROS service for applying force and torque to links. - Provides the
clear_link_wrenchesROS service for deleting all applied forces and torques on links. - Provides the
apply_joint_effortROS service for applying force on joints. - Provides the
clear_joint_effortsROS service for deleting all applied forces on joints.
See more details on ROS 2 Migration: Body Wrench and Joint Effort.
gazebo_ros_properties
:hourglass: TODO @shiveshkhaitan Document
- Services:
get_model_propertiesget_joint_propertiesget_link_propertiesget_light_propertiesset_joint_propertiesset_link_propertiesset_light_properties