keeping state: Latched Topics vs ROS Parameters vs Service Request
Hi!
I'm trying to hold state about a piece of software in my stack. For instance, to tell if a fan is on or not from another process through ROS.
The 3 ways that come to mind is changing a parameter but the parameter server is super not high performance and I will be querying this at well over 5 hz. Another option is to have the state be a latched topic but I'm unsure if this is actually any better performancewise. Finally, just have a service call that asks for the state of that component
Any thoughts?