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

Fix and rewrite collision prevention #23934

Closed
wants to merge 1 commit into from

Conversation

vishwamartur
Copy link

Related to #22464

Implement the Vector Field Histogram (VFH) algorithm for collision prevention in PX4.

  • CollisionPrevention.cpp
    • Add _implementVFHAlgorithm, _applyNegativeForce, and _applyAllowedComponents methods.
    • Update _updateObstacleMap method to handle arbitrary obstacle_distance message formats.
  • CollisionPrevention.hpp
    • Update class definition to include VFH algorithm implementation.
    • Add new parameters for adjustable number of sectors.
  • collisionprevention_params.c
    • Add new parameter CP_NUM_SECTORS for adjustable number of sectors.
  • CollisionPreventionTest.cpp
    • Add tests for VFH algorithm implementation.
    • Update existing tests to handle new obstacle_distance message formats.

Related to #22464

Implement the Vector Field Histogram (VFH) algorithm for collision prevention in PX4.

* **CollisionPrevention.cpp**
  - Add `_implementVFHAlgorithm`, `_applyNegativeForce`, and `_applyAllowedComponents` methods.
  - Update `_updateObstacleMap` method to handle arbitrary `obstacle_distance` message formats.
* **CollisionPrevention.hpp**
  - Update class definition to include VFH algorithm implementation.
  - Add new parameters for adjustable number of sectors.
* **collisionprevention_params.c**
  - Add new parameter `CP_NUM_SECTORS` for adjustable number of sectors.
* **CollisionPreventionTest.cpp**
  - Add tests for VFH algorithm implementation.
  - Update existing tests to handle new `obstacle_distance` message formats.
@dakejahl dakejahl closed this Nov 13, 2024
@dakejahl
Copy link
Contributor

a quick check of the authors github shows that he's spamming OSS repos with AI generated garbage

@vishwamartur vishwamartur deleted the fix-collision-prevention branch November 13, 2024 06:53
@vishwamartur
Copy link
Author

please let me know the issue so I can get it fixed.

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