Public Types | Public Member Functions | Static Public Member Functions
jsk_recognition_utils::ConvexPolygon Class Reference

#include <convex_polygon.h>

Inheritance diagram for jsk_recognition_utils::ConvexPolygon:
Inheritance graph
[legend]

List of all members.

Public Types

typedef boost::shared_ptr
< ConvexPolygon
Ptr
typedef Eigen::Vector3f Vertex
typedef std::vector
< Eigen::Vector3f,
Eigen::aligned_allocator
< Eigen::Vector3f > > 
Vertices

Public Member Functions

bool allEdgesLongerThan (double thr)
 ConvexPolygon (const Vertices &vertices)
 ConvexPolygon (const Vertices &vertices, const std::vector< float > &coefficients)
double distanceFromVertices (const Eigen::Vector3f &p)
bool distanceSmallerThan (const Eigen::Vector3f &p, double distance_threshold)
bool distanceSmallerThan (const Eigen::Vector3f &p, double distance_threshold, double &output_distance)
virtual ConvexPolygon flipConvex ()
virtual Eigen::Vector3f getCentroid ()
virtual bool isProjectableInside (const Eigen::Vector3f &p)
virtual Ptr magnify (const double scale_factor)
virtual Ptr magnifyByDistance (const double distance)
virtual void project (const Eigen::Vector3f &p, Eigen::Vector3f &output)
virtual void project (const Eigen::Vector3d &p, Eigen::Vector3d &output)
virtual void project (const Eigen::Vector3d &p, Eigen::Vector3f &output)
virtual void project (const Eigen::Vector3f &p, Eigen::Vector3d &output)
virtual void projectOnPlane (const Eigen::Vector3f &p, Eigen::Vector3f &output)
virtual void projectOnPlane (const Eigen::Affine3f &p, Eigen::Affine3f &output)
geometry_msgs::Polygon toROSMsg ()

Static Public Member Functions

static ConvexPolygon fromROSMsg (const geometry_msgs::Polygon &polygon)
static ConvexPolygon::Ptr fromROSMsgPtr (const geometry_msgs::Polygon &polygon)

Detailed Description

Definition at line 48 of file convex_polygon.h.


Member Typedef Documentation

Reimplemented from jsk_recognition_utils::Polygon.

Definition at line 51 of file convex_polygon.h.

Definition at line 52 of file convex_polygon.h.

typedef std::vector<Eigen::Vector3f, Eigen::aligned_allocator<Eigen::Vector3f> > jsk_recognition_utils::ConvexPolygon::Vertices

Definition at line 54 of file convex_polygon.h.


Constructor & Destructor Documentation

Definition at line 43 of file convex_polygon.cpp.

jsk_recognition_utils::ConvexPolygon::ConvexPolygon ( const Vertices vertices,
const std::vector< float > &  coefficients 
)

Definition at line 49 of file convex_polygon.cpp.


Member Function Documentation

Definition at line 214 of file convex_polygon.cpp.

double jsk_recognition_utils::ConvexPolygon::distanceFromVertices ( const Eigen::Vector3f &  p)

Definition at line 232 of file convex_polygon.cpp.

bool jsk_recognition_utils::ConvexPolygon::distanceSmallerThan ( const Eigen::Vector3f &  p,
double  distance_threshold 
)

Definition at line 189 of file convex_polygon.cpp.

bool jsk_recognition_utils::ConvexPolygon::distanceSmallerThan ( const Eigen::Vector3f &  p,
double  distance_threshold,
double &  output_distance 
)

Definition at line 196 of file convex_polygon.cpp.

Definition at line 95 of file convex_polygon.cpp.

ConvexPolygon jsk_recognition_utils::ConvexPolygon::fromROSMsg ( const geometry_msgs::Polygon &  polygon) [static]

Reimplemented from jsk_recognition_utils::Polygon.

Definition at line 165 of file convex_polygon.cpp.

ConvexPolygon::Ptr jsk_recognition_utils::ConvexPolygon::fromROSMsgPtr ( const geometry_msgs::Polygon &  polygon) [static]

Reimplemented from jsk_recognition_utils::Polygon.

Definition at line 177 of file convex_polygon.cpp.

Definition at line 156 of file convex_polygon.cpp.

bool jsk_recognition_utils::ConvexPolygon::isProjectableInside ( const Eigen::Vector3f &  p) [virtual]

Definition at line 287 of file convex_polygon.cpp.

ConvexPolygon::Ptr jsk_recognition_utils::ConvexPolygon::magnify ( const double  scale_factor) [virtual]

Definition at line 261 of file convex_polygon.cpp.

Definition at line 245 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::project ( const Eigen::Vector3f &  p,
Eigen::Vector3f &  output 
) [virtual]

Reimplemented from jsk_recognition_utils::Plane.

Definition at line 109 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::project ( const Eigen::Vector3d &  p,
Eigen::Vector3d &  output 
) [virtual]

Reimplemented from jsk_recognition_utils::Plane.

Definition at line 134 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::project ( const Eigen::Vector3d &  p,
Eigen::Vector3f &  output 
) [virtual]

Reimplemented from jsk_recognition_utils::Plane.

Definition at line 142 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::project ( const Eigen::Vector3f &  p,
Eigen::Vector3d &  output 
) [virtual]

Reimplemented from jsk_recognition_utils::Plane.

Definition at line 148 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::projectOnPlane ( const Eigen::Vector3f &  p,
Eigen::Vector3f &  output 
) [virtual]

Definition at line 56 of file convex_polygon.cpp.

void jsk_recognition_utils::ConvexPolygon::projectOnPlane ( const Eigen::Affine3f &  p,
Eigen::Affine3f &  output 
) [virtual]

Definition at line 62 of file convex_polygon.cpp.

Definition at line 273 of file convex_polygon.cpp.


The documentation for this class was generated from the following files:


jsk_recognition_utils
Author(s):
autogenerated on Tue Jul 2 2019 19:40:37