ROS API

Beginning with C-Turtle (latest releases) distro, gazebo is started as a ROS node, offering the following ROS API interfaces.

Gazebo Subscribed Topics

gazebo/set_link_state (gazebo/LinkState)

  • Sets the state (pose/twist) of a link.
gazebo/set_model_state (gazebo/ModelState)
  • Sets the state (pose/twist) of a model.

Gazebo Published Parameters

/use_sim_time (Bool)

  • Notifies ROS to use published /clock topic for ROS time.

Gazebo Published Topics

/clock (roslib/Clock)

  • Publish simulation time, to be used with /use_sim_time parameter.
gazebo/link_states (gazebo/LinkStates)
  • Publishes states of all the links in simulation.
gazebo/model_states (gazebo/ModelStates)
  • Publishes states of all the models in simulation.

Gazebo Services

Services

Create and destroy models in simulation
These services allows user to spawn and destroy models in simulation
gazebo/spawn_urdf_model (gazebo/SpawnModel)
  • Use this service to spawn a urdf model.
gazebo/spawn_gazebo_model (gazebo/SpawnModel)
  • Use this service to spawn a model written in Gazebo XML model description.
gazebo/delete_model (gazebo/DeleteModel)
  • This service allows user to delete a model from simulation.
State and properties getters
These services allows user to retrieve state and property information about simulation and objects in simulation
gazebo/get_model_properties (gazebo/GetModelProperties)
  • This service returns the properties of a model in simulation.
gazebo/get_model_state (gazebo/GetModelState)
  • This service returns the states of a model in simulation.
gazebo/get_world_properties (gazebo/GetWorldProperties)
  • This service returns the properties of the simulation world.
gazebo/get_joint_properties (gazebo/GetJointProperties)
  • This service returns the properties of a joint in simulation.
gazebo/get_link_properties (gazebo/GetLinkProperties)
  • This service returns the properties of a link in simulation.
gazebo/get_link_state (gazebo/GetLinkState)
  • This service returns the states of a link in simulation.
gazebo/get_physics_properties (gazebo/GetPhysicsProperties)
  • This service returns the properties of the physics engine used in simulation.
State and properties setters
These services allows user to set state and property information about simulation and objects in simulation
gazebo/set_link_properties (gazebo/SetLinkProperties)
  • This service sets the properties of a link in simulation.
gazebo/set_physics_properties (gazebo/SetPhysicsProperties)
  • This service allows user to set properties of a link in simulation.
gazebo/set_model_state (gazebo/SetModelState)
  • This service allows user to set properties of a link in simulation.
gazebo/set_joint_properties (gazebo/SetJointProperties)
  • This service allows user to set properties of a link in simulation.
gazebo/set_link_state (gazebo/SetLinkState)
  • This service allows user to set properties of a link in simulation.
Simulation control
These services allows user to pause and unpause physics in simulation
gazebo/pause_physics (std_srvs/Empty)
  • Pause physics updates.
gazebo/unpause_physics (std_srvs/Empty)
  • Resume physics updates.
Force control
These services allows user to apply wrenches and forces to bodies and joints in simulation
gazebo/apply_body_wrench (gazebo/ApplyBodyWrench)
  • Apply wrench to a body in simulation.
gazebo/apply_joint_effort (gazebo/ApplyJointEffort)
  • Apply effort to a joint in simulation.
gazebo/clear_joint_forces (gazebo/JointRequest)
  • Clear applied efforts to a joint.
gazebo/clear_body_wrenches (gazebo/BodyRequest)
  • Clear applied wrench to a body.

Wiki: gazebo/cturtle (last edited 2011-02-01 00:44:28 by hsu)