Tutorials/beginner/player

Player is a robot control framework, please visit their website for more infomartion.

This tutorial covers connecting the position2d, laser, and camera Player interfaces to Gazebo.


 * 1) Position 2d Interface ###

Create a working directory

cd; mkdir gazebo_position2d; cd gazebo_position2d


 * World File**

Copy the SDF code below into a file called `position.world`

  

 


 * Player Config**

Copy the config script below into a file called `position.cfg`

driver (         name "gazebo"          provides ["simulation:0"]          plugin "libgazebo_player"

# The name of a runnign 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" )


 * Run**

Run the Gazebo server

gzserver position.world

Run Gazebo GUI

gzclient

Run Player

player position.cfg

Run playerv

playerv

You can now drive the pioneer2dx using playerv.