Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PAIR=wohe
  • Loading branch information
SirVer authored and wohe committed May 16, 2017
1 parent 227e46c commit 4cd812d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cartographer_ros/cartographer_ros/map_builder_bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ cartographer_ros_msgs::SubmapList MapBuilderBridge::GetSubmapList() {
for (int trajectory_id = 0;
trajectory_id < map_builder_.num_trajectory_builders();
++trajectory_id) {
const std::vector<cartographer::transform::Rigid3d> submap_transforms =
map_builder_.sparse_pose_graph()->GetSubmapTransforms(trajectory_id);
const cartographer::mapping::Submaps* submaps =
map_builder_.GetTrajectoryBuilder(trajectory_id)->submaps();
const std::vector<cartographer::transform::Rigid3d> submap_transforms =
map_builder_.sparse_pose_graph()->GetSubmapTransforms(submaps);
CHECK_LE(submap_transforms.size(), submaps->size());

cartographer_ros_msgs::TrajectorySubmapList trajectory_submap_list;
Expand Down Expand Up @@ -172,7 +172,7 @@ MapBuilderBridge::GetTrajectoryStates() {
trajectory_states[trajectory_id] = {
pose_estimate,
map_builder_.sparse_pose_graph()->GetLocalToGlobalTransform(
trajectory_builder->submaps()),
trajectory_id),
sensor_bridge.tf_bridge().LookupToTracking(pose_estimate.time,
options_.published_frame)};
}
Expand Down

0 comments on commit 4cd812d

Please sign in to comment.