From e1e46ca2206e0521c9d1237850869b7919214911 Mon Sep 17 00:00:00 2001 From: Tomoya Kimura Date: Mon, 6 Feb 2023 15:11:48 +0900 Subject: [PATCH] feat(lanalet2_extension): set frame_locked to false (#153) Signed-off-by: tomoya.kimura --- tmp/lanelet2_extension/lib/visualization.cpp | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tmp/lanelet2_extension/lib/visualization.cpp b/tmp/lanelet2_extension/lib/visualization.cpp index ed8f53df..0920351f 100644 --- a/tmp/lanelet2_extension/lib/visualization.cpp +++ b/tmp/lanelet2_extension/lib/visualization.cpp @@ -95,7 +95,7 @@ void initLightMarker(visualization_msgs::msg::Marker * marker, const std::string marker->header.frame_id = "map"; marker->header.stamp = rclcpp::Time(); - marker->frame_locked = true; + marker->frame_locked = false; marker->ns = ns; marker->id = 0; marker->lifetime = rclcpp::Duration(0, 0); @@ -156,7 +156,7 @@ void initLaneletDirectionMarker(visualization_msgs::msg::Marker * marker, const marker->header.frame_id = "map"; marker->header.stamp = rclcpp::Time(); - marker->frame_locked = true; + marker->frame_locked = false; marker->ns = ns; marker->id = 0; marker->type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -293,7 +293,7 @@ visualization_msgs::msg::Marker createPolygonMarker( visualization_msgs::msg::Marker marker; marker.header.frame_id = "map"; marker.header.stamp = rclcpp::Time(); - marker.frame_locked = true; + marker.frame_locked = false; marker.id = 0; marker.ns = name_space; marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -565,7 +565,7 @@ visualization_msgs::msg::MarkerArray visualization::generateTrafficLightIdMaker( marker.pose.orientation.w = 1.0; marker.color = c; marker.scale.z = scale; - marker.frame_locked = true; + marker.frame_locked = false; marker.text = std::to_string(ls.id()); tl_id_marker_array.markers.push_back(marker); } @@ -589,7 +589,7 @@ visualization_msgs::msg::MarkerArray visualization::detectionAreasAsMarkerArray( marker.header.frame_id = "map"; marker.header.stamp = rclcpp::Time(); - marker.frame_locked = true; + marker.frame_locked = false; marker.ns = "detection_area"; marker.id = 0; marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -664,7 +664,7 @@ visualization_msgs::msg::MarkerArray visualization::noStoppingAreasAsMarkerArray marker.header.frame_id = "map"; marker.header.stamp = rclcpp::Time(); - marker.frame_locked = true; + marker.frame_locked = false; marker.ns = "no_stopping_area"; marker.id = 0; marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -742,7 +742,7 @@ visualization_msgs::msg::MarkerArray visualization::speedBumpsAsMarkerArray( marker.header.frame_id = "map"; marker.header.stamp = rclcpp::Time(); - marker.frame_locked = true; + marker.frame_locked = false; marker.ns = "speed_bump"; marker.id = 0; marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -885,7 +885,7 @@ visualization_msgs::msg::MarkerArray visualization::generateLaneletIdMarker( marker.pose.orientation.w = 1.0; marker.color = c; marker.scale.z = scale; - marker.frame_locked = true; + marker.frame_locked = false; marker.text = std::to_string(ll.id()); markers.markers.push_back(marker); } @@ -1046,7 +1046,7 @@ visualization_msgs::msg::MarkerArray visualization::laneletsAsTriangleMarkerArra marker.header.frame_id = "map"; marker.header.stamp = rclcpp::Time(); - marker.frame_locked = true; + marker.frame_locked = false; marker.ns = ns; marker.id = 0; marker.type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -1099,7 +1099,7 @@ void visualization::initTrafficLightTriangleMarker( marker->header.frame_id = "map"; marker->header.stamp = rclcpp::Time(); - marker->frame_locked = true; + marker->frame_locked = false; marker->ns = ns; marker->id = 0; marker->type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -1184,7 +1184,7 @@ void visualization::initLineStringMarker( marker->header.frame_id = frame_id; marker->header.stamp = rclcpp::Time(); - marker->frame_locked = true; + marker->frame_locked = false; marker->ns = ns; marker->action = visualization_msgs::msg::Marker::ADD; marker->type = visualization_msgs::msg::Marker::TRIANGLE_LIST; @@ -1268,7 +1268,7 @@ void visualization::initArrowsMarker( marker->header.frame_id = frame_id; marker->header.stamp = rclcpp::Time(); - marker->frame_locked = true; + marker->frame_locked = false; marker->ns = ns; marker->action = visualization_msgs::msg::Marker::ADD; marker->type = visualization_msgs::msg::Marker::TRIANGLE_LIST;