Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jsk_recognition_utils::GridMap Class Reference

#include <grid_map.h>

Public Types

typedef Columns::iterator ColumnIterator
 
typedef std::map< int, RowIndicesColumns
 
typedef boost::shared_ptr< GridMapPtr
 
typedef std::set< int > RowIndices
 
typedef std::set< int >::iterator RowIterator
 

Public Member Functions

virtual void add (GridMap &other)
 
virtual bool check4Neighbor (int x, int y)
 
virtual void decrease (int i)
 
virtual void fillRegion (const Eigen::Vector3f &start, std::vector< GridIndex::Ptr > &output)
 
virtual void fillRegion (const GridIndex::Ptr start, std::vector< GridIndex::Ptr > &output)
 
virtual std::vector< floatgetCoefficients ()
 
virtual unsigned int getGeneration ()
 
virtual bool getValue (const GridIndex::Ptr &index)
 
virtual bool getValue (const GridIndex &index)
 
virtual bool getValue (const int x, const int y)
 
virtual unsigned int getVoteNum ()
 
 GridMap (double resolution, const std::vector< float > &coefficients)
 
virtual void gridToPoint (GridIndex::Ptr index, Eigen::Vector3f &pos)
 
virtual void gridToPoint (const GridIndex &index, Eigen::Vector3f &pos)
 
virtual void gridToPoint2 (const GridIndex &index, Eigen::Vector3f &pos)
 
virtual int heightOffset ()
 
virtual void indicesToPointCloud (const std::vector< GridIndex::Ptr > &indices, pcl::PointCloud< pcl::PointXYZRGB >::Ptr cloud)
 
virtual bool isBinsOccupied (const Eigen::Vector3f &p)
 
virtual boost::tuple< int, int > minMaxX ()
 
virtual boost::tuple< int, int > minMaxY ()
 
virtual int normalizedHeight ()
 
virtual int normalizedIndex (int width_offset, int height_offset, int step, int elem_size, int original_x, int original_y)
 
virtual int normalizedWidth ()
 
virtual void originPose (Eigen::Affine3f &output)
 
virtual void originPose (Eigen::Affine3d &output)
 
virtual void pointToIndex (const pcl::PointXYZRGB &point, GridIndex::Ptr index)
 
virtual void pointToIndex (const Eigen::Vector3f &point, GridIndex::Ptr index)
 
virtual GridIndex::Ptr registerIndex (const GridIndex::Ptr &index)
 
virtual GridIndex::Ptr registerIndex (const int x, const int y)
 
virtual std::vector< GridIndex::PtrregisterLine (const pcl::PointXYZRGB &from, const pcl::PointXYZRGB &to)
 
virtual void registerPoint (const pcl::PointXYZRGB &point)
 
virtual void registerPointCloud (pcl::PointCloud< pcl::PointXYZRGB >::Ptr cloud)
 
virtual void removeIndex (const GridIndex::Ptr &index)
 
virtual void setGeneration (unsigned int generation)
 
virtual ConvexPolygon::Ptr toConvexPolygon ()
 
virtual cv::Mat toImage ()
 
virtual void toMsg (jsk_recognition_msgs::SparseOccupancyGrid &grid)
 
virtual Plane toPlane ()
 
virtual Plane::Ptr toPlanePtr ()
 
virtual pcl::PointCloud< pcl::PointXYZ >::Ptr toPointCloud ()
 
virtual void vote ()
 
virtual int widthOffset ()
 
virtual ~GridMap ()
 

Protected Member Functions

virtual void decreaseOne ()
 

Protected Attributes

double d_
 
Columns data_
 
Eigen::Vector3f ex_
 
Eigen::Vector3f ey_
 
unsigned int generation_
 
std::vector< GridLine::Ptrlines_
 
Eigen::Vector3f normal_
 
Eigen::Vector3f O_
 
double resolution_
 
unsigned int vote_
 

Detailed Description

