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);
Definition of various shapes. No properties such as position are included. These are simply the descr...
void saveAsText(const Shape *shape, std::ostream &out)
Save all the information about this shape as plain text.
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.
void computeShapeBoundingSphere(const Shape *shape, Eigen::Vector3d ¢er, double &radius)
Compute a sphere bounding a shape.
bool constructMsgFromShape(const Shape *shape, ShapeMsg &shape_msg)
Construct the message that corresponds to the shape. Return false on failure.
Shape * constructShapeFromText(std::istream &in)
Construct a shape from plain text description.
Eigen::Vector3d computeShapeExtents(const ShapeMsg &shape_msg)
Compute the extents of a shape.
boost::variant< shape_msgs::SolidPrimitive, shape_msgs::Mesh, shape_msgs::Plane > ShapeMsg
Type that can hold any of the desired shape message types.