Replies: 4 comments 1 reply
-
Both options have been explored, although perhaps not on the Crazyflie platform. Training a policy to output attitude rates and keeping an on-board attitude controller is easier (and thus perhaps the better starting point). One famous example is Davide Scaramuzzas work, where human pilots perform worse than an RL policy. It's also possible to directly learn motor forces, see https://sites.google.com/view/sim-to-multi-quad for an example (& discussion of difficulties). The same group has also extended this work to the multi-robot case with collision avoidance. In short, domain randomization seems to be sufficient to bridge the sim-to-real gap, although it remains an art to select what to randomize by how much. For the circular trajectory task, the key idea is usually to have a "relative setpoint", so in simulation you always train to move to (0,0,0), but if you have a real trajectory, you change that relative error based on your actual goal. |
Beta Was this translation helpful? Give feedback.
-
Hi @whoenig, I've been trying to set up CrazySwarm2 with my Crazyflies but have encountered several issues:
I'm happy to create separate issues for each problem if needed. |
Beta Was this translation helpful? Give feedback.
-
Hi @whoenig
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello Crazyswarm2 community,
I'm working on a project to perform sim2real transfer of quadcopter control tasks using the gym-pybullet-simulator. My goal is to train policies in simulation and then deploy them on real Crazyflie drones. I have access to a Vicon motion capture system for precise positioning data.
My current setup is as follows:
I'm looking for advice and tips on how to effectively bridge the sim-to-real gap for this project using crazyswarm2:
What are the key differences between the gym-pybullet simulation and real Crazyflie dynamics that I should be aware of?
The plan is to start with a single agent and then scale up to multiple agents. Any insights or experiences you can share would be greatly appreciated. Once successful, I commit to publishing a comprehensive, step-by-step guide for Sim-to-Real with Crazyflies and Crazyswarm accompanied by videos. I believe this will serve as a valuable resource for the community.
Beta Was this translation helpful? Give feedback.
All reactions