Problem hovering multiple crazyflies
See original GitHub issueHi,
I’m having trouble flying multiple crazyflies (cfs) at once.
Using hover_swarm.launch
I successfully got crazyflie 1 (cf1) and crazyflie7 (cf7) to hover independently. Both have approximately the same marker placement. I would place each at [0,0,0] and run hover_swarm.launch
and each would hover.
Then, to get multiple cfs hovering, I made the following changes to crazyflie.yaml
:
crazyflies:
- channel: 80
id: 1
initialPosition: [0.0, 0.5, 0.0]
- channel: 86
id: 7
initialPosition: [0.0, 0.0, 0.0]
I ran hover_swarm.laucnh
but I got the following:
[ INFO] [1517418080.991244623]: Wait for services...
[ INFO] [1517418080.999312318]: waitForService: Service [/takeoff] has not been advertised, waiting...
[ INFO] [1517418081.018830845]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
[ INFO] [1517418081.020966378]: waitForService: Service [/takeoff] is now available.
[ INFO] [1517418081.033966664]: Manager ready.
crazyflies.size = 2
crazyflie id and channel are: 1 80
crazyflie id and channel are: 7 86
[ INFO] [1517418081.034869807]: All CFs are ready!
running runFast
Connecting to VICON...
Connected to VICON!
[ INFO] [1517418081.079185555]: motion capture type defined
ch: 2
radio: 1
radio: 0
libusb: warning [add_to_flying_list] failed to arm first timerfd (errno 9)
I tried uploading trajectories and pressing the start button, but nothing happened.
Am I doing something wrong?
Thank you.
note: I am using only one crazyradio.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Flying Multiple Crazyfiles - Bitcraze Forums
So far, I have tested autonomous flying with one Crazyflie 2.1 by Python scripting using cflib. I have no problem getting data by...
Read more >(PDF) Flying multiple UAVs using ROS - ResearchGate
PDF | This tutorial chapter will teach readers how to use ROS to fly a small quadcopter both individually and as a group....
Read more >Hovering Crazyflie Autonomously using ROS+Optitrack
Optitrack issues: Not providing Robust tracking; Threshold and exposure features of cameras are important; Sensitive to ambient light (better performance in the ...
Read more >Development of a Swarm Control Platform
It also supports flying multiple Crazyflies on one USB Radio, and multiple radios per computer, further reducing the scale up cost. As a...
Read more >Welcome to Crazyswarm's documentation! — Crazyswarm 0.3 ...
The Crazyswarm platform allows you to fly a swarm of Bitcraze Crazyflie 2.x and ... Both can be used to control several Crazyflies...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
By design you need one radio per channel, because each channel/radio runs in its own thread. So either plug in a second radio, or change the channel for both CFs to 80 (or 86).
Please confirm if that fixes your problem. If so, we should add some proper error checking for that case…
This issue is closed - please open a new issue.
There is no need to change the hover_swarm launch file. All you need to to is to update allCrazyflies.yaml and select the subset of CFs you are planning to use in chooser.py.