MATLAB error on ROS custom message

조회 수: 1 (최근 30일)
Hemjyoti Das
Hemjyoti Das 2021년 3월 26일
댓글: Hemjyoti Das 2021년 3월 30일
I am trying to generate a custom ROS message in MATLAB, and I have followed all sorts of tutorials. However, I am getting the following error:
* What went wrong:
Could not resolve all dependencies for configuration ':mrs_mavros_interface:runtime'.
> Could not resolve org.ros.rosjava_messages:mavros_msgs:[0.0,).
Required by:
org.ros.rosjava_messages:mrs_mavros_interface:0.0.5
> No cached version of org.ros.rosjava_messages:mavros_msgs:[0.0,) available for offline mode.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.499 secs
Can someone please help me with it.

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2021년 3월 30일
Hi HemJyothi Das,
Which version of MATLAB that you are using ?
From the error message, i understand that you are using MATLAB version earlier than R2020b.
To Use custom ROS message and service types in MATLAB and Simulink, you need install ROS Toolbox interface for ROS Custom messages. Please find thw following link
If you have already installed the package, please share the custom message package.
Thanks,
Jagadeesh k.
  댓글 수: 1
Hemjyoti Das
Hemjyoti Das 2021년 3월 30일
Thanks @Jagadeesh Konakalla for your response. The problem is solved now. The message mavros_msgs was missing as a dependency. After adding it to the list of custom messges and using the usual process of message conversion of ROS custom messages, the problem is fianlly solved.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Specialized Messages에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by