From 23798c9ef8ddebc22c4b8003fd0e6a52b061b6af Mon Sep 17 00:00:00 2001 From: Wolfgang Hess Date: Fri, 21 Apr 2017 15:38:36 +0200 Subject: [PATCH] Follow changes in googlecartographer/cartographer#235. (#309) --- cartographer_ros/cartographer_ros/map_builder_bridge.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cartographer_ros/cartographer_ros/map_builder_bridge.cc b/cartographer_ros/cartographer_ros/map_builder_bridge.cc index fd7d9d0..5759472 100644 --- a/cartographer_ros/cartographer_ros/map_builder_bridge.cc +++ b/cartographer_ros/cartographer_ros/map_builder_bridge.cc @@ -103,8 +103,7 @@ cartographer_ros_msgs::SubmapList MapBuilderBridge::GetSubmapList() { for (int submap_index = 0; submap_index != submaps->size(); ++submap_index) { cartographer_ros_msgs::SubmapEntry submap_entry; - submap_entry.submap_version = - submaps->Get(submap_index)->end_range_data_index; + submap_entry.submap_version = submaps->Get(submap_index)->num_range_data; submap_entry.pose = ToGeometryMsgPose(submap_transforms[submap_index]); trajectory_submap_list.submap.push_back(submap_entry); }