Skip to content

Comments

Rework wind cost function in ompl objectives#817

Open
AMaharaj16 wants to merge 6 commits intomainfrom
AMaharaj16/wind-cost-rework-793
Open

Rework wind cost function in ompl objectives#817
AMaharaj16 wants to merge 6 commits intomainfrom
AMaharaj16/wind-cost-rework-793

Conversation

@AMaharaj16
Copy link
Contributor

The function wind_direction_cost() in ompl_objectives.py now correctly returns 1.0 when the segment heading lies within NO_GO_ZONE radians (45 degrees) of directly upwind (0) or directly downwind (π), and applies sin80(2θ) otherwise. Also replaced old test with new fully passing test suite for this improved implementation in test_ompl_objectives.py.

The wind cost function looks like this:
Screenshot 2026-02-18 222413

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.

1 participant