Classes | Functions
shape_tools Namespace Reference

Classes

struct  SolidPrimitiveDimCount
 The number of dimensions of a particular shape. More...
struct  SolidPrimitiveDimCount< shape_msgs::SolidPrimitive::BOX >
struct  SolidPrimitiveDimCount< shape_msgs::SolidPrimitive::CONE >
struct  SolidPrimitiveDimCount< shape_msgs::SolidPrimitive::CYLINDER >
struct  SolidPrimitiveDimCount< shape_msgs::SolidPrimitive::SPHERE >

Functions

void constructMarkerFromShape (const shape_msgs::Mesh &shape_msg, visualization_msgs::Marker &marker, bool use_mesh_triangle_list=true)
 Convert a shape_msgs::Mesh shape_msg to a visualization_msgs::Marker marker. The corresponding marker will be constructed as a LINE_LIST (if use_mesh_triangle_list is false) or as a TRIANGLE_LIST (if use_mesh_triangle_list is true). On incorrect input, this function throws a std::runtime_error.
void constructMarkerFromShape (const shape_msgs::SolidPrimitive &shape_msg, visualization_msgs::Marker &marker)
 Convert a shape_msgs::SolidPrimitive shape_msg to a visualization_msgs::Marker marker. On incorrect input, this function throws a std::runtime_error.
void getShapeExtents (const shape_msgs::SolidPrimitive &shape_msg, double &x_extent, double &y_extent, double &z_extent)
 Get the dimensions of an axis-aligned bounding box for the shape described by shape_msg.
void getShapeExtents (const shape_msgs::Mesh &shape_msg, double &x_extent, double &y_extent, double &z_extent)
 Get the dimensions of an axis-aligned bounding box for the shape described by shape_msg.

Function Documentation

void shape_tools::constructMarkerFromShape ( const shape_msgs::Mesh &  shape_msg,
visualization_msgs::Marker &  marker,
bool  use_mesh_triangle_list = true 
)

Convert a shape_msgs::Mesh shape_msg to a visualization_msgs::Marker marker. The corresponding marker will be constructed as a LINE_LIST (if use_mesh_triangle_list is false) or as a TRIANGLE_LIST (if use_mesh_triangle_list is true). On incorrect input, this function throws a std::runtime_error.

Definition at line 99 of file shape_to_marker.cpp.

void shape_tools::constructMarkerFromShape ( const shape_msgs::SolidPrimitive &  shape_msg,
visualization_msgs::Marker &  marker 
)

Convert a shape_msgs::SolidPrimitive shape_msg to a visualization_msgs::Marker marker. On incorrect input, this function throws a std::runtime_error.

Definition at line 39 of file shape_to_marker.cpp.

void shape_tools::getShapeExtents ( const shape_msgs::SolidPrimitive &  shape_msg,
double &  x_extent,
double &  y_extent,
double &  z_extent 
)

Get the dimensions of an axis-aligned bounding box for the shape described by shape_msg.

Definition at line 38 of file shape_extents.cpp.

void shape_tools::getShapeExtents ( const shape_msgs::Mesh &  shape_msg,
double &  x_extent,
double &  y_extent,
double &  z_extent 
)

Get the dimensions of an axis-aligned bounding box for the shape described by shape_msg.

Definition at line 78 of file shape_extents.cpp.



shape_tools
Author(s): Ioan Sucan , Gil Jones
autogenerated on Mon Oct 6 2014 07:37:21