This tutorial covers connecting the position2d Player interfaces to Gazebo.
Create a working directory
cd; mkdir gazebo_position2d; cd gazebo_position2d
Copy the config script below into a file called
position2d.cfg. The following script is also accessible via this link.
driver ( name "gazebo" provides ["simulation:0"] plugin "libgazebo_player" # The name of a running Gazebo world, specified in a .world file world_name "default" ) driver ( name "gazebo" provides ["position2d:0"] # This name must match the name of a model in the "default" world model_name "pioneer2dx" )
You can now drive the pioneer2dx using playerv.