Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sim2real transfer for betaflight #218

Open
saghavart opened this issue May 24, 2024 · 2 comments
Open

Sim2real transfer for betaflight #218

saghavart opened this issue May 24, 2024 · 2 comments
Labels
question Further information is requested

Comments

@saghavart
Copy link

Hi. I am planning to use your framework for my Reinforcement Learning task. I saw that there is Betaflight support. My question is how can I achieve sim2real transfer for betaflight. Shall I write a new flight mode and build the new firmware? And also betaflight is using his own controller, so how is my RL code integrated on top of it? Are ther any succesful examples?

@JacopoPan
Copy link
Member

The instructions to run the example using Betaflight (in simulation) are detailed here. It leverages the SITL version of BF to compute motor controls from CTBR commands.

The simulation environment in gym_pybullet_drones/envs/BetaAviary.py has a CTBR action space so, if you train an RL policy on it, it should output actions already compatible with BF. However, for sim2real transfer you also need to know the state of the system/drone. Are you going to use a MoCap system?

@JacopoPan JacopoPan added the question Further information is requested label Jun 2, 2024
@saghavart
Copy link
Author

Thank you for answer. No, I want to deploy it outdoors. The only state I need are IMU,barometer and output from camera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants