USC-ACTLab / crazyswarm

A Large Quadcopter Swarm
MIT License
319 stars 316 forks source link

Cant send the crazyflies commands after running another script with ROS #735

Closed nl22-nmsu closed 12 months ago

nl22-nmsu commented 1 year ago

I currently have two crazyflies that I want to takeoff, figure out the closest landing zone, and then go and land on it. I have a separate script that I'm using to determine the closest landing zone; it's using the positions topics from vrpn client and ouputs each drone's assignment.

The issue I'm having is that after takeoff I run this other script and then I can't send commands to the crazyflies. I get the error "service [/cf1/goTo] returned no response".

Any help would be appreciated.

xkhainguyen commented 1 year ago

I assume you created two identical CrazyflieServer nodes at once. I am not sure how to fix this in the best way either. What is the best way to control 2 crazyflies from 2 seperate scripts? @whoenig