필터 지우기
필터 지우기

How to change the message frequency of sending ROS topics?

조회 수: 3 (최근 30일)
Bo
Bo 2017년 8월 18일
답변: Bo 2017년 8월 18일
Hello, I just figured out how to use Simulink to send ROS topic with Robotics System Toolbox by reading this:
However, when I run this model, the ROS topic is sent only once. I need to let it send many times at a certain frequency. Do you have some ideas on how to achieve that? Thanks, Bo

채택된 답변

Bo
Bo 2017년 8월 18일
I figured this out. I needed to change the constant block to sine wave block and set the Solve to "Fixed solver" and set the fixed solver size to 0.01. Then the topic can be sent multi-times.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS Network Connection and Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by