diff --git a/tmp/lanelet2_extension/lib/visualization.cpp b/tmp/lanelet2_extension/lib/visualization.cpp index db530a28..5d58f5b7 100644 --- a/tmp/lanelet2_extension/lib/visualization.cpp +++ b/tmp/lanelet2_extension/lib/visualization.cpp @@ -569,7 +569,7 @@ visualization_msgs::msg::MarkerArray visualization::generateTrafficLightIdMaker( marker.color = c; marker.scale.z = scale; marker.frame_locked = false; - marker.text = std::to_string(ls.id()); + marker.text = std::to_string(tl->id()); tl_id_marker_array.markers.push_back(marker); } }