From 5c2386b8001f05288ac0b3f488593c17d2d95d91 Mon Sep 17 00:00:00 2001 From: Douwe den Blanken Date: Sun, 17 Oct 2021 01:10:28 +0200 Subject: [PATCH] enhance(sim): hard code orange cone color g value --- src/simulation/simulator/src/sim_viz.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simulation/simulator/src/sim_viz.cpp b/src/simulation/simulator/src/sim_viz.cpp index 8dd296bd..93b88153 100644 --- a/src/simulation/simulator/src/sim_viz.cpp +++ b/src/simulation/simulator/src/sim_viz.cpp @@ -292,12 +292,12 @@ void SimViz::addConeMarker(const rclcpp::Time &time, const sim_msgs::msg::TrackO } else if (track_object.object_type == sim_msgs::msg::TrackObject::ORANGE) { marker.color.r = 1.0; - marker.color.g = static_cast(165.0 / 255.0); + marker.color.g = 0.647; marker.color.b = 0.0; marker.mesh_resource = "package://simulator/meshes/track/cone_orange.dae"; } else if (track_object.object_type == sim_msgs::msg::TrackObject::BIG_ORANGE) { marker.color.r = 1.0; - marker.color.g = static_cast(165.0 / 255.0); + marker.color.g = 0.647; marker.color.b = 0.0; marker.mesh_resource = "package://simulator/meshes/track/cone_orange_big.dae"; } else if (track_object.object_type == sim_msgs::msg::TrackObject::TK_DEVICE) { @@ -342,7 +342,7 @@ void SimViz::addWorldStateMarker(const cv_msgs::msg::Cone &cone, u_int32_t id, v marker.color.b = 0.0; } else if (cone_type == cv_msgs::msg::Cone::ORANGE) { marker.color.r = 1.0; - marker.color.g = static_cast(165.0 / 255.0); + marker.color.g = 0.647; marker.color.b = 0.0; } else { marker.color.r = 0.0;