ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What to do when driver has no diagnostics output ?

asked 2020-09-15 07:16:42 -0500

Mackou gravatar image

updated 2020-09-15 07:19:04 -0500

Hello everyone,

I use diagnostics in my robot to detect failures and it ś extremely important for us. The problem is that some drivers don't output diagnostics or output imperfect diagnostic data.

For example :

  • Our radar don't output any diagnostics.
  • Our GPS always output warning because of a bug.

How would you solve these problems ?

I was thinking about subscribing to the radar and GPS topics and generating diagnostics messages myself. It should work but is it fundamentally wrong to do this ?

How would you do it ?

Thanks a lot !

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-09-15 22:41:08 -0500

Josh Whitley gravatar image

I would create a fork of the driver and add in the diagnostic publishing myself. Additionally, you could push your changes back to the original driver with a Pull Request. The vast majority of nodes available for ROS are open-source which means they are not static and un-changing but are constantly developed by the community. I'm sure that most driver developers who don't produce diagnostic messages would be open to having someone add them.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-09-15 07:16:42 -0500

Seen: 83 times

Last updated: Sep 15 '20