How to spawn turtlebot at a defied position instead of origin?

asked 2020-04-13 17:44:20 -0600

hulkthewitchhunter gravatar image

updated 2020-04-13 17:45:12 -0600

So by default, the turtlebot is spawned at the origin. I have a 5x5 map so how can I spawn turtlebot at say, (2,3)?

Also, I copied the lauch folder from /opt/ros/kinetic/share/turtlebot_gazebo to my package named trial. Then I set the TURTLEBOT_GAZEBO_WORLD_FILE=/home/kacd/catkin_ws/src/trial/worlds/map.world to load the turtlebot to my custom world.

Is there any better way of doing it?

edit retag flag offensive close merge delete