Repository navigation
Fix Broken isValid Check in Path Components Iterator - #103
Conversation
SteveMacenski
left a comment
There was a problem hiding this comment.
The only thing I'd like is for you to confirm to me that you tested before this PR and confirmed the issue in its use in the code. I trust this is a valid solution but I want to make sure there's not some reason I did that which may not be obvious.
Why is the test not failing? https://github.com/open-navigation/opennav_coverage/blob/main/opennav_coverage/test/test_utils.cpp
Sounds good. I've added a quick iteration variable test to the current path components iterator test function. When running the tests with the old isValid check, I get the following from the test log file: This highlights that the iteration loop is going one past the expected amount. Once I added back in the quick fix the test passed |
…#103) * fix: incorrect isValid check * fix: add path component iteration index validation test
…#103) * fix: incorrect isValid check * fix: add path component iteration index validation test
* Fix Broken isValid Check in Path Components Iterator (#103) * fix: incorrect isValid check * fix: add path component iteration index validation test (cherry picked from commit 40c2d84) Signed-off-by: u33549 <[email protected]> * docs: add XML usage examples to BT plugin doxygen descriptions (#104) Signed-off-by: AJedancov <[email protected]> (cherry picked from commit e023454) Signed-off-by: u33549 <[email protected]> * Fix `ros2 param list` due to issue with default_custom_order (#151) Before this patch, `ros2 param dump` and `rqt_reconfigure` would not work: ``` ros2 run opennav_coverage opennav_coverage ros2 lifecycle set /coverage_server configure ros2 lifecycle set /coverage_server activate ros2 param dump /coverage_server /coverage_server: ros__parameters: {} ``` After this patch, `ros2 param dump` works as expected: ``` ros2 param dump /coverage_server /coverage_server: ros__parameters: /bond_disable_heartbeat_timeout: true action_server_result_timeout: 10.0 ... ``` Signed-off-by: Ramon Wijnands <[email protected]> Co-authored-by: Copilot <[email protected]> Adapted for humble: nav2_util::declare_parameter_if_not_declared. (cherry picked from commit 7942d38) Signed-off-by: u33549 <[email protected]> * Add a useful error if the headland is too large (#150) Signed-off-by: Ramon Wijnands <[email protected]> Adapted for humble: reformatted for humble's ament_uncrustify. (cherry picked from commit 04858cf) Signed-off-by: u33549 <[email protected]> * Fix dependencies missing from package.xml (#153) Adapted for humble: behaviortree_cpp_v3 and backported_bt_navigator kept; nav2_ros_common and nav2_bt_navigator are not used on humble and are left out. Also declares and includes ament_index_cpp in the navigator, the non-CI part of #163 (cherry picked from commit eb43d10). (cherry picked from commit 2fb8254) Signed-off-by: u33549 <[email protected]> * Make visualizers transient_local (#155) Signed-off-by: Alireza Moayyedi <[email protected]> Adapted for humble: the headland_swaths publisher does not exist here. (cherry picked from commit aa04819) Signed-off-by: u33549 <[email protected]> * Set headers on generated coverage path poses (#159) * Set headers on generated coverage path poses Signed-off-by: Bram Odrosslij <[email protected]> * Set pose headers in the PathState converter Signed-off-by: Bram Odrosslij <[email protected]> --------- Signed-off-by: Bram Odrosslij <[email protected]> Adapted for humble: keeps humble's existing SWATH densify check in TesttoNavPathMsg. (cherry picked from commit c4c1225) Signed-off-by: u33549 <[email protected]> --------- Signed-off-by: u33549 <[email protected]> Co-authored-by: Joey Quinlan <[email protected]> Co-authored-by: Andrei Jedancov <[email protected]> Co-authored-by: Ramon Wijnands <[email protected]> Co-authored-by: Tim Clephas <[email protected]> Co-authored-by: Alireza Moayyedi <[email protected]> Co-authored-by: Bram O <[email protected]>
* fix: Add global frame ID to UTM path poses. (#90) This fixes an issue with visualization of the UTM path in Foxglove Studio which requires that the path frame_id match all the pose frame_ids. (cherry picked from commit 77dcdca) Signed-off-by: u33549 <[email protected]> * Fix Broken isValid Check in Path Components Iterator (#103) * fix: incorrect isValid check * fix: add path component iteration index validation test (cherry picked from commit 40c2d84) Signed-off-by: u33549 <[email protected]> * docs: add XML usage examples to BT plugin doxygen descriptions (#104) Signed-off-by: AJedancov <[email protected]> (cherry picked from commit e023454) Signed-off-by: u33549 <[email protected]> * Fix `ros2 param list` due to issue with default_custom_order (#151) Before this patch, `ros2 param dump` and `rqt_reconfigure` would not work: ``` ros2 run opennav_coverage opennav_coverage ros2 lifecycle set /coverage_server configure ros2 lifecycle set /coverage_server activate ros2 param dump /coverage_server /coverage_server: ros__parameters: {} ``` After this patch, `ros2 param dump` works as expected: ``` ros2 param dump /coverage_server /coverage_server: ros__parameters: /bond_disable_heartbeat_timeout: true action_server_result_timeout: 10.0 ... ``` Signed-off-by: Ramon Wijnands <[email protected]> Co-authored-by: Copilot <[email protected]> Adapted for jazzy: nav2_util::declare_parameter_if_not_declared. (cherry picked from commit 7942d38) Signed-off-by: u33549 <[email protected]> * Add a useful error if the headland is too large (#150) Signed-off-by: Ramon Wijnands <[email protected]> (cherry picked from commit 04858cf) Signed-off-by: u33549 <[email protected]> * Fix dependencies missing from package.xml (#153) Adapted for jazzy: nav2_ros_common and nav2_bt_navigator are not used on jazzy and are left out. Also declares and includes ament_index_cpp in the navigator, the non-CI part of #163 (cherry picked from commit eb43d10). (cherry picked from commit 2fb8254) Signed-off-by: u33549 <[email protected]> * Make visualizers transient_local (#155) Signed-off-by: Alireza Moayyedi <[email protected]> Adapted for jazzy: the headland_swaths publisher does not exist here. (cherry picked from commit aa04819) Signed-off-by: u33549 <[email protected]> * Set headers on generated coverage path poses (#159) * Set headers on generated coverage path poses Signed-off-by: Bram Odrosslij <[email protected]> * Set pose headers in the PathState converter Signed-off-by: Bram Odrosslij <[email protected]> --------- Signed-off-by: Bram Odrosslij <[email protected]> Adapted for jazzy: keeps jazzy's existing SWATH densify check in TesttoNavPathMsg. (cherry picked from commit c4c1225) Signed-off-by: u33549 <[email protected]> --------- Signed-off-by: u33549 <[email protected]> Co-authored-by: Bryan Bush <[email protected]> Co-authored-by: Joey Quinlan <[email protected]> Co-authored-by: Andrei Jedancov <[email protected]> Co-authored-by: Ramon Wijnands <[email protected]> Co-authored-by: Tim Clephas <[email protected]> Co-authored-by: Alireza Moayyedi <[email protected]> Co-authored-by: Bram O <[email protected]>
This is a really really simple PR to fix the isValid check #102
closes #102