Static Public Member Functions | Private Member Functions | List of all members
next_best_view::MarkerHelper Class Reference

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 ()
 

Detailed Description

MarkerHelper is a convenience class to reduce the mess created if marker initialization is used by hand.

Author
Ralf Schleicher
Date
2014
Version
1.0

Definition at line 36 of file MarkerHelper.hpp.

Constructor & Destructor Documentation

next_best_view::MarkerHelper::MarkerHelper ( )
private

Definition at line 23 of file MarkerHelper.cpp.

next_best_view::MarkerHelper::~MarkerHelper ( )
private

Definition at line 25 of file MarkerHelper.cpp.

Member Function Documentation

visualization_msgs::Marker next_best_view::MarkerHelper::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" 
)
static

returns an arrow marker with the given settings

Parameters
idthe id of the marker
startPointthe point of start
endPointthe point of end
colora 4d point which encodes color in RGBA
nsthe namespace of the marker
Returns
an arrow marker with the given settings

Definition at line 86 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getArrowMarker ( int  id,
SimpleVector3  position,
SimpleQuaternion  orientation,
SimpleVector3  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns an arrow marker with the given settings

Parameters
idthe id of the marker
positionthe position of the arrow
orientationthe orientation of the arrow
scalethe scale of the arrow
colorthe color of the arrow
nsthe namespace of the marker
Returns
an arrow marker with the given settings

Definition at line 114 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getBasicMarker ( int  id,
std::string  ns = "my_namespace" 
)
static

returns a marker with basic settings

Parameters
idthe id of the marker
nsthe namespace of the marker
Returns
a basic marker with the given settings

Definition at line 27 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getBasicMarker ( int  id,
SimpleVector3  position,
SimpleQuaternion  orientation,
SimpleVector3  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns a marker with basic settings

Parameters
idthe id of the marker
positionthe position of the marker
orientationthe orientation of the marker
scalethe scale of the marker
colorthe color of the marker
nsthe namespace of the marker
Returns
a basic marker with the given settings

Definition at line 38 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getCubeMarker ( int  id,
SimpleVector3  position,
SimpleQuaternion  orientation,
SimpleVector3  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns a cube marker with the given settings

Parameters
idthe id of the marker
positionthe position of the cube
orientationthe orientation of the cube
scalethe scale of the cube
colorthe color of the cube
nsthe namespace of the marker
Returns
a cube marker with the given settings

Definition at line 123 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getCylinderMarker ( int  id,
SimpleVector3  position,
double  w,
SimpleVector3  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns a cylinder marker with the given settings

Parameters
idthe id of the marker
positionthe position of the cylinder
wthe w-coordinate of the quaternion representing the orientation of the cylinder
scalethe scale of the cylinder
colorthe color of the cylinder
nsthe namespace of the marker
Returns
a cylinder marker with the given settings

Definition at line 157 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getDeleteMarker ( int  id,
std::string  ns = "my_namespace" 
)
static

returns a marker which will delete the corresponding marker with the same id and namespace

Parameters
idthe id of the marker
nsthe namespace of the marker
Returns
a marker which will delete the corresponding marker with the same id and namespace

Definition at line 64 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getLineListMarker ( int  id,
std::vector< SimpleVector3 points,
double  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns a line list marker with the given settings

Parameters
idthe id of the marker
pointsthe points of the line
scalethe scale of the line
colorthe color of the line
nsthe namespace of the marker
Returns
a line list marker with the given settings

Definition at line 141 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getMeshMarker ( int  id,
std::string  meshResource,
SimpleVector3  centroid,
SimpleQuaternion  quaternion,
SimpleVector3  scale = SimpleVector3(0.001, 0.001, 0.001),
std::string  ns = "my_namespace" 
)
static

returns a mesh marker with the given settings

Parameters
idthe id of the marker
meshResourcea uri to the mesh's resource
centroidthe centroid of the mesh object
quaternionthe orientation of the mesh object
nsthe namespace of the marker
Returns
a mesh marker with the given settings

Definition at line 72 of file MarkerHelper.cpp.

void next_best_view::MarkerHelper::getRainbowColor ( visualization_msgs::Marker &  marker,
double  x,
double  alpha = 1.0 
)
static
Parameters
marker[in / out] the marker whose color gets set
xa value between 0 and 1
alphathe alpha value between 0 and 1

Definition at line 183 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getSphereMarker ( int  id,
SimpleVector3  position,
SimpleVector3  scale,
SimpleVector4  color,
std::string  ns = "my_namespace" 
)
static

returns a sphere marker with the given settings

Parameters
idthe id of the marker
positionthe position of the sphere
scalethe scale of the sphere
colorthe color of the sphere
nsthe namespace of the sphere
Returns
a sphere marker with the given settings

Definition at line 132 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getTextMarker ( int  id,
std::string  text,
geometry_msgs::Pose  pose,
std::string  ns = "my_namespace" 
)
static

returns a text marker with the given settings

Parameters
idthe id of the marker
textthe text of the marker
posethe pose of the marker
nsthe namespace of the marker
Returns
a text marker with the given settings

Definition at line 50 of file MarkerHelper.cpp.

visualization_msgs::Marker next_best_view::MarkerHelper::getTriangleListMarker ( int  id,
std::vector< SimpleVector3 vertices,
std::vector< SimpleVector4 colors,
std::string  ns = "my_namespace" 
)
static

Definition at line 166 of file MarkerHelper.cpp.


The documentation for this class was generated from the following files:


asr_next_best_view
Author(s): Aumann Florian, Borella Jocelyn, Heller Florian, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Stroh Daniel, Trautmann Jeremias, Walter Milena, Wittenbeck Valerij
autogenerated on Thu Jan 9 2020 07:20:18