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

Replaced reset estimator in single drone examples #515

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

ArisMorgens
Copy link
Member

Converted the 'reset estimator' to a cflib function for the regular single drone examples so the scripts are getting smaller and look cleaner. This is based on this issue. The new file is located in crazyflie-lib-python/cflib/utils.

Modified Files:

In autonomy:

  1. autonomousSequence.py
  2. autonomous_sequence_high_level.py
  3. autonomous_sequence_high_level_compressed.py
  4. circling_square_demo.py (I removed the reset estimator because the swarm class is used.)
  5. full_state_setpoint_demo.py

In lighthouse

  1. lighthouse_openvr_grab.py
  2. lighthouse_openvr_grab_color.py
  3. lighthouse_openvr_multigrab.py

In mocap

  1. mocap_hl_commander.py
  2. qualisys_hl_commander.py

In positioning

  1. flowsequenceSync.py
  2. initial_position.py

@gemenerik
Copy link
Member

To make the tests pass, run pre-commit locally, and make sure it passes. Then commit and push the changes.

@ArisMorgens ArisMorgens force-pushed the Aris/Single_Drone_Reset_Estimator branch from c480b0e to 76f29c6 Compare February 11, 2025 15:10
Copy link
Member

@gemenerik gemenerik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

cflib/utils/ResetEstimator.py Outdated Show resolved Hide resolved
cflib/utils/ResetEstimator.py Outdated Show resolved Hide resolved
examples/autonomy/circling_square_demo.py Show resolved Hide resolved
@ArisMorgens ArisMorgens merged commit 77b131f into master Feb 13, 2025
1 check passed
@ArisMorgens ArisMorgens deleted the Aris/Single_Drone_Reset_Estimator branch February 13, 2025 09:34
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.

2 participants