Closed ahendrix closed 11 years ago
Does something not respect ros::isShuttingDown()?
This already has an attempted fix: https://github.com/ros-drivers/microstrain_3dmgx2_imu/blob/hydro-devel/src/imu_node.cc#L345
Happens on roslaunch, but not rosrun. I suspect that ros::isShuttingDown() doesn't listen to XML RPC shutdown requests.
@ahendrix Has the imu started streaming data when you see this? I think it's an issue with shutting down before we've finished initializing and calibrating.
Yes; the IMU has finished calibrating and is streaming data when I see this.
$ rostopic echo is_calibrated
data: True
$ rostopic hz data
subscribed to [/data]
average rate: 99.987
min: 0.010s max: 0.010s std dev: 0.00006s window: 100
average rate: 99.998
min: 0.010s max: 0.010s std dev: 0.00006s window: 200
average rate: 100.001
min: 0.010s max: 0.010s std dev: 0.00007s window: 300
Found the issue, not waiting for long enough to check isShuttingDown(), updated to be 0.10s. Make another issue if this is too large of a wait for a communication error during operation.
Also fixed a similar issue with shutting down during calibration.
And released: https://github.com/ros/rosdistro/pull/1522
Confirmed; this is no longer happening after the upgrade to 1.5.10.
Thanks Chad!
I usually see the following error when stopping ROS on the PR2. I believe it's a shutdown problem in the imu driver.