MarkerHelper is a convenience class to reduce the mess created if marker initialization is used by hand. More...
#include <MarkerHelper.hpp>
Static Public Member Functions | |
static visualization_msgs::Marker | getArrowMarker (int id, SimpleVector3 startPoint, SimpleVector3 endPoint, SimpleVector3 scale=SimpleVector3(0.025, 0.05, 0.05), SimpleVector4 color=SimpleVector4(1.0, 0.0, 0.0, 1.0), std::string ns="my_namespace") |
returns an arrow marker with the given settings More... | |
static visualization_msgs::Marker | getArrowMarker (int id, SimpleVector3 position, SimpleQuaternion orientation, SimpleVector3 scale, SimpleVector4 color, std::string ns="my_namespace") |
returns an arrow marker with the given settings More... | |
static visualization_msgs::Marker | getBasicMarker (int id, std::string ns="my_namespace") |
returns a marker with basic settings More... | |
static visualization_msgs::Marker | getBasicMarker (int id, SimpleVector3 position, SimpleQuaternion orientation, SimpleVector3 scale, SimpleVector4 color, std::string ns="my_namespace") |
returns a marker with basic settings More... | |
static visualization_msgs::Marker | getCubeMarker (int id, SimpleVector3 position, SimpleQuaternion orientation, SimpleVector3 scale, SimpleVector4 color, std::string ns="my_namespace") |
returns a cube marker with the given settings More... | |
static visualization_msgs::Marker | getCylinderMarker (int id, SimpleVector3 position, double w, SimpleVector3 scale, SimpleVector4 color, std::string ns="my_namespace") |
returns a cylinder marker with the given settings More... | |
static visualization_msgs::Marker | getDeleteMarker (int id, std::string ns="my_namespace") |
returns a marker which will delete the corresponding marker with the same id and namespace More... | |
static visualization_msgs::Marker | getLineListMarker (int id, std::vector< SimpleVector3 > points, double scale, SimpleVector4 color, std::string ns="my_namespace") |
returns a line list marker with the given settings More... | |
static visualization_msgs::Marker | getMeshMarker (int id, std::string meshResource, SimpleVector3 centroid, SimpleQuaternion quaternion, SimpleVector3 scale=SimpleVector3(0.001, 0.001, 0.001), std::string ns="my_namespace") |
returns a mesh marker with the given settings More... | |
static void | getRainbowColor (visualization_msgs::Marker &marker, double x, double alpha=1.0) |
static visualization_msgs::Marker | getSphereMarker (int id, SimpleVector3 position, SimpleVector3 scale, SimpleVector4 color, std::string ns="my_namespace") |
returns a sphere marker with the given settings More... | |
static visualization_msgs::Marker | getTextMarker (int id, std::string text, geometry_msgs::Pose pose, std::string ns="my_namespace") |
returns a text marker with the given settings More... | |
static visualization_msgs::Marker | getTriangleListMarker (int id, std::vector< SimpleVector3 > vertices, std::vector< SimpleVector4 > colors, std::string ns="my_namespace") |
Private Member Functions | |
MarkerHelper () | |
~MarkerHelper () | |
MarkerHelper is a convenience class to reduce the mess created if marker initialization is used by hand.
Definition at line 36 of file MarkerHelper.hpp.
|
private |
Definition at line 23 of file MarkerHelper.cpp.
|
private |
Definition at line 25 of file MarkerHelper.cpp.
|
static |
returns an arrow marker with the given settings
id | the id of the marker |
startPoint | the point of start |
endPoint | the point of end |
color | a 4d point which encodes color in RGBA |
ns | the namespace of the marker |
Definition at line 86 of file MarkerHelper.cpp.
|
static |
returns an arrow marker with the given settings
id | the id of the marker |
position | the position of the arrow |
orientation | the orientation of the arrow |
scale | the scale of the arrow |
color | the color of the arrow |
ns | the namespace of the marker |
Definition at line 114 of file MarkerHelper.cpp.
|
static |
returns a marker with basic settings
id | the id of the marker |
ns | the namespace of the marker |
Definition at line 27 of file MarkerHelper.cpp.
|
static |
returns a marker with basic settings
id | the id of the marker |
position | the position of the marker |
orientation | the orientation of the marker |
scale | the scale of the marker |
color | the color of the marker |
ns | the namespace of the marker |
Definition at line 38 of file MarkerHelper.cpp.
|
static |
returns a cube marker with the given settings
id | the id of the marker |
position | the position of the cube |
orientation | the orientation of the cube |
scale | the scale of the cube |
color | the color of the cube |
ns | the namespace of the marker |
Definition at line 123 of file MarkerHelper.cpp.
|
static |
returns a cylinder marker with the given settings
id | the id of the marker |
position | the position of the cylinder |
w | the w-coordinate of the quaternion representing the orientation of the cylinder |
scale | the scale of the cylinder |
color | the color of the cylinder |
ns | the namespace of the marker |
Definition at line 157 of file MarkerHelper.cpp.
|
static |
returns a marker which will delete the corresponding marker with the same id and namespace
id | the id of the marker |
ns | the namespace of the marker |
Definition at line 64 of file MarkerHelper.cpp.
|
static |
returns a line list marker with the given settings
id | the id of the marker |
points | the points of the line |
scale | the scale of the line |
color | the color of the line |
ns | the namespace of the marker |
Definition at line 141 of file MarkerHelper.cpp.
|
static |
returns a mesh marker with the given settings
id | the id of the marker |
meshResource | a uri to the mesh's resource |
centroid | the centroid of the mesh object |
quaternion | the orientation of the mesh object |
ns | the namespace of the marker |
Definition at line 72 of file MarkerHelper.cpp.
|
static |
marker | [in / out] the marker whose color gets set |
x | a value between 0 and 1 |
alpha | the alpha value between 0 and 1 |
Definition at line 183 of file MarkerHelper.cpp.
|
static |
returns a sphere marker with the given settings
id | the id of the marker |
position | the position of the sphere |
scale | the scale of the sphere |
color | the color of the sphere |
ns | the namespace of the sphere |
Definition at line 132 of file MarkerHelper.cpp.
|
static |
returns a text marker with the given settings
id | the id of the marker |
text | the text of the marker |
pose | the pose of the marker |
ns | the namespace of the marker |
Definition at line 50 of file MarkerHelper.cpp.
|
static |
Definition at line 166 of file MarkerHelper.cpp.