Generating ROS Custom Action Service Messages in R2021a
Mostrar comentarios más antiguos
My project has a custom message structure for an action service that needs compiling in MATLAB. This works perfectly fine in R2020a using the ROS Custom Message toolbox.
Now I understand R2020b+ has changed things around. I'm currently using R2021a, and with the new version all my custom messages and service messages compile completely fine except custom action service messages. They're basically ignored so I'm unable to create a client to my action service due to the missing custom messages. All other messages seem to work fine.
Has anyone else had this issue? Do I need to make any modifications to my CMakeLists.txt to get the new rosgenmsg() to work? My .action files are in the "action" folder, in the same level as "msg" and "srv" folders.
Here's an excerpt of my CMakeLists.txt in case someone can point out missing dependencies for action servers (snipped irrelevant parts).
cmake_minimum_required(VERSION 3.0.2)
add_compile_options(-std=c++11)
project( ... )
find_package(catkin REQUIRED COMPONENTS
message_generation
roscpp
rospy
std_msgs
geometry_msgs
actionlib_msgs
actionlib
)
find_package(Boost REQUIRED COMPONENTS system)
add_action_files(
FILES
PlanExecute.action
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
actionlib_msgs
)
catkin_package(
CATKIN_DEPENDS message_runtime actionlib_msgs
DEPENDS Boost
)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre ROS 2 Network Connection and Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!