필터 지우기
필터 지우기

How to use autoware auto ros2 stack with matlab? ros2genmsg error

조회 수: 3 (최근 30일)
Max Hochlenert
Max Hochlenert 2022년 9월 14일
이동: Remo Pillat 2023년 11월 10일
Hi,
Autoware is a common ros2 based framework for autonomous driving. https://gitlab.com/autowarefoundation/autoware.auto
when trying to open a ros2 bag file containing autoware messages in matlab, one needs to first run ros2genmsg on the Autoware message types.
However, when calling
ros2genmsg("/home/user/autoware_fork/src/external/autoware_auto_msgs")
matlab complains with
Identifying message files in folder '/home/user/autoware_fork/src/external/autoware_auto_msgs'..Done.
Validating message files in folder '/home/user/autoware_fork/src/external/autoware_auto_msgs'..Done.
Error using ros.internal.custommsgs.checkValidityOfMessages
No message files found in folder '/home/autoware_fork/src/external/autoware_auto_msgs/autoware_auto_control_msgs/msg'.
Error in ros2genmsg (line 89)
[pkgMsgFiles, pkgSrvFiles] = ros.internal.custommsgs.checkValidityOfMessages(pkgDirs,folderPath,'ros2', pkgInfos);
Error in ground_non_ground (line 4)
ros2genmsg("/home/user/autoware_fork/src/external/autoware_auto_msgs")
Autoware is using some kind of precompiled .idl messages there, which matlab fails to understand.
user@rosgo:~/autoware_fork/src/external/autoware_auto_msgs/autoware_auto_control_msgs$ ls msg/
AckermannControlCommand.idl AckermannLateralCommand.idl HighLevelControlCommand.idl LongitudinalCommand.idl
How can I import this message type into matlab?

답변 (1개)

Hari Krishna Kakarla
Hari Krishna Kakarla 2022년 9월 18일
이동: Remo Pillat 2023년 11월 10일
Hi Max,
Thanks for your interest in this feature. This is something our development team is aware and we are considering it. Currently we are supporting only .msg files.
We will consider giving support to .idl files in future releases. Thanks for your feedback.
Thanks
Hari

카테고리

Help CenterFile Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by