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

Multi-navigation robot in RViz

asked 2019-02-21 20:39:46 -0500

Clark gravatar image

updated 2019-02-21 22:05:23 -0500

Hi guys,

I just finished to built one navigation robot and it worked perfectly in RViz, and now I want to build another navigation robot, and show two robots navigate simultaneously in RViz, and robot can communicate with each other. Is it possible to do this? and is there any tutorial or related knowledge? thank you very much in advance! (the robot use robot_localization and move_base package) (NOT in simulator )

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-02-22 03:02:14 -0500

PowerfulMing gravatar image

Yes! It is feasible! Just add the prefix for each robot's tf and link with the same map!

Check this video

The TF tree should looks like this

          /map
   |--------|--------|
/robot1  /robot2  /robot3
edit flag offensive delete link more

Comments

But for the topic publishing, the topic name can be the same? For example, move_base package will publish the /cmd_vel topic to robot, then how could it know which robot to publish? or do I need to change the topic name like robot_x/cmd_vel ? thanks

Clark gravatar image Clark  ( 2019-02-26 00:08:29 -0500 )edit

In the launch file, change the name space prefix

PowerfulMing gravatar image PowerfulMing  ( 2019-04-07 21:21:15 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2019-02-21 20:39:46 -0500

Seen: 273 times

Last updated: Feb 22 '19