From 0a66c59547341a3726ed8bf05297675efe26085b Mon Sep 17 00:00:00 2001 From: Wolfgang Hess Date: Tue, 17 Oct 2017 15:35:52 +0200 Subject: [PATCH] Follow googlecartographer/cartographer#596. (#546) --- cartographer_ros/cartographer_ros/map_builder_bridge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartographer_ros/cartographer_ros/map_builder_bridge.cc b/cartographer_ros/cartographer_ros/map_builder_bridge.cc index 21acf60..8c618b5 100644 --- a/cartographer_ros/cartographer_ros/map_builder_bridge.cc +++ b/cartographer_ros/cartographer_ros/map_builder_bridge.cc @@ -212,7 +212,7 @@ visualization_msgs::MarkerArray MapBuilderBridge::GetTrajectoryNodeList() { CreateTrajectoryMarker(trajectory_id, node_options_.map_frame); for (const auto& node : single_trajectory_nodes) { - if (node.trimmed()) { + if (node.constant_data == nullptr) { PushAndResetLineMarker(&marker, &trajectory_node_list.markers); continue; }