USC-ACTLab / crazyswarm

A Large Quadcopter Swarm
MIT License
328 stars 324 forks source link

I haven´t communication with crazyflie using crazyswarm #225

Closed eduardo-del closed 3 years ago

eduardo-del commented 4 years ago

Hi guys i have a little problem, I haven't communication when i try tu run python figure8_csv.py

this are the steps that i did:

cd ros_ws/src/crazyswarm/scripts python chooser.py

then appears a window crazyflie Chosser, when i click to battery button this messages appear:

../../../../scripts/battery.py:10: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ../../../../scripts/battery.py:12: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. timeout

  1. The simulation with python figure8_csv.py --sim run correctly
  2. When i try run figure8_csv without --sim the crazyflie haven't communication I first did

    source ros_ws/devel/setup.bash roslaunch crazyswarm hover_swarm.launch and in other terminal

python figure8_csv.py but the crazyflie isn't connected, i use optitrack and firmware 2020.06 the optitrack show me the frames of the crazyflie on rviz.

some one can help me with the communication thank you.

whoenig commented 4 years ago

What is the URI of your Crazyflie and how does your allCrazyflies.yaml look like?

eduardo-del commented 4 years ago

the URI is 0/80/250K/E7E7E7E701

and

allCrazyflies.yaml

`crazyflies:

whoenig commented 4 years ago

The datarate needs to be set to 2M instead of 250K for the Crazyswarm. You can change this setting using the official cfclient.

eduardo-del commented 4 years ago

Okay, I will do it, thank you so much @whoenig , and also for the help on crazyflie_ros.

eduardo-del commented 4 years ago

Hi @whoenig i had the same problem when i changed the URI on official cfclient, should I change other file or thing?

Thank you so much.

easy98 commented 4 years ago

Hello, I also meet the same problem, how do you solve it?

eduardo-del commented 4 years ago

Hi @easy98, no i have the same problem really i didn't follow with crazyswarm. I'm using crazyflie_ros, but if you want maybe we can help us with crazyswarm and make a solution.

easy98 commented 4 years ago

I solved my problem, since I forget to change the vicon's host name in the hover.launch file. Now it works.

eduardo-del commented 4 years ago

Good for you @easy98