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; }