-
Notifications
You must be signed in to change notification settings - Fork 1k
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
There was a problem when using mavros2 to connect multiple drones with QGC . #1993
Comments
Bumping this up. This is indeed a problem when trying to connect multiple vehicles/instances. Essentially what seems to be happening is that there is a ton of multicast collisions when a bunch of nodes boot up, and this can cause several packets/topic updates to be missed. We have tested this repeatably on Humble/Jazzy, but interestingly, cannot replicate on Foxy so far. @XXLiu-HNU One way to "fix" the problem is to use |
We always encounter some problems when using ros2, and finally choose to return to ROS1 |
@XXLiu-HNU yes, but I don't think that's a good long-term solution, and, at the very least, does not address this particular issue. If you don't mind, I'd recommend reopening this so that it gets attention! |
Yes, we found many problems when using ROS2 for drone cluster experiments, one of which was the QGC link. In addition, when the number of ROS2 devices increased (six drones), the network often crashed.
|
Just a guess - you use the same node name (and so namespace for all the plugins). For multidrone you'd better to manually run Router and UAS nodes. |
Hello, not sure about OP, but I'm running in the same problem as @ajshank and @XXLiu-HNU. While I have the same node name for various vehicles, they are all in different namespaces (eg. /dom1/v1/nameX and /dom1/v2/nameX) |
@vooon No, the namespaces are all different (and so the fully-resolved node name should also be). To be clear, this happens when N nodes under different namespaces are active on the same wireless network (same host or different host). It appears that That being said, I think my solution above using ROS discovery limiting does work -- I will try larger numbers next week, but my tests with 2-3 connections work as expected (Jazzy). My N instances are on N different host machines, so I can use discovery limiting. If those were all on the same machine, one could use |
Background
I want to use rtk for positioning to connect six drones and ground stations through mavros
Issue details
When I used mavros2 to connect multiple drones to QGC, I found that when a certain drone started mavros_node, the other drones would automatically exit. I don't know if this is a bug or a problem.
Here is the way I start mavros:
ros2 run mavros mavros_node --ros-args --params-file ./mavros_param.yaml
and the
mavros_param.yaml
isand I change the tgt_system for different drones
MAVROS version and platform
Mavros: mavros2
ROS: galactic
Ubuntu: 20.04
MAVLink package version: 2022.8.8
Autopilot type and version
PX4
Version: 1.15.0rc
Node logs
uav1 and uav3 errors when uav5 is start, and the error is fellow:
The text was updated successfully, but these errors were encountered: