-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
I can't use IMU in cartographer #278
Comments
Here's your issue:
Change your tracking frame to be the IMU and that should fix it. |
Related to cartographer-project#256. PAIR=SirVer
NB: If you are using Gazebo, there are a crucial issue: |
but when I replace "imu_link" with "base_footprint" and roslaunch , there show error W0527 10:09:53.000000 26453 tf_bridge.cc:52] "base_footprint" passed to lookupTransform argument target_frame does not exist. |
In addition: if you use |
Hi, I am facing the same issue. I am using Cartographer on a rosbag offline, recorded from Gazebo on a Husky robot. Cartographer only works when I set 'tracking frame' into I have tried to modify the original husky urdf so that its colocated with the tracking frame. I set the Below are some files to better understand my setup: |
only Lidar can be used to built map,but when i joined the IMU, there is an error:
[ INFO] [1489563685.321344447]: I0315 15:41:25.000000 16889 map_builder_bridge.cc:37] Added trajectory with ID '0'.
[ WARN] [1489563685.525837849]: W0315 15:41:25.000000 16889 tf_bridge.cc:51] Lookup would require extrapolation at time 1489563685.525495000, but only time 1489563685.530481674 is in the buffer, when looking up transform from frame [imu] to frame [base_link]
[ WARN] [1489563685.528745250]: W0315 15:41:25.000000 16889 tf_bridge.cc:51] Lookup would require extrapolation at time 1489563685.477205200, but only time 1489563685.529379831 is in the buffer, when looking up transform from frame [laser] to frame [base_link]
F0315 15:41:25.544420 16889 sensor_bridge.cc:67] Check failed: sensor_to_tracking->translation().norm() < 1e-5 The IMU frame must be colocated with the tracking frame. Transforming linear acceleration into the tracking frame will otherwise be imprecise.
[FATAL] [1489563685.544553362]: F0315 15:41:25.000000 16889 sensor_bridge.cc:67] Check failed: sensor_to_tracking->translation().norm() < 1e-5 The IMU frame must be colocated with the tracking frame. Transforming linear acceleration into the tracking frame will otherwise be imprecise.
*** Check failure stack trace: ***
@ 0x7fc7ff7a1daa (unknown)
@ 0x7fc7ff7a1ce4 (unknown)
@ 0x7fc7ff7a16e6 (unknown)
@ 0x7fc7ff7a4687 (unknown)
@ 0x505921 cartographer_ros::SensorBridge::HandleImuMessage()
@ 0x4eb7ac ZN5boost6detail8function26void_function_obj_invoker1IZN16cartographer_ros12_GLOBAL__N_13RunEvEUlRKNS_10shared_ptrIKN11sensor_msgs4Imu_ISaIvEEEEEE2_vSD_E6invokeERNS1_15function_bufferESD
@ 0x4f0a3b boost::detail::function::void_function_obj_invoker1<>::invoke()
@ 0x4f69e8 ros::SubscriptionCallbackHelperT<>::call()
@ 0x7fc7fc68e6b5 (unknown)
@ 0x7fc7fc648107 (unknown)
@ 0x7fc7fc648c33 (unknown)
@ 0x7fc7fc6911e5 (unknown)
@ 0x7fc7fc678e0b (unknown)
@ 0x4ec78b cartographer_ros::(anonymous namespace)::Run()
@ 0x4e9bbd main
@ 0x7fc7fb44bf45 (unknown)
@ 0x4eb267 (unknown)
@ (nil) (unknown)
[cartographer_node-1] process has died [pid 16889, exit code -6, cmd /home/wiki/google_ws/install_isolated/lib/cartographer_ros/cartographer_node -configuration_directory /home/wiki/google_ws/install_isolated/share/cartographer_ros/configuration_files -configuration_basename my_backpack_2d.lua __name:=cartographer_node __log:=/home/wiki/.ros/log/eb12c7c4-0951-11e7-ab03-f44d30664634/cartographer_node-1.log].
log file: /home/wiki/.ros/log/eb12c7c4-0951-11e7-ab03-f44d30664634/cartographer_node-1*.log
The text was updated successfully, but these errors were encountered: