Ask Your Question

Add two turtlebot in one .world

asked 2018-02-18 01:06:13 -0500

YIC gravatar image

Hi, I am a freshman on ROS and I meet a problem: I write a very simple .py for one turtlebot to move straight, after I add another turtlebot in the world, the original one cannot move, it used to move automatically. I really do not know the reason. In my launch file, I have not added the node of the second one.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-18 12:55:02 -0500

jayess gravatar image

You should take a look at this answer about setting up multiple robots in Gazebo. Don't worry about when the answer was made or that it's probably not the correct version of ROS. Much of it is still applicable.

edit flag offensive delete link more


Thank you, I have fixed the problem. That is because I did not change the publisher information in the code. After I add a new robot, the rostopic list has changed and original robot is changed from "cmd_vel" to "robot_0/cmd_vel"

YIC gravatar image YIC  ( 2018-02-19 11:03:42 -0500 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2018-02-18 01:06:13 -0500

Seen: 196 times

Last updated: Feb 18 '18