ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to simulate a dynamic system equations in ROS?

asked 2020-05-01 18:40:34 -0500

AA A gravatar image

Simply, I want to simulate equations in a node this node should take inputs, pass them to the equations, and give me outputs In this case, the node will be subscribing to the input from another node, and in the same time, publishing the output to another node. So, it will be a subscriber and publisher node in the same time. Is this possible? And also, is there a more simple way to achieve the same goal without using a node as a subscriber and publisher in the same time?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-05-06 11:52:46 -0500

DanopR gravatar image

Something like this?

http://gazebosim.org/tutorials?tut=dr...

Probably doesn’t answer all your questions. Basically, the main function subscribes to some values returned from a simulation. Every time it gets some value, it will invoke a call back function to publish some commands to the sim. Technically, this node publishes and subscribes at the same time.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-05-01 18:40:34 -0500

Seen: 147 times

Last updated: May 01 '20