ros-navigation / navigation2

ROS 2 Navigation Framework and System
https://nav2.org/
Other
2.51k stars 1.27k forks source link

Move projectState after getPointsInside #4356

Closed BriceRenaudeau closed 4 months ago

BriceRenaudeau commented 4 months ago

Basic Info

Info Please fill out this column
Ticket(s) this addresses #4355
Primary OS tested on Ubuntu
Robotic platform tested on Our simulation
Does this PR contain AI generated software? No

Description of contribution in a few bullet points


For Maintainers:

tonynajjar commented 4 months ago

Seems like there are a bunch of tests that fail now:

    [  FAILED  ] 3 tests, listed below:
    [  FAILED  ] Tester.testProcessApproachRotation
    [  FAILED  ] Tester.testCrossOver
    [  FAILED  ] Tester.testSourceTimeoutOverride
SteveMacenski commented 4 months ago

Ditto on tests + run this locally and please verify it removes the problem you were looking to address + doesn't break the general behavior of the system.

I trust tests, but something this low-level I want tested on robots when possible (and I hope you want that too :wink: )

BriceRenaudeau commented 4 months ago

I trust tests, but something this low-level I want tested on robots when possible (and I hope you want that too 😉 )

The test on robot went well.

The unit test failures come from the change in time. The modified method returns the collision time, not the time before the collision. I will make it keep the previous behavior.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files Coverage Δ
nav2_collision_monitor/src/polygon.cpp 97.16% <100.00%> (+0.02%) :arrow_up:

... and 13 files with indirect coverage changes