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

Connecting two scaled cars with similar package and topics

asked 2021-10-26 13:54:51 -0500

SAA1995 gravatar image

updated 2021-10-27 15:33:48 -0500

Hi Everyone,

I have a problem on which I would like to ask for a solution that would take the least time to work out. So, recently for my research I built a second 1/10th scale car. In order to keep both old and new car identical, I want to use similar package that I had on old car. But, during communication using one ROS Master, I only get one set of topics for both cars instead of two set of topics, one for each car. It appears that the ROS masters topic are available but the slave car's topics don't make it. (1 car is ROS Master and the other is slave)

I did some research myself and found I could remap some of the topics for the slave car, but my package is really big and I don't want to spend a lot of time changing all of the topics to different names. Is there any other way I could have both cars on same network communicating and not have to change all of my package names ?

Also do I need to remap all my parameters as well or they get remapped automatically once I fix my remaps for topics ?

Thanks a lot for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-26 14:14:02 -0500

SAA1995 gravatar image

I think I found the solution to this problem myself. I can use the ros namespace environment variable to change the name space of the second car. Thanks to anyone who read my question.

edit flag offensive delete link more

Comments

You have solved only part of the problem. You also have to rename any Transform Frames which are robot-specific.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-10-27 07:35:46 -0500 )edit

Hi thanks a lot for the reply. Can you also think of any other things I might need to modify ?

SAA1995 gravatar image SAA1995  ( 2021-10-27 15:05:25 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-10-26 13:54:51 -0500

Seen: 62 times

Last updated: Oct 27 '21