Fixes the previous pose in local 3D SLAM. (#367)
This bug was introduced in #294. PAIR=damonkohlermaster
parent
d8eb94b4a9
commit
010fefc204
|
@ -151,12 +151,14 @@ KalmanLocalTrajectoryBuilder::AddAccumulatedRangeData(
|
||||||
options_.low_resolution_adaptive_voxel_filter_options());
|
options_.low_resolution_adaptive_voxel_filter_options());
|
||||||
const sensor::PointCloud low_resolution_point_cloud_in_tracking =
|
const sensor::PointCloud low_resolution_point_cloud_in_tracking =
|
||||||
low_resolution_adaptive_voxel_filter.Filter(filtered_range_data.returns);
|
low_resolution_adaptive_voxel_filter.Filter(filtered_range_data.returns);
|
||||||
ceres_scan_matcher_->Match(scan_matcher_pose_estimate_, initial_ceres_pose,
|
ceres_scan_matcher_->Match(
|
||||||
{{&filtered_point_cloud_in_tracking,
|
matching_submap->local_pose().inverse() * scan_matcher_pose_estimate_,
|
||||||
&matching_submap->high_resolution_hybrid_grid()},
|
initial_ceres_pose,
|
||||||
{&low_resolution_point_cloud_in_tracking,
|
{{&filtered_point_cloud_in_tracking,
|
||||||
&matching_submap->low_resolution_hybrid_grid()}},
|
&matching_submap->high_resolution_hybrid_grid()},
|
||||||
&pose_observation_in_submap, &summary);
|
{&low_resolution_point_cloud_in_tracking,
|
||||||
|
&matching_submap->low_resolution_hybrid_grid()}},
|
||||||
|
&pose_observation_in_submap, &summary);
|
||||||
const transform::Rigid3d pose_observation =
|
const transform::Rigid3d pose_observation =
|
||||||
matching_submap->local_pose() * pose_observation_in_submap;
|
matching_submap->local_pose() * pose_observation_in_submap;
|
||||||
pose_tracker_->AddPoseObservation(
|
pose_tracker_->AddPoseObservation(
|
||||||
|
|
Loading…
Reference in New Issue