MATLAB Answers

Bo
1

How to change the message frequency of sending ROS topics?

Asked by Bo
on 18 Aug 2017
Latest activity Answered by Bo
on 18 Aug 2017
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

  0 Comments

Sign in to comment.

1 Answer

Answer by Bo
on 18 Aug 2017
 Accepted Answer

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 Comments

Sign in to comment.