-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local and global costmaps are not published in multi-robot example #2446
Comments
Did you change the topics to be the right namespaced topic with compatible QoS settings? |
I think they are already namespaced. Is this what you mean? https://github.com/ros-planning/navigation2/blob/10650836e639f6c6cdb529f78a049dd0623ee46a/nav2_bringup/bringup/params/nav2_multirobot_params_1.yaml#L167 |
Did you verify that the rviz configuration is setup to visualize it? This might be something better to ask on ROS Answers. |
Well I am using the example script from nav2_bringup, so the config is from there and it should be set up correctly since it's the same config as the single robot example but namespaced. I thought I'd post here since it is the example launch file with no modifications that is not working. Also, the bots collide when I send goals that are at the same spot, so I don't think the problem is in rviz since the planners are not avoiding obstacles. |
I'm not sure what to tell you then, you'd have to do some minimal debugging and let me know what you think is wrong. There are other users using it that haven't reported issues in Foxy. |
@SteveMacenski I will look into this issue, once #2332 is over! I also tried it in Foxy and I'm also facing the same problem. |
Awesome! Thanks! 😄 another thing I wouldn't have gotten to for a long time (if ever) |
The only thing I have been able to find, by inspecting the nodes with |
Did you change the |
Yes, they are namespaced. I also tried remapping
And this is the output from the multi robot for
|
I seem to remember when we were making this that the forward So I'd try removing that forward |
Hi guys,
BUT !!! if you try this, the cotsmap will appear for only one of the robots (robot1 or robot2), one the robots will not work because as per this link the default values for groot_zmq_publisher_port and groot_zmq_server_port are 1666 and 1667, so you have to modify the nav2_params for one of the robots to use different port, for example in nav2_multirobot_params_2.yaml, you can add different ports in bt_navigator like this :
So your bt_navigator will look like:
|
So sounds like we need to do 2 things:
@Yousseflah can you submit a PR with those changes you've made? @simonchamorro can you confirm this resolves your concerns? |
Sorry for the late response, yes this fixes it! Thanks @Yousseflah ! |
Awesome, changes have been merged, closing issue |
Bug report
Required Info:
Steps to reproduce issue
Run the multi-robot example
Expected behavior
Nav2 stack works and local and global costmaps get updated just like in the single robot example.
Actual behavior
For both robots, the nav stack works, but the local and global costmaps are not being published.
Additional information
The text was updated successfully, but these errors were encountered: