Classes | Functions
geometric_shapes Namespace Reference

Classes

struct  SolidPrimitiveDimCount
 

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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<int shape>
constexpr unsigned int solidPrimitiveDimCount ()
 
template<>
constexpr unsigned int solidPrimitiveDimCount< shape_msgs::SolidPrimitive::BOX > ()
 
template<>
constexpr unsigned int solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CONE > ()
 
template<>
constexpr unsigned int solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CYLINDER > ()
 
template<>
constexpr unsigned int solidPrimitiveDimCount< shape_msgs::SolidPrimitive::SPHERE > ()
 

Function Documentation

◆ constructMarkerFromShape() [1/2]

void geometric_shapes::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 98 of file shape_to_marker.cpp.

◆ constructMarkerFromShape() [2/2]

void geometric_shapes::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 40 of file shape_to_marker.cpp.

◆ getShapeExtents() [1/2]

void geometric_shapes::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 76 of file shape_extents.cpp.

◆ getShapeExtents() [2/2]

void geometric_shapes::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 39 of file shape_extents.cpp.

◆ solidPrimitiveDimCount()

template<int shape>
constexpr unsigned int geometric_shapes::solidPrimitiveDimCount ( )
constexpr

Get the number of dimensions of a particular shape

◆ solidPrimitiveDimCount< shape_msgs::SolidPrimitive::BOX >()

template<>
constexpr unsigned int geometric_shapes::solidPrimitiveDimCount< shape_msgs::SolidPrimitive::BOX > ( )
constexpr

Definition at line 84 of file solid_primitive_dims.h.

◆ solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CONE >()

template<>
constexpr unsigned int geometric_shapes::solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CONE > ( )
constexpr

Definition at line 96 of file solid_primitive_dims.h.

◆ solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CYLINDER >()

template<>
constexpr unsigned int geometric_shapes::solidPrimitiveDimCount< shape_msgs::SolidPrimitive::CYLINDER > ( )
constexpr

Definition at line 90 of file solid_primitive_dims.h.

◆ solidPrimitiveDimCount< shape_msgs::SolidPrimitive::SPHERE >()

template<>
constexpr unsigned int geometric_shapes::solidPrimitiveDimCount< shape_msgs::SolidPrimitive::SPHERE > ( )
constexpr

Definition at line 78 of file solid_primitive_dims.h.



geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Sun Oct 1 2023 02:40:16