Robotics StackExchange | Archived questions

How to simulate a dynamic system equations in ROS?

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?

Asked by AA A on 2020-05-01 18:40:34 UTC

Comments

Answers

Something like this?

http://gazebosim.org/tutorials?tut=drcsim_ros_cmds&cat=drcsim

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.

Asked by DanopR on 2020-05-06 11:52:46 UTC

Comments