フィルターのクリア

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

8 ビュー (過去 30 日間)
Alberto Ruiz Paris
Alberto Ruiz Paris 2022 年 6 月 14 日
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
Jagadeesh Konakalla 2022 年 6 月 16 日
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 2022 年 6 月 21 日
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 Center および File ExchangeCustom Message Support についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by