Im trying to use rosgenmsg and I get an error in the build progress (line 552)

6 次查看(过去 30 天)
My code:
folderpath="catkin_ws/src"
rosgenmsg(folderpath)
The error message that I receive is:
Error using ros.internal.ROSProjectBuilder/buildPackage (line 552)
Error building package: build log.
Error in rosgenmsg (line 483)
buildPackage(builder, [], 'install', catkinMakeArgs); %other messages might need to be present in the same directory
I try different ways to solve the problem such as changing the folder path or updating the cmake to version 3.19.
Last of all I launch matlab from ubuntu 18.04. ( I believe that is not the problem)
  4 个评论
Jagadeesh Konakalla
You missed to send the log file generated by rosgenmsg. Please send that. In the MATLAB error message, you should see a hyper link. Please clikc on that and send the content the log file.
Jagadeesh Konakalla
Hi,
From the log, i see the following issue while CMAKE is building the library for the custom messages. If you can share the custom messages, i can take a look at it.
In file included from /home/ruiz17/catkin_ws_niryo_ned/src/matlab_msg_gen_ros1/glnxa64/src/niryo_robot_status/src/niryo_robot_status_RobotStatus_message.cpp:27:0:
/home/ruiz17/catkin_ws_niryo_ned/src/matlab_msg_gen_ros1/glnxa64/devel/include/niryo_robot_status/RobotStatus.h:118:20: error: redeclaration of ‘REBOOT_MOTOR’
REBOOT_MOTOR = 13,
^~
Thanks,
Jagadeesh K.

请先登录,再进行评论。

回答(1 个)

Alberto Ruiz Paris
Alberto Ruiz Paris 2022-6-16

类别

Help CenterFile Exchange 中查找有关 Specialized Messages 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by