diff --git a/cartographer_ros/cartographer_ros/map_builder_bridge.cc b/cartographer_ros/cartographer_ros/map_builder_bridge.cc index f8658f8..df3d0c3 100644 --- a/cartographer_ros/cartographer_ros/map_builder_bridge.cc +++ b/cartographer_ros/cartographer_ros/map_builder_bridge.cc @@ -306,7 +306,7 @@ visualization_msgs::MarkerArray MapBuilderBridge::GetTrajectoryNodeList() { marker.color.a = 1.0; for (const auto& node_id_data : node_poses.trajectory(trajectory_id)) { - if (!node_id_data.data.has_constant_data) { + if (!node_id_data.data.constant_pose_data.has_value()) { PushAndResetLineMarker(&marker, &trajectory_node_list.markers); continue; }