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

Garbage diagnostics data when the IMU is not connected #29

Closed
jspricke opened this issue Nov 5, 2018 · 4 comments
Closed

Garbage diagnostics data when the IMU is not connected #29

jspricke opened this issue Nov 5, 2018 · 4 comments

Comments

@jspricke
Copy link
Contributor

jspricke commented Nov 5, 2018

We fill hardware IDs if the IMU is not connected here:

https://github.com/ros-drivers/phidgets_drivers/blob/kinetic/phidgets_imu/src/imu_ros_i.cpp#L174

This leads to broken strings (we added a ROS_FATAL below to print the data):

[/broken/imu_manager  INFO 1541437152.313089147]: Starting Phidgets IMU
[/broken/imu_manager  INFO 1541437152.349699310]: Opening device
[/broken/imu_manager  INFO 1541437152.349842384]: Waiting for IMU to be attached...
[/broken/imu_manager FATAL 1541437162.359115469]: Problem waiting for IMU attachment: Given timeout has been exceeded. Make sure the USB cable is connected and you have executed the
phidgets_api/share/setup-udev.sh script.
[/broken/imu_manager  INFO 1541437162.359166272]: Calibrating IMU...
[/broken/imu_manager  INFO 1541437162.359194949]: Calibrating IMU done.
[/broken/imu_manager FATAL 1541437162.359280129]: h?W?_ -32767
[/broken/imu_manager  INFO 1541437162.359303531]: No compass correction params found.

Also the calibrate() in the function probably only makes sense if the IMU is connected. So maybe adding both to an else case is enough?

@mintar
Copy link
Contributor

mintar commented Nov 6, 2018

Sounds good. We should probably also set the hardware ID to "NONE" or "" or whatever in the other case (when the IMU isn't connected). And while we're at it, we should also change the tabs to spaces in that function.

PR welcome, since I don't have an IMU for testing at the moment. :)

@thejeshk
Copy link

Hi Mintar,

I want to integrate the "4x Isolated Digital Input Phidget" to :::ROS

are there any drivers or a package for that particular phidget?

Sorry if my question is silly. i am very new to :::ROS

@mintar
Copy link
Contributor

mintar commented Jan 31, 2019

@thejeshk Your comment has nothing to do with this issue, so I've created a new issue for it: #31 . Please continue the discussion there.

@mintar
Copy link
Contributor

mintar commented Feb 16, 2022

I'm going to close this because diagnostics support was removed in Noetic (see #43). If somebody ever gets around to re-adding diagnostics support, we should make sure that we resolve this issue as well.

@mintar mintar closed this as completed Feb 16, 2022
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