Final version of actor plugin
This commit is contained in:
28
src/ros_actor_message_queue_msgs/CMakeLists.txt
Normal file
28
src/ros_actor_message_queue_msgs/CMakeLists.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
|
||||
project(ros_actor_message_queue_msgs)
|
||||
|
||||
find_package(ament_cmake REQUIRED)
|
||||
|
||||
add_library(${PROJECT_NAME} INTERFACE)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} INTERFACE
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:include>"
|
||||
)
|
||||
target_link_libraries(${PROJECT_NAME} INTERFACE)
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
EXPORT "export_${PROJECT_NAME}"
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION lib
|
||||
INCLUDES DESTINATION include
|
||||
)
|
||||
|
||||
install(DIRECTORY include/${PROJECT_NAME}/
|
||||
DESTINATION include/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
ament_export_targets("export_${PROJECT_NAME}")
|
||||
|
||||
ament_package()
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace ros_actor_message_queue_msgs{
|
||||
enum ActorPluginState{
|
||||
SETUP,IDLE,ANIMATION,MOVEMENT
|
||||
};
|
||||
|
||||
struct FeedbackMessage{
|
||||
ActorPluginState state;
|
||||
float progress;
|
||||
};
|
||||
|
||||
struct ActionMessage{
|
||||
ActorPluginState state;
|
||||
float positionX = 0.0f, positionY = 0.0f, positionZ = 0.0f;
|
||||
float animationSpeed = 1.0f,animationDistance = 1.0f;
|
||||
char animationName[256];
|
||||
};
|
||||
}
|
||||
15
src/ros_actor_message_queue_msgs/package.xml
Normal file
15
src/ros_actor_message_queue_msgs/package.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="3">
|
||||
<name>ros_actor_message_queue_msgs</name>
|
||||
<version>0.0.0</version>
|
||||
<description>POSIX message queue struct definitions for ros_actor_action_server</description>
|
||||
<maintainer email="bastian@todo.todo">Bastian Hofmann</maintainer>
|
||||
<license>TODO: License declaration</license>
|
||||
|
||||
<depend>ament_cmake</depend>
|
||||
|
||||
<export>
|
||||
<build_type>ament_cmake</build_type>
|
||||
</export>
|
||||
</package>
|
||||
Reference in New Issue
Block a user