ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

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

asked 2020-04-13 17:45:56 -0600

Hulkthehunter gravatar image

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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-14 00:05:46 -0600

electrophod gravatar image

1) Spawn is a service which the turtlebot3 server provides. When you launch the launch file, the spawn service is called with (0,0) as the parameters. IF you wan to spawn the turtle at (x,y) you will have to make changes in the launch file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-04-13 17:45:56 -0600

Seen: 653 times

Last updated: Apr 14 '20