cartographer-project / cartographer_ros

Provides ROS integration for Cartographer.
Apache License 2.0
1.65k stars 1.2k forks source link

Why the pointcloud in scan_matched_points2 is rotating #304

Closed Raymond-CN closed 7 years ago

Raymond-CN commented 7 years ago

I used early version (Oct 2016) of ceres_solver, cartographer, cartographer_ros. The demo_backpack_3d.launch runs well with cartographer_3d_deutsches_museum.bag. And I try to use the packages with my sensors. My LiDAR is velodyne VLP16, with 750 packages per sec, and the imu is razor_imu_9dof, which rate is only 50 Hz. I delete the vertical_laser_3d topic, because I have only one LiDAR. I run the demo with the bag above again, and it also goes well with only horizontal_laser_3d data. But when I uses the launch file with my sensors, something goes wrong that the pointcloud start rotating, and submaps are hardly generated. The frame_id is map and the topic is scan_matched_points2. However, the sensors are static in the environment, and the data from the sensors are also stable. So which parameters should I configure? Thx a lot.

SirVer commented 7 years ago

This is impossible to tell from your description alone. It could be that your URDF is wrong or that your topic remapping is bogus. Maybe your sensor sends bogus data? Maybe your IMU is using the wrong units?

Please provide bag, configuration files and launch files in form of a fork of cartographer_ros, ideally also a screen capture of your problem from rViz.

SirVer commented 7 years ago

A hunch: Try TRAJECTORY_BUILDER_3D.scans_per_accumulation = 1 in your lua configuration. Your node probably publishes full revolutions instead of small scans. See this FAQ entry as of why the backpack 3d configuration uses something different.

JoestarK commented 7 years ago

@mxrchn Hi, I got the same problem as yours. Did you solve it ?

ytgcljj commented 6 years ago

I got the same problem as yours. Did you solve it ?

Conhokis commented 5 years ago

Had the same problem, turns out it was an IMU problem where the gravity value 10x under the supposed one.