How to check continuity of sensor data in ROS subscriber for displaying a warning?

asked 2018-06-14 02:38:35 -0500

anadgopi1994 gravatar image

I want to test my sensor is giving continuous data. If data is not coming from the sensor I want to implement an exception in ROS subscriber. Is it possible in ROS subscriber or should I use ROS service. If possible can you share an example.

edit retag flag offensive close merge delete

Comments

May be not an exact answer. But you can check the sequence id.

saurabh gravatar image saurabh  ( 2018-06-14 03:55:55 -0500 )edit

Which is not set consistently by all publishers.

gvdhoorn gravatar image gvdhoorn  ( 2018-06-14 03:57:01 -0500 )edit