MATLAB Answers

0

Error in ROS Custom Message

Shlok Goel 님이 질문을 제출함. 15 Jul 2019
최근 활동 Cam Salzberger 님이 답변함. 25 Jul 2019
When trying to use custom messages with ROS, rosmsg list shows the custom messages, but blank message block/ ROS publish block in simulink does not show those messages.

  댓글 수: 0

로그인 to comment.

답변 수: 1

Cam Salzberger 님의 답변 25 Jul 2019

Hey Shlok,
I believe that the Simulink message type selection drop-down should use the same functionality as rosmsg("list"). I'm not sure why it would show different results. Did you restart MATLAB after generating the custom messages?
As a possible workaround for now, if you create a MATLAB publisher or subscriber using that message, can you use "Select from the network" to pick the right topic and message type? As another workaround, you should be able to use set_param on the blank message and publisher/subscriber blocks to change the message type to the desired custom message.
-Cam

  댓글 수: 0

로그인 to comment.



Translated by