Skip to content

Commit

Permalink
Completely rewritten spin, backup, and drive on heading tests to remo…
Browse files Browse the repository at this point in the history
…ve flakiness (ros-navigation#4515)

* port backup behavior to new gazebo

Signed-off-by: stevedan <[email protected]>

* port drive on heading behavior to new gazebo

Signed-off-by: stevedan <[email protected]>

* completely rewritten spin test

* lint

* complete flaky test rewrite

---------

Signed-off-by: stevedan <[email protected]>
Signed-off-by: Steve Macenski <[email protected]>
Co-authored-by: stevedan <[email protected]>
  • Loading branch information
2 people authored and Marc-Morcos committed Jul 4, 2024
1 parent 8b84f4e commit cec249b
Show file tree
Hide file tree
Showing 21 changed files with 1,259 additions and 1,911 deletions.
4 changes: 2 additions & 2 deletions nav2_system_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ if(BUILD_TESTING)
# add_subdirectory(src/gps_navigation)
add_subdirectory(src/behaviors/wait)
add_subdirectory(src/behaviors/spin)
# add_subdirectory(src/behaviors/backup)
# add_subdirectory(src/behaviors/drive_on_heading)
add_subdirectory(src/behaviors/backup)
add_subdirectory(src/behaviors/drive_on_heading)
add_subdirectory(src/behaviors/assisted_teleop)
add_subdirectory(src/costmap_filters)
add_subdirectory(src/error_codes)
Expand Down
23 changes: 4 additions & 19 deletions nav2_system_tests/src/behaviors/backup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
set(test_backup_behavior test_backup_behavior_node)

ament_add_gtest_executable(${test_backup_behavior}
test_backup_behavior_node.cpp
backup_behavior_tester.cpp
)

ament_target_dependencies(${test_backup_behavior}
${dependencies}
)

ament_add_test(test_backup_recovery
ament_add_test(test_backup_behavior
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test_backup_behavior_launch.py"
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test_backup_behavior.launch.py"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
TIMEOUT 180
TIMEOUT 60
ENV
TEST_MAP=${PROJECT_SOURCE_DIR}/maps/map_circular.yaml
TEST_EXECUTABLE=$<TARGET_FILE:${test_backup_behavior}>
TEST_WORLD=${PROJECT_SOURCE_DIR}/worlds/turtlebot3_ros2_demo.world
GAZEBO_MODEL_PATH=${PROJECT_SOURCE_DIR}/models
BT_NAVIGATOR_XML=navigate_to_pose_w_replanning_and_recovery.xml
TEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}
)
223 changes: 0 additions & 223 deletions nav2_system_tests/src/behaviors/backup/backup_behavior_tester.cpp

This file was deleted.

90 changes: 0 additions & 90 deletions nav2_system_tests/src/behaviors/backup/backup_behavior_tester.hpp

This file was deleted.

Loading

0 comments on commit cec249b

Please sign in to comment.