37 #ifndef URDF_INTERFACE_COLOR_H 38 #define URDF_INTERFACE_COLOR_H 43 #include <KrisLibrary/utils/stringutils.h> 44 #include <KrisLibrary/utils/AnyValue.h> 55 Color() {this->clear();};
66 bool init(
const std::string &vector_str)
69 std::vector<std::string> pieces;
70 std::vector<float> rgba;
71 pieces = Split( vector_str,
" ");
72 for (
unsigned int i = 0; i < pieces.size(); ++i)
74 if (!pieces[i].empty())
76 rgba.push_back(
float());
77 if(!LexicalCast(pieces[i],rgba.back()))
Definition: urdf_color.h:52
Definition: urdf_color.h:46