Skip to content

Commit c4d3504

Browse files
committed
Basic testing on the level of nav1 robot adapter
Signed-off-by: Aaron Chong <[email protected]>
1 parent 6ce12d5 commit c4d3504

File tree

11 files changed

+898
-55
lines changed

11 files changed

+898
-55
lines changed

free_fleet/free_fleet/ros1_types.py

+5
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,8 @@ class GoalStatus:
9292
class GoalStatusArray:
9393
type_name = 'actionlib_msgs/msg/GoalStatusArray'
9494
msg_type = ROS1_STORE.types[type_name]
95+
96+
97+
class BatteryState:
98+
type_name = 'sensor_msgs/msg/BatteryState'
99+
msg_type = ROS1_STORE.types[type_name]

free_fleet_adapter/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ install(PROGRAMS
1010
${PROJECT_NAME}/fleet_adapter.py
1111
${PROJECT_NAME}/nav1_robot_adapter.py
1212
${PROJECT_NAME}/nav2_robot_adapter.py
13+
${PROJECT_NAME}/robot_adapter.py
1314
DESTINATION lib/${PROJECT_NAME}
1415
)
1516

@@ -48,9 +49,12 @@ if(BUILD_TESTING)
4849
)
4950
endforeach()
5051
elseif (NAV1_INTEGRATION_TESTING)
52+
# test_nav1_move_base_handler and test_nav1_robot_adapter will affect one
53+
# another, therefore only one can be run during integration testing
5154
set(_pytest_tests
52-
tests/integration/test_nav1_move_base.py
55+
# tests/integration/test_nav1_move_base_handler.py
5356
tests/integration/test_nav1_tf_handler.py
57+
tests/integration/test_nav1_robot_adapter.py
5458
)
5559
foreach(_test_path ${_pytest_tests})
5660
get_filename_component(_test_name ${_test_path} NAME_WE)

0 commit comments

Comments
 (0)