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 > () |
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.
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.
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.
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.
|
constexpr |
Get the number of dimensions of a particular shape
|
constexpr |
Definition at line 84 of file solid_primitive_dims.h.
|
constexpr |
Definition at line 96 of file solid_primitive_dims.h.
|
constexpr |
Definition at line 90 of file solid_primitive_dims.h.
|
constexpr |
Definition at line 78 of file solid_primitive_dims.h.