Namespaces | Functions
shape_operations.cpp File Reference
#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 <geometric_shapes/shape_to_marker.h>
#include <geometric_shapes/shape_extents.h>
#include <geometric_shapes/solid_primitive_dims.h>
Include dependency graph for shape_operations.cpp:

Go to the source code of this file.

Namespaces

 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 &center, double &radius)
 Compute a sphere bounding a shape. More...
 
Eigen::Vector3d shapes::computeShapeExtents (const Shape *shape)
 Compute the extents of a shape. More...
 
Eigen::Vector3d shapes::computeShapeExtents (const ShapeMsg &shape_msg)
 Compute the extents of a shape. More...
 
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. More...
 
bool shapes::constructMsgFromShape (const Shape *shape, ShapeMsg &shape_msg)
 Construct the message that corresponds to the shape. Return false on failure. More...
 
Shape * shapes::constructShapeFromMsg (const shape_msgs::Mesh &shape_msg)
 Construct the shape that corresponds to the message. Return NULL on failure. More...
 
Shape * shapes::constructShapeFromMsg (const shape_msgs::Plane &shape_msg)
 Construct the shape that corresponds to the message. Return NULL on failure. More...
 
Shape * shapes::constructShapeFromMsg (const shape_msgs::SolidPrimitive &shape_msg)
 Construct the shape that corresponds to the message. Return NULL on failure. More...
 
Shape * shapes::constructShapeFromMsg (const ShapeMsg &shape_msg)
 Construct the shape that corresponds to the message. Return NULL on failure. More...
 
Shape * shapes::constructShapeFromText (std::istream &in)
 Construct a shape from plain text description. More...
 
void shapes::saveAsText (const Shape *shape, std::ostream &out)
 Save all the information about this shape as plain text. More...
 
const std::string & shapes::shapeStringName (const Shape *shape)
 Get the string name of the shape. More...
 

Variable Documentation

◆ marker_

visualization_msgs::Marker* marker_
private

Definition at line 203 of file shape_operations.cpp.

◆ use_mesh_triangle_list_

bool use_mesh_triangle_list_
private

Definition at line 202 of file shape_operations.cpp.



geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Tue Aug 13 2024 02:40:57