-
Hey all, currently, I'm trying to set up crazyswarm on my system. We are using lighthouse V1 setup with the crazyflie(2.1). I have been able to set up and successfully fly with more than two drones. Now I want to test the onboard collision avoidance with two or more drones. Down below there is a little demo to test the onboard collision avoidance feature. Unfortunately, the collision avoidance didn't work in the experiments. However, in the simulation it works as intended. Is there anything special I have to be aware of when using it? Kind regards,
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hi, I am having the same problem. I am also using the V1 system and the same Crazyflies. However, I just tried to run the provided script collisionAvoidance.py and it did not work. The drones fly, but it does not look like they are avoiding each other. I followed the installation instructions on this website and configured the system accordingly. |
Beta Was this translation helpful? Give feedback.
-
for collision avoidance to occur, the CFs must be on the same radio channel. |
Beta Was this translation helpful? Give feedback.
-
For my side, both CF are on the same channel (ID radio://0/100/2M/E7E7E7E700 and radio://0/100/2M/E7E7E7E701), but there is still no sign of any collision avoidance when running the program above. Is there anything else that should be taken into account? Could there be a way to figure out what's going wrong? |
Beta Was this translation helpful? Give feedback.
-
Lighthouse is a distributed localization system, so each drone just estimates its own position (and by default keeps it to itself). The collision-avoidance mode we have assumes that each drone knows about the neighboring drones. When using a motion capture, this knowledge is easy to obtain, because Crazyswarm broadcasts the position information of all Crazyflies (so every single one knows where all members of the swarm are). In case of the LightHouse, you would need to implement this information sharing yourself using the peer2peer communication functionality. |
Beta Was this translation helpful? Give feedback.
Lighthouse is a distributed localization system, so each drone just estimates its own position (and by default keeps it to itself). The collision-avoidance mode we have assumes that each drone knows about the neighboring drones. When using a motion capture, this knowledge is easy to obtain, because Crazyswarm broadcasts the position information of all Crazyflies (so every single one knows where all members of the swarm are). In case of the LightHouse, you would need to implement this information sharing yourself using the peer2peer communication functionality.