Definition at line 55 of file grid_map.h.

Member Typedef Documentation

Definition at line 61 of file grid_map.h.

Definition at line 60 of file grid_map.h.

Definition at line 58 of file grid_map.h.

Definition at line 59 of file grid_map.h.

Definition at line 62 of file grid_map.h.

Constructor & Destructor Documentation

jsk_recognition_utils::GridMap::GridMap ( double  resolution,
const std::vector< float > &  coefficients 
)

Definition at line 49 of file grid_map.cpp.

jsk_recognition_utils::GridMap::~GridMap ( )
virtual

Definition at line 70 of file grid_map.cpp.

Member Function Documentation

void jsk_recognition_utils::GridMap::add ( GridMap other)
virtual

Definition at line 608 of file grid_map.cpp.

bool jsk_recognition_utils::GridMap::check4Neighbor ( int  x,
int  y 
)
virtual

Definition at line 568 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::decrease ( int  i)
virtual

Definition at line 601 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::decreaseOne ( )
protectedvirtual

Definition at line 580 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::fillRegion ( const Eigen::Vector3f &  start,
std::vector< GridIndex::Ptr > &  output 
)
virtual

Definition at line 337 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::fillRegion ( const GridIndex::Ptr  start,
std::vector< GridIndex::Ptr > &  output 
)
virtual

Definition at line 293 of file grid_map.cpp.

std::vector< float > jsk_recognition_utils::GridMap::getCoefficients ( )
virtual

Definition at line 417 of file grid_map.cpp.

unsigned int jsk_recognition_utils::GridMap::getGeneration ( )
virtual

Definition at line 441 of file grid_map.cpp.

bool jsk_recognition_utils::GridMap::getValue ( const GridIndex::Ptr index)
virtual

Definition at line 288 of file grid_map.cpp.

bool jsk_recognition_utils::GridMap::getValue ( const GridIndex index)
virtual

Definition at line 283 of file grid_map.cpp.

bool jsk_recognition_utils::GridMap::getValue ( const int  x,
const int  y 
)
virtual

Definition at line 247 of file grid_map.cpp.

unsigned int jsk_recognition_utils::GridMap::getVoteNum ( )
virtual

Definition at line 432 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::gridToPoint ( GridIndex::Ptr  index,
Eigen::Vector3f &  pos 
)
virtual

Definition at line 229 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::gridToPoint ( const GridIndex index,
Eigen::Vector3f &  pos 
)
virtual

Definition at line 234 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::gridToPoint2 ( const GridIndex index,
Eigen::Vector3f &  pos 
)
virtual

Definition at line 240 of file grid_map.cpp.

int jsk_recognition_utils::GridMap::heightOffset ( )
virtual

Definition at line 526 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::indicesToPointCloud ( const std::vector< GridIndex::Ptr > &  indices,
pcl::PointCloud< pcl::PointXYZRGB >::Ptr  cloud 
)
virtual

Definition at line 344 of file grid_map.cpp.

bool jsk_recognition_utils::GridMap::isBinsOccupied ( const Eigen::Vector3f &  p)
virtual

Definition at line 458 of file grid_map.cpp.

boost::tuple< int, int > jsk_recognition_utils::GridMap::minMaxX ( )
virtual

Definition at line 466 of file grid_map.cpp.

boost::tuple< int, int > jsk_recognition_utils::GridMap::minMaxY ( )
virtual

Definition at line 484 of file grid_map.cpp.

int jsk_recognition_utils::GridMap::normalizedHeight ( )
virtual

Definition at line 513 of file grid_map.cpp.

int jsk_recognition_utils::GridMap::normalizedIndex ( int  width_offset,
int  height_offset,
int  step,
int  elem_size,
int  original_x,
int  original_y 
)
virtual

Definition at line 533 of file grid_map.cpp.

int jsk_recognition_utils::GridMap::normalizedWidth ( )
virtual

Definition at line 507 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::originPose ( Eigen::Affine3f &  output)
virtual

