#include "geometric_shapes/shape_operations.h"
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <set>
#include <float.h>
#include <console_bridge/console.h>
#include <Eigen/Geometry>
#include <shape_tools/shape_to_marker.h>
#include <shape_tools/shape_extents.h>
#include <shape_tools/solid_primitive_dims.h>
Go to the source code of this file.
Namespaces | |
namespace | shapes |
Definition of various shapes. No properties such as position are included. These are simply the descriptions and dimensions of shapes. | |
Functions | |
void | shapes::computeShapeBoundingSphere (const Shape *shape, Eigen::Vector3d ¢er, double &radius) |
Compute a sphere bounding a shape. | |
Eigen::Vector3d | shapes::computeShapeExtents (const ShapeMsg &shape_msg) |
Compute the extents of a shape. | |
Eigen::Vector3d | shapes::computeShapeExtents (const Shape *shape) |
Compute the extents of a shape. | |
bool | shapes::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. | |
bool | shapes::constructMsgFromShape (const Shape *shape, ShapeMsg &shape_msg) |
Construct the message that corresponds to the shape. Return false on failure. | |
Shape * | shapes::constructShapeFromMsg (const shape_msgs::SolidPrimitive &shape_msg) |
Construct the shape that corresponds to the message. Return NULL on failure. | |
Shape * | shapes::constructShapeFromMsg (const shape_msgs::Plane &shape_msg) |
Construct the shape that corresponds to the message. Return NULL on failure. | |
Shape * | shapes::constructShapeFromMsg (const shape_msgs::Mesh &shape_msg) |
Construct the shape that corresponds to the message. Return NULL on failure. | |
Shape * | shapes::constructShapeFromMsg (const ShapeMsg &shape_msg) |
Construct the shape that corresponds to the message. Return NULL on failure. | |
Shape * | shapes::constructShapeFromText (std::istream &in) |
Construct a shape from plain text description. | |
void | shapes::saveAsText (const Shape *shape, std::ostream &out) |
Save all the information about this shape as plain text. | |
const std::string & | shapes::shapeStringName (const Shape *shape) |
Get the string name of the shape. |
visualization_msgs::Marker* marker_ |
Definition at line 187 of file shape_operations.cpp.
Definition at line 186 of file shape_operations.cpp.