35 msgs::Geometry::Type result = msgs::Geometry::BOX;
38 result = msgs::Geometry::BOX;
40 else if (_str ==
"capsule")
42 result = msgs::Geometry::CAPSULE;
44 else if (_str ==
"cone")
46 result = msgs::Geometry::CONE;
48 else if (_str ==
"cylinder")
50 result = msgs::Geometry::CYLINDER;
52 else if (_str ==
"ellipsoid")
54 result = msgs::Geometry::ELLIPSOID;
56 else if (_str ==
"sphere")
58 result = msgs::Geometry::SPHERE;
60 else if (_str ==
"plane")
62 result = msgs::Geometry::PLANE;
64 else if (_str ==
"image")
66 result = msgs::Geometry::IMAGE;
68 else if (_str ==
"heightmap")
70 result = msgs::Geometry::HEIGHTMAP;
72 else if (_str ==
"mesh")
74 result = msgs::Geometry::MESH;
76 else if (_str ==
"polyline")
78 result = msgs::Geometry::POLYLINE;
82 std::cerr <<
"Unrecognized Geometry::Type ["
84 <<
"], returning msgs::Geometry::BOX"
97 case msgs::Geometry::BOX:
102 case msgs::Geometry::CAPSULE:
107 case msgs::Geometry::CONE:
112 case msgs::Geometry::CYLINDER:
117 case msgs::Geometry::ELLIPSOID:
119 result =
"ellipsoid";
122 case msgs::Geometry::SPHERE:
127 case msgs::Geometry::PLANE:
132 case msgs::Geometry::IMAGE:
137 case msgs::Geometry::HEIGHTMAP:
139 result =
"heightmap";
142 case msgs::Geometry::MESH:
147 case msgs::Geometry::POLYLINE:
155 std::cerr <<
"Unrecognized Geometry::Type ["
157 <<
"], returning 'unknown'"