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

Feature/camera tracking drone #239

Merged

Conversation

PieterBecking
Copy link
Contributor

Camera tracking the drone while flying

Changes

  • Modified camera initialization to position it behind the drone instead of at its side
  • Updated camera tracking logic to maintain the "from behind" perspective while following the drone
  • Adjusted camera offset values for better viewing angle (4 units back, 2 units up)

Benefits

  • More intuitive drone control as forward/backward movements align with the camera view
  • Better visibility of the drone's heading direction

Details

  • Updated update_camera() function offsets to maintain consistent behind-view perspective
  • Camera now follows drone with defaults:
    • X offset: 0.0 (centered horizontally)
    • Y offset: -4.0 (4 units behind in Y axis)
    • Z offset: 2.0 (2 units above)

Controls

Same as before

Testing

  • Confirmed improved control intuitiveness with the new perspective
  • Tested smooth camera transitions during rapid direction changes

@PieterBecking
Copy link
Contributor Author

Here's how it looks while operating the drone:

cam-tracking-drone.mov

@00make
Copy link
Collaborator

00make commented Dec 23, 2024

looks awesome

@zhouxian zhouxian merged commit da7c363 into Genesis-Embodied-AI:main Dec 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants