-
Notifications
You must be signed in to change notification settings - Fork 192
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
Multirobot support #261
Comments
I'd just like to suggest that for ROS2 we avoid solely relying on prefixing namespace as resorted to in ROS1 to partitioning robots. A first class abstraction of a robot could be much more powerful than attempting to push every namespace into prefix, given the limited length of ROS2 namespaces, and number of DDS topics per robot (just running nav2 turtlebot demo adds up to ~366 topics). As for the transport level, I think DDS partitions could be nice axis to project the entity of a robot onto, as DDS domains may be too extreme; preventing topic participants from easily communicating across robots, .e.g. from rclpy.robot import Robot
class MinimalBot(Robot):
def __init__(self):
super().__init__('minimal_robot')
robot_pub = self.create_publisher(String, 'pose', 10, robot="/bot1")
swarm_sub = self.create_subscription(String, 'pose', callback, 10, robot="/bot*") Not sure how to bubble up to subscribers listing to across robots from which robot/partition a message was received from, but perhaps we could add a 'robot' handle to extend the return type to callbacks. |
My assumption was that namespaces mapped to DDS partitions. |
That's not the case. I placed the "backlog" label on this issue as part of our triage process, but interested team members will comment on it. Also, this might be something that could be better discussed on discourse as part of WG or the "next gen" category, at least until there's concrete work to be done. |
If you want to avoid discovery entirely, then DDS domains are probably the right solution. The domain id can be selected with the
I'm not sure I agree with this. I don't think we should have a "robot" concept, instead it would be better, in my opinion, to have an array of communication features and let people decide how to use them. One team might prefer to separate their robots one way and another in a different way. My opinion on this has always been that there's no silver bullet for multi-robot, so ROS should just give tools to people so they can accomplish it the best way they know how. It's fine to have some recommendations, but by having a built-in "robot selection" mechanism we'd be selecting one of them, perhaps steering people away from better solutions for their use case. Adding a mechanism equivalent to DDS Partitions to ROS would be a big undertaking. The only reasons would be to gain more characters for namespacing (partitions are also limited in length) or to subscribe across multiple "topics" at once (but this is where a lot of the complexity comes in). The number of topics isn't really the constraint here, it's the depth of the namespace... You can have as many topics as you want as long as you don't have extremely long topic names. That's a resource that system integrator will have to manage. A lot of these trade-offs are talked about here: https://design.ros2.org/articles/topic_and_service_names.html#alternative-using-dds-partitions |
I know it has been a while since this issue was created, but I wanted to add a little bit to the conversation about using partitions for multi-robot/entity systems. At OpenROV, we used DDS partitions for this purpose with great success, which I will describe below.
There are some additional advantages to using partitions, rather than using Domains:
I know it may be difficult to reintroduce the concept of using partitions to ROS2, but I think it would be a valuable discussion to have. Would love to hear yours and other's thoughts, @wjwwood. Also happy to clarify and expand upon any of the above if there are questions. |
This issue has been mentioned on ROS Discourse. There might be relevant details there: |
This issue has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/restricting-communication-between-robots/2931/16 |
This issue has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/restricting-communication-between-robots/2931/30 |
Not sure if this is the best place to ask.
Has there been any design discussions on how to support multi-robot systems in ROS2?
I see that this topic is on the ros2 roadmap. We are at the point where this is an important feature for us and we would like to partition our systems such that individual robot topics are not discoverable across the system.
The text was updated successfully, but these errors were encountered: