Skip to content

Commit

Permalink
feat(sim): add orange cone marker for cv cones
Browse files Browse the repository at this point in the history
  • Loading branch information
V0XNIHILI committed Oct 16, 2021
1 parent c360ce1 commit 947aa3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/simulation/simulator/src/sim_viz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,12 @@ void SimViz::addWorldStateMarker(const cv_msgs::msg::Cone &cone, u_int32_t id, v
marker.color.r = 1.0;
marker.color.g = 1.0;
marker.color.b = 0.0;
} else {
} 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.b = 0.0;
} else {
marker.color.r = 0.0;
marker.color.g = 0.0;
marker.color.b = 0.0;
}
Expand Down

0 comments on commit 947aa3d

Please sign in to comment.