Go to the documentation of this file.
37 #ifndef GEOMETRIC_SHAPES_SHAPE_OPERATIONS_
38 #define GEOMETRIC_SHAPES_SHAPE_OPERATIONS_
43 #include <visualization_msgs/Marker.h>
64 bool constructMarkerFromShape(
const Shape* shape, visualization_msgs::Marker& mk,
bool use_mesh_triangle_list =
false);
79 void saveAsText(
const Shape* shape, std::ostream& out);
boost::variant< shape_msgs::SolidPrimitive, shape_msgs::Mesh, shape_msgs::Plane > ShapeMsg
Type that can hold any of the desired shape message types.
Definition of various shapes. No properties such as position are included. These are simply the descr...
Eigen::Vector3d computeShapeExtents(const ShapeMsg &shape_msg)
Compute the extents of a shape.
bool constructMarkerFromShape(const Shape *shape, visualization_msgs::Marker &mk, bool use_mesh_triangle_list=false)
Construct the marker that corresponds to the shape. Return false on failure.
Shape * constructShapeFromMsg(const shape_msgs::SolidPrimitive &shape_msg)
Construct the shape that corresponds to the message. Return NULL on failure.
const std::string & shapeStringName(const Shape *shape)
Get the string name of the shape.
bool constructMsgFromShape(const Shape *shape, ShapeMsg &shape_msg)
Construct the message that corresponds to the shape. Return false on failure.
void saveAsText(const Shape *shape, std::ostream &out)
Save all the information about this shape as plain text.
void computeShapeBoundingSphere(const Shape *shape, Eigen::Vector3d ¢er, double &radius)
Compute a sphere bounding a shape.
Shape * constructShapeFromText(std::istream &in)
Construct a shape from plain text description.
geometric_shapes
Author(s): Ioan Sucan
, Gil Jones
autogenerated on Tue Aug 13 2024 02:40:57