ifm / ifm3d-ros2

ifm pmd-based 3D ToF Camera ROS2 Package
Apache License 2.0
25 stars 11 forks source link

Publish camera uptime. #2

Open bprevost opened 4 years ago

bprevost commented 4 years ago

I propose that the 'uptime' of the camera is computed and published so that the user can know how long the camera driver has been running. We already have the code available for this and it is available upon request.

theseankelly commented 4 years ago

Sure, I'd take a look at a PR but I'm curious about a couple things -- why is 'uptime' useful to you? When do you publish uptime values (per frame? fixed interval?)?

bprevost commented 4 years ago

Currently we publish uptime as part of a combined message, and uptime refers to the duration of time that the driver has been running. We use this because sometimes the driver loses connection to the camera and we are forced to restart the driver. We have a status screen that monitors all TOF cameras on our network and displays their uptimes as a type of health monitor.

theseankelly commented 4 years ago

Hey @bprevost given the comments on issue #3 is this still a relevant feature?

bprevost commented 4 years ago

We continue to use uptime to monitor the health of our cameras. But it is up to you to determine if this is a useful feature for everyone.