ros2genmsg is failing after a updating database of messages and running a second time.

5 ビュー (過去 30 日間)
squared
squared 2022 年 4 月 20 日
編集済み: Cam Salzberger 2022 年 4 月 22 日
ros2genmsg is failing after a updating database of messages and running a second time. The custom folder is being updated with new messages that are needed for the project. The ros2genmsg is run again with the folder destination but error with the following:
Error using ros.internal.ROSProjectBuilder/buildPackage (line
534)
Error building package: build log.
Error in ros2genmsg (line 241)
buildPackage(builder, [], ' --merge-install',
colconMakeArgs); %other messages might need to be present
in the same directory
I'm using: '9.10.0.1739362 (R2021a) Update 5'
  2 件のコメント
Cam Salzberger
Cam Salzberger 2022 年 4 月 20 日
The build log linked in the output will contain information that is really critical for diagnosing any kind of build issues with custom messages. Can you post or attach the contents?

サインインしてコメントする。

回答 (1 件)

Cam Salzberger
Cam Salzberger 2022 年 4 月 22 日
編集済み: Cam Salzberger 2022 年 4 月 22 日
Thanks for those logs. The main issues are in the stdout_stderr.log file and all look like:
make[2]: *** [CMakeFiles/vision_msgs__python.dir/build.make:104: CMakeFiles/vision_msgs__python.dir/rosidl_generator_py/vision_msgs/msg/_bounding_box3_d_array_s.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/vision_msgs__python.dir/build.make:76: CMakeFiles/vision_msgs__python.dir/rosidl_generator_py/vision_msgs/msg/_bounding_box2_d_s.c.o] Error 1
/home/t440p/ros2_dev_msgs_matlab_ws/custom2/matlab_msg_gen/glnxa64/build/vision_msgs/rosidl_generator_py/vision_msgs/msg/_bounding_box3_d_s.c:11:10: fatal error: numpy/ndarrayobject.h: No such file or directory
11 | #include "numpy/ndarrayobject.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
I think that looks similar to an issue I've seen before that ended up being a problem with Dashing's version of rosidl_python. If you update to R2022a, it supports ROS 2 Foxy, which has a fix in-place.
-Cam

カテゴリ

Help Center および File ExchangeCustom Message Support についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by