Open jvavrek opened 8 months ago
This doesn't seem to be documented anywhere else, but in the config files I found the following:
-- When setting use_intensities to true, the intensity_cost_function_options_0
-- parameter in ceres_scan_matcher has to be set up as well or otherwise
-- CeresScanMatcher will CHECK-fail.
Will try it out and post back here later.
No luck. Adding
TRAJECTORY_BUILDER_3D.use_intensities = true
TRAJECTORY_BUILDER_3D.ceres_scan_matcher.intensity_cost_function_options_0.weight = 0.5
TRAJECTORY_BUILDER_3D.ceres_scan_matcher.intensity_cost_function_options_0.huber_scale = 0.3
TRAJECTORY_BUILDER_3D.ceres_scan_matcher.intensity_cost_function_options_0.intensity_threshold = 40
to my config file still results in
F0307 23:58:35.221518 83 local_trajectory_builder_3d.cc:134] Check failed: unsynchronized_data.ranges.size() == unsynchronized_data.intensities.size() (1626 vs. 0) Passed point cloud has inconsistent number of intensities and ranges.
(this is a smaller bag file so the length of unsynchronized_data.ranges
is different than my original comment)
Looks like use_intensities = true
was not actually tested in https://github.com/cartographer-project/cartographer/pull/1766 ?
I'm trying to improve my SLAM results by including intensities:
but this quickly leads to
(I can run SLAM when the flag is set to false, but the loop closure is not ideal.)
However, I can tell that my bag file contains a velodyne lidar
"intensity"
field:and I can also use the
"intensity"
field in the.h5
file we end up saving to disk further down the processing chain.Is this feature not supported, or might I have misconfigured something?