How can I manage more complex ROS messages in Simulink? (e.g. JointTrajectory)
조회 수: 6 (최근 30일)
이전 댓글 표시
I'm computing the joint values using simulink. Now I want to send the values to ROS using the Publish block in simulink. However, i can't fin a way of filling the fields for the message as i want. Not even with a Matlab function. Do you have any ideas how to fill the struct message?
댓글 수: 0
답변 (1개)
Cam Salzberger
2019년 4월 8일
Hello David,
You can create an empty message structure of your desired type using the Blank Message block, and fill in the values using a Bus Assignment block. There are a couple of examples of this in the "Getting Started" models.
-Cam
참고 항목
카테고리
Help Center 및 File Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!