action server, service server, or publisher/subscriber. Which one should I use?
Hi, I have a question, before question I will explain my case.In my case, there are 2 sides which one of them is simulation and other one is calculator, I need to execute this scenario:
- Simulation starts, and sends sensor datas to calculator software
- Simulation waits until it take a move info like "go stragiht" or "turn left" etc.
- Calculator receives sensor datas and process it and send move info to simulation
- Calculator waits until it take a sensor data
So, this is a Reinforcement Learning project and I have to not miss any sensor data and movement info. I need sides(simulation and calculator software) to wait each other until they receive required data.
The question is Which one should I use, an Action Server, a Service or simple publisher and subscriber... ?
Thanks a lot for your response in advance .