Skip to content

Commit

Permalink
Basic testing on the level of nav1 robot adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Dec 30, 2024
1 parent 6ce12d5 commit c4d3504
Show file tree
Hide file tree
Showing 11 changed files with 898 additions and 55 deletions.
5 changes: 5 additions & 0 deletions free_fleet/free_fleet/ros1_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ class GoalStatus:
class GoalStatusArray:
type_name = 'actionlib_msgs/msg/GoalStatusArray'
msg_type = ROS1_STORE.types[type_name]


class BatteryState:
type_name = 'sensor_msgs/msg/BatteryState'
msg_type = ROS1_STORE.types[type_name]
6 changes: 5 additions & 1 deletion free_fleet_adapter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ install(PROGRAMS
${PROJECT_NAME}/fleet_adapter.py
${PROJECT_NAME}/nav1_robot_adapter.py
${PROJECT_NAME}/nav2_robot_adapter.py
${PROJECT_NAME}/robot_adapter.py
DESTINATION lib/${PROJECT_NAME}
)

Expand Down Expand Up @@ -48,9 +49,12 @@ if(BUILD_TESTING)
)
endforeach()
elseif (NAV1_INTEGRATION_TESTING)
# test_nav1_move_base_handler and test_nav1_robot_adapter will affect one
# another, therefore only one can be run during integration testing
set(_pytest_tests
tests/integration/test_nav1_move_base.py
# tests/integration/test_nav1_move_base_handler.py
tests/integration/test_nav1_tf_handler.py
tests/integration/test_nav1_robot_adapter.py
)
foreach(_test_path ${_pytest_tests})
get_filename_component(_test_name ${_test_path} NAME_WE)
Expand Down
Loading

0 comments on commit c4d3504

Please sign in to comment.