Skip to content

Commit

Permalink
enhance(sim): hard code orange cone color g value
Browse files Browse the repository at this point in the history
  • Loading branch information
V0XNIHILI committed Oct 16, 2021
1 parent 947aa3d commit 5c2386b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/simulation/simulator/src/sim_viz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(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<float>(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) {
Expand Down Expand Up @@ -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<float>(165.0 / 255.0);
marker.color.g = 0.647;
marker.color.b = 0.0;
} else {
marker.color.r = 0.0;
Expand Down

0 comments on commit 5c2386b

Please sign in to comment.