Clear Filters
Clear Filters

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

6 views (last 30 days)
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 Comments
Jagadeesh Konakalla
Jagadeesh Konakalla on 16 Jun 2022
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
Jagadeesh Konakalla on 21 Jun 2022
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.

Sign in to comment.

Answers (1)

Alberto Ruiz Paris
Alberto Ruiz Paris on 16 Jun 2022

Categories

Find more on Specialized Messages in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!