-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Interactive drone controlled - cross-platform #211
Interactive drone controlled - cross-platform #211
Conversation
Does it work only on macos or cross-platform? if the latter would be great to merge it |
@zhouxian I think it should work cross-platform (keyboard input with |
nice example.. I copied and posted the code into seperate files. was able to run the fly.py. For the interactive_drone.py, I was able to launch, saw the viewer, but the arrow control did not work for me. I am on Macbook pro M4. did not see error in std out. Any insight why this would be the case? |
Hi Pieter, Thank you for your great PR! I tried your code, and it works perfectly. For security reasons, I removed the pickle and embedded the trajectory directly into the code. I also added an argument to support visualization on Linux. Additionally, I formatted the code using Black to ensure it passes CI. Thank you again for your contribution! I’ve created a PR to your branch. Please try it out and let me know if it causes any issues. |
support Linux; black format; and delete pickle
@YilingQiao Thank you for the improvement. I like the option of the |
@zhouxian Works cross-platform now |
@YilingQiao could you make final approval? |
@PieterBecking We really appreciate your time and help.
After those I will merge this PR. Thank you! |
Ubuntu 24 - python interactive_drone.py --vis |
Drone Examples
This directory contains examples of drone simulations using the Genesis framework.
Available Examples
1. Interactive Drone (
interactive_drone.py
)A real-time interactive drone simulation where you can control the drone using keyboard inputs:
Run with:
2. Automated Flight (
fly.py
)A pre-programmed drone flight simulation that follows a predefined trajectory stored in
fly_traj.pkl
.Run with:
python fly.py -v # -v flag enables visualization
Technical Details
urdf/drones/cf2x.urdf
)Controls Implementation
The interactive drone uses differential RPM control:
Edit: thank you for open-sourcing this project. Really awesome work!