|
@@ -8,9 +8,12 @@ project(ros_test_pkg)
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
## is used, also find other catkin packages
|
|
## is used, also find other catkin packages
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
|
|
+ dynamic_reconfigure
|
|
roscpp
|
|
roscpp
|
|
std_msgs
|
|
std_msgs
|
|
message_generation
|
|
message_generation
|
|
|
|
+ actionlib
|
|
|
|
+ actionlib_msgs
|
|
)
|
|
)
|
|
|
|
|
|
## System dependencies are found with CMake's conventions
|
|
## System dependencies are found with CMake's conventions
|
|
@@ -59,16 +62,16 @@ add_service_files(
|
|
)
|
|
)
|
|
|
|
|
|
## Generate actions in the 'action' folder
|
|
## Generate actions in the 'action' folder
|
|
-# add_action_files(
|
|
|
|
-# FILES
|
|
|
|
-# Action1.action
|
|
|
|
-# Action2.action
|
|
|
|
-# )
|
|
|
|
|
|
+add_action_files(
|
|
|
|
+ FILES
|
|
|
|
+ myAction.action
|
|
|
|
+)
|
|
|
|
|
|
## Generate added messages and services with any dependencies listed here
|
|
## Generate added messages and services with any dependencies listed here
|
|
generate_messages(
|
|
generate_messages(
|
|
DEPENDENCIES
|
|
DEPENDENCIES
|
|
std_msgs
|
|
std_msgs
|
|
|
|
+ actionlib_msgs
|
|
)
|
|
)
|
|
|
|
|
|
################################################
|
|
################################################
|
|
@@ -86,10 +89,9 @@ generate_messages(
|
|
## and list every .cfg file to be processed
|
|
## and list every .cfg file to be processed
|
|
|
|
|
|
## Generate dynamic reconfigure parameters in the 'cfg' folder
|
|
## Generate dynamic reconfigure parameters in the 'cfg' folder
|
|
-# generate_dynamic_reconfigure_options(
|
|
|
|
-# cfg/DynReconf1.cfg
|
|
|
|
-# cfg/DynReconf2.cfg
|
|
|
|
-# )
|
|
|
|
|
|
+generate_dynamic_reconfigure_options(
|
|
|
|
+ cfg/dynamic.cfg
|
|
|
|
+)
|
|
|
|
|
|
###################################
|
|
###################################
|
|
## catkin specific configuration ##
|
|
## catkin specific configuration ##
|
|
@@ -139,6 +141,9 @@ add_executable(server_node src/server_node.cpp)
|
|
add_executable(client_node src/client_node.cpp)
|
|
add_executable(client_node src/client_node.cpp)
|
|
|
|
|
|
add_executable(turtlesim_control_node src/control_turtle.cpp)
|
|
add_executable(turtlesim_control_node src/control_turtle.cpp)
|
|
|
|
+
|
|
|
|
+add_executable(action_server src/action_server.cpp)
|
|
|
|
+add_executable(action_client src/action_client.cpp)
|
|
## Rename C++ executable without prefix
|
|
## Rename C++ executable without prefix
|
|
## The above recommended prefix causes long target names, the following renames the
|
|
## The above recommended prefix causes long target names, the following renames the
|
|
## target back to the shorter version for ease of user use
|
|
## target back to the shorter version for ease of user use
|
|
@@ -152,6 +157,12 @@ add_dependencies(subscribe_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXP
|
|
|
|
|
|
add_dependencies(server_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
add_dependencies(server_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
add_dependencies(client_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
add_dependencies(client_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
+
|
|
|
|
+add_dependencies(action_server ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
+add_dependencies(action_client ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
+
|
|
|
|
+add_dependencies(turtlesim_control_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
+
|
|
## Specify libraries to link a library or executable target against
|
|
## Specify libraries to link a library or executable target against
|
|
target_link_libraries(publish_node
|
|
target_link_libraries(publish_node
|
|
${catkin_LIBRARIES}
|
|
${catkin_LIBRARIES}
|
|
@@ -170,6 +181,13 @@ target_link_libraries(client_node
|
|
target_link_libraries(turtlesim_control_node
|
|
target_link_libraries(turtlesim_control_node
|
|
${catkin_LIBRARIES}
|
|
${catkin_LIBRARIES}
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+target_link_libraries(action_server
|
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
|
+)
|
|
|
|
+target_link_libraries(action_client
|
|
|
|
+ ${catkin_LIBRARIES}
|
|
|
|
+)
|
|
#############
|
|
#############
|
|
## Install ##
|
|
## Install ##
|
|
#############
|
|
#############
|