[rcl_action] Implement goal handle (#320)
* Add action goal handle implementation and unit tests * Add check to goal state machine transition function for index out of bounds
This commit is contained in:
parent
1120b2f6a4
commit
b2578bbbda
5 changed files with 498 additions and 59 deletions
|
@ -32,6 +32,7 @@ add_executable(test_compile_headers
|
|||
)
|
||||
|
||||
set(rcl_action_sources
|
||||
src/${PROJECT_NAME}/goal_handle.c
|
||||
src/${PROJECT_NAME}/goal_state_machine.c
|
||||
src/${PROJECT_NAME}/names.c
|
||||
src/${PROJECT_NAME}/types.c
|
||||
|
@ -71,6 +72,18 @@ if(BUILD_TESTING)
|
|||
ament_lint_auto_find_test_dependencies()
|
||||
ament_find_gtest()
|
||||
# Gtests
|
||||
ament_add_gtest(test_goal_handle
|
||||
test/rcl_action/test_goal_handle.cpp
|
||||
)
|
||||
if(TARGET test_goal_handle)
|
||||
target_include_directories(test_goal_handle PUBLIC
|
||||
include
|
||||
${rcl_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(test_goal_handle
|
||||
${PROJECT_NAME}
|
||||
)
|
||||
endif()
|
||||
ament_add_gtest(test_goal_state_machine
|
||||
test/rcl_action/test_goal_state_machine.cpp
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue