machines-in-motion / dynamic_graph_manager

BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

better management of the processes #4

Open MaximilienNaveau opened 4 years ago

MaximilienNaveau commented 4 years ago

Problem

When the hardware communication process dies and the dynamic graph process is still alive, the dynamic graph process becomes a ghost process.

Potential solution

A possible way to improve this is to use the main process only for observing the other processes and shutting them down. This is in contrast to the current setup where the motor-process is the "main" process.

This would look something like this:

jviereck commented 4 years ago

This looks good. In SL, the other processes stay active until the user kills the overall application. This is useful in case the user wants to save / gather information from the other processes. E.g. where the latest received joint commands or used PD gains.