Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information to diagnostics #44

Closed
YannickdeHoop opened this issue Apr 14, 2020 · 3 comments
Closed

Add information to diagnostics #44

YannickdeHoop opened this issue Apr 14, 2020 · 3 comments

Comments

@YannickdeHoop
Copy link
Contributor

Hi,

It would be nice to have some extra information published in the diagnostics. So we can check the serial number of the scanner.
The following data should be sufficient:

msg.header = createDataHeaderMessage(data);

msg.general_system_state = createGeneralSystemStateMessage(data);

Could you add this or do we have to create a pull request?

@lenpuc
Copy link
Collaborator

lenpuc commented Apr 14, 2020

Hi Yannick,

the data you want to have in the diagnostics is only static data? Or should there be any data in there which changes during the run time.
If you are only interested in the serial number you could implement a service which calls the following function.

void SickSafetyscanners::requestSerialNumber(const datastructure::CommSettings& settings,

So far this is not integrated into the ROS API, but there are functions in the base class to call the different variables using cola2.
If you think it is more advisable to have that in the diagnostics, i suppose it is meant for ease of use and better understanding which sensor is currently used, please feel free to open a pull request.

Cheers
Lennart

@reinzor
Copy link
Contributor

reinzor commented Apr 14, 2020

the data you want to have in the diagnostics is only static data?

It is mostly static (serial number etc) but also statuses such as:

msg.run_mode_active = general_system_state->getRunModeActive();

If you think it is more advisable to have that in the diagnostics, i suppose it is meant for ease of use and better understanding which sensor is currently used.

We are using the Sick NanoScan3 and we would like to have the serial / other diagnostics information of all components in the /diagnostics topic so we can use the default ROS diagnostics tooling. This is also implemented in other device drivers such as the sick tim driver, hokyo urg driver and intel realense devices and is AFAIK more less the ROS standard for device info.

, please feel free to open a pull request.

Sure. Thanks!

@lenpuc
Copy link
Collaborator

lenpuc commented May 27, 2020

Thanks for contributing. PR #50 is merged into the master

@lenpuc lenpuc closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants