ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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
0

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

Comments

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

Question Tools

2 followers

Stats

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

Seen: 274 times

Last updated: Feb 18 '18