Skip to content
Snippets Groups Projects
Commit 956a76b4 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

Modifid stringToEnum

parent c12ccf6c
No related branches found
No related tags found
2 merge requests!3After cmake and const refactor,!1Resolve "Publisher for visual odometry"
Pipeline #9778 failed
......@@ -42,21 +42,21 @@ namespace wolf
void PublisherVisionDebug::stringToEnum(const std::string _color)
{
if (_color == "BLUE")
color_tracks_features_ = 0;
color_tracks_features_ = COLORFEATURES::BLUE;
else if (_color == "GREEN")
color_tracks_features_ = 1;
color_tracks_features_ = COLORFEATURES::GREEN;
else if (_color == "YELLOW")
color_tracks_features_ = 2;
color_tracks_features_ = COLORFEATURES::YELLOW;
else if (_color == "MAGENTA")
color_tracks_features_ = 3;
color_tracks_features_ = COLORFEATURES::MAGENTA;
else if (_color == "CYAN")
color_tracks_features_ = 4;
color_tracks_features_ = COLORFEATURES::CYAN;
else if (_color == "GREY")
color_tracks_features_ = 5;
color_tracks_features_ = COLORFEATURES::GREY;
else if (_color == "RED")
color_tracks_features_ = 6;
color_tracks_features_ = COLORFEATURES::RED;
else
color_tracks_features_ = 4;
color_tracks_features_ = COLORFEATURES::MAGENTA;
}
PublisherVisionDebug::PublisherVisionDebug(const std::string &_unique_name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment