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!