Mentions légales du service

Skip to content

Access to the state through service client is too slow

I need to know if the state is "teleoperation" before doing some computation in my code. I tried to call the service "/get_state", but using it slows down my code considerably. Can't the status be publish on a topic? Or perhaps have a topic that tells us if the status has changed, so that we only have to call '/get_state' once it has changed?