Definition at line 359 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::originPose ( Eigen::Affine3d &  output)
virtual

Definition at line 372 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::pointToIndex ( const pcl::PointXYZRGB &  point,
GridIndex::Ptr  index 
)
virtual

Definition at line 218 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::pointToIndex ( const Eigen::Vector3f &  point,
GridIndex::Ptr  index 
)
virtual

Definition at line 223 of file grid_map.cpp.

GridIndex::Ptr jsk_recognition_utils::GridMap::registerIndex ( const GridIndex::Ptr index)
virtual

Definition at line 90 of file grid_map.cpp.

GridIndex::Ptr jsk_recognition_utils::GridMap::registerIndex ( const int  x,
const int  y 
)
virtual

Definition at line 75 of file grid_map.cpp.

std::vector< GridIndex::Ptr > jsk_recognition_utils::GridMap::registerLine ( const pcl::PointXYZRGB &  from,
const pcl::PointXYZRGB &  to 
)
virtual

Definition at line 103 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::registerPoint ( const pcl::PointXYZRGB &  point)
virtual

Definition at line 95 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::registerPointCloud ( pcl::PointCloud< pcl::PointXYZRGB >::Ptr  cloud)
virtual

Definition at line 210 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::removeIndex ( const GridIndex::Ptr index)
virtual

Definition at line 446 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::setGeneration ( unsigned int  generation)
virtual

Definition at line 437 of file grid_map.cpp.

ConvexPolygon::Ptr jsk_recognition_utils::GridMap::toConvexPolygon ( )
virtual

Definition at line 652 of file grid_map.cpp.

cv::Mat jsk_recognition_utils::GridMap::toImage ( )
virtual

Definition at line 544 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::toMsg ( jsk_recognition_msgs::SparseOccupancyGrid &  grid)
virtual

Definition at line 379 of file grid_map.cpp.

Plane jsk_recognition_utils::GridMap::toPlane ( )
virtual

Definition at line 405 of file grid_map.cpp.

Plane::Ptr jsk_recognition_utils::GridMap::toPlanePtr ( )
virtual

Definition at line 410 of file grid_map.cpp.

pcl::PointCloud< pcl::PointXYZ >::Ptr jsk_recognition_utils::GridMap::toPointCloud ( )
virtual

Definition at line 629 of file grid_map.cpp.

void jsk_recognition_utils::GridMap::vote ( )
virtual

Definition at line 427 of file grid_map.cpp.

int jsk_recognition_utils::GridMap::widthOffset ( )
virtual

Definition at line 519 of file grid_map.cpp.

Member Data Documentation

double jsk_recognition_utils::GridMap::d_
protected

Definition at line 119 of file grid_map.h.

Columns jsk_recognition_utils::GridMap::data_
protected

Definition at line 124 of file grid_map.h.

Eigen::Vector3f jsk_recognition_utils::GridMap::ex_
protected

Definition at line 121 of file grid_map.h.

Eigen::Vector3f jsk_recognition_utils::GridMap::ey_
protected

Definition at line 121 of file grid_map.h.

unsigned int jsk_recognition_utils::GridMap::generation_
protected

Definition at line 126 of file grid_map.h.

std::vector<GridLine::Ptr> jsk_recognition_utils::GridMap::lines_
protected

Definition at line 123 of file grid_map.h.

Eigen::Vector3f jsk_recognition_utils::GridMap::normal_
protected

Definition at line 118 of file grid_map.h.

Eigen::Vector3f jsk_recognition_utils::GridMap::O_
protected

Definition at line 115 of file grid_map.h.

double jsk_recognition_utils::GridMap::resolution_
protected

Definition at line 114 of file grid_map.h.

unsigned int jsk_recognition_utils::GridMap::vote_
protected

Definition at line 125 of file grid_map.h.


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


jsk_recognition_utils
Author(s):
autogenerated on Mon May 3 2021 03:03:03