Error using ros2genmsg("custom")
显示 更早的评论
Hello, I am following this Matlab example: Control a simulated UAV using ros2 and PX4 bridge
When running the command:
ros2genmsg("custom")
it returns the error:
>> ros2genmsg("custom")
Identifying message files in folder '/Users/xxxx/MATLAB/xxxx/custom'..Validating message files in folder '/Users/xxxx/MATLAB/xxxx/custom'..Done.
Done.
[1/1] Generating MATLAB interfaces for custom message packages... Done.
Running colcon build in folder '/Users/xxxx/MATLAB/xxxx/custom/matlab_msg_gen/maca64'.
Build in progress. This may take several minutes...Error using ros.internal.ROSProjectBuilder/buildPackage
Error building package: build_log.
Error in ros2genmsg (line 467)
buildPackage(builder, [], ' --merge-install', colconMakeArgs);
Any help?
Similar posts didn't help to get this fixed.
I am on Matlab 2023b for macOS.
Thanks!
采纳的回答
更多回答(1 个)
harunkurtdev
2024-9-6
0 个投票
I getting error like this.
-- Generating done -- Build files have been written to: C:/Users/Harun/Documents/MATLAB/Examples/R2024a/uav_ros/ControlASimulatedUAVUsingROS2AndPX4BridgeExample/custom/matlab_msg_gen/win64/build/px4_msgs ninja: error: Stat(C:/Users/Harun/Documents/MATLAB/Examples/R2024a/uav_ros/ControlASimulatedUAVUsingROS2AndPX4BridgeExample/custom/matlab_msg_gen/win64/build/px4_msgs/rosidl_typesupport_fastrtps_c/px4_msgs/msg/detail/autotune_attitude_control_status__rosidl_typesupport_fastrtps_c.h): Filename longer than 260 characters
类别
在 帮助中心 和 File Exchange 中查找有关 Publishers and Subscribers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!