Follow changes in googlecartographer/cartographer#235. (#309)

master
Wolfgang Hess 2017-04-21 15:38:36 +02:00 committed by GitHub
parent 13db11d45c
commit 23798c9ef8
1 changed files with 1 additions and 2 deletions

View File

@ -103,8 +103,7 @@ cartographer_ros_msgs::SubmapList MapBuilderBridge::GetSubmapList() {
for (int submap_index = 0; submap_index != submaps->size(); for (int submap_index = 0; submap_index != submaps->size();
++submap_index) { ++submap_index) {
cartographer_ros_msgs::SubmapEntry submap_entry; cartographer_ros_msgs::SubmapEntry submap_entry;
submap_entry.submap_version = submap_entry.submap_version = submaps->Get(submap_index)->num_range_data;
submaps->Get(submap_index)->end_range_data_index;
submap_entry.pose = ToGeometryMsgPose(submap_transforms[submap_index]); submap_entry.pose = ToGeometryMsgPose(submap_transforms[submap_index]);
trajectory_submap_list.submap.push_back(submap_entry); trajectory_submap_list.submap.push_back(submap_entry);
} }