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

What is the preferable way to share states among multiple nodes in ROS?

asked 2022-07-15 09:17:42 -0600

Phymin gravatar image

Hi all,

I am developing a robot software system base on ROS that have mutiple nodes, such as base , localization , planning, perception, control, actuator, battery, etc. And each node has it's own states, such as base node has states of velocity of wheels, encoder values, motor state... And some nodes need to know the others nodes' states to do their work. For example, control node need know states of localization, base, actuator, perception.

The ways to do this I know are:

  1. use pub/sub
  2. use service
  3. use parameter_server

for the first 2, I need define a lot of custom messages and services, and the topics need to publish at a high frequency, or I need to call serveral services at the same time, which I think it's not a good way. for the 3rd one, I think it can do what I want, but I don't know if this is the correct way to use the parameter server and if it's suitable to use in high update frequency situation.

So what is the preferabel way to share states among multiple nodes, hope you guys could give me some clue or suggestions. Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-15 10:26:22 -0600

BlakeAnderson gravatar image

updated 2022-07-15 10:26:54 -0600

The data you list are generally published over topics in existing implementations. Are you familiar with the ros_control stack? It sounds like a lot of what you want is already encapsulated in it.

edit flag offensive delete link more

Comments

Thanks for your reply, I don't use ros_control before, and I'm not going to use the open source package in this system. but I will check it for some reference. Thank you.

Phymin gravatar image Phymin  ( 2022-07-15 21:30:07 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-07-15 09:17:42 -0600

Seen: 79 times

Last updated: Jul 15 '22