MRPT  2.0.1
List of all members | Public Member Functions | Private Attributes
mrpt::nav::TRobotShape Struct Reference

Detailed Description

A 3D robot shape stored as a "sliced" stack of 2D polygons, used for CReactiveNavigationSystem3D Depending on each PTG, only the 2D polygon or the circular radius will be taken into account.

Definition at line 21 of file CReactiveNavigationSystem3D.h.

#include <mrpt/nav/reactive/CReactiveNavigationSystem3D.h>

Public Member Functions

size_t size () const
 
void resize (size_t num_levels)
 
const mrpt::math::CPolygonpolygon (size_t level) const
 
double getRadius (size_t level) const
 
double getHeight (size_t level) const
 
mrpt::math::CPolygonpolygon (size_t level)
 
void setRadius (size_t level, double r)
 
void setHeight (size_t level, double h)
 
const std::vector< double > & getHeights () const
 

Private Attributes

std::vector< mrpt::math::CPolygonpolygons
 
std::vector< double > radius
 
std::vector< double > heights
 

Member Function Documentation

◆ getHeight()

double mrpt::nav::TRobotShape::getHeight ( size_t  level) const
inline

Definition at line 36 of file CReactiveNavigationSystem3D.h.

References heights.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::implementSenseObstacles().

Here is the caller graph for this function:

◆ getHeights()

const std::vector<double>& mrpt::nav::TRobotShape::getHeights ( ) const
inline

Definition at line 40 of file CReactiveNavigationSystem3D.h.

References heights.

◆ getRadius()

double mrpt::nav::TRobotShape::getRadius ( size_t  level) const
inline

Definition at line 35 of file CReactiveNavigationSystem3D.h.

References radius.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::loggingGetWSObstaclesAndShape(), and mrpt::nav::CReactiveNavigationSystem3D::STEP1_InitPTGs().

Here is the caller graph for this function:

◆ polygon() [1/2]

const mrpt::math::CPolygon& mrpt::nav::TRobotShape::polygon ( size_t  level) const
inline

Definition at line 31 of file CReactiveNavigationSystem3D.h.

References polygons.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::changeRobotShape(), mrpt::nav::CReactiveNavigationSystem3D::loadConfigFile(), mrpt::nav::CReactiveNavigationSystem3D::loggingGetWSObstaclesAndShape(), and mrpt::nav::CReactiveNavigationSystem3D::STEP1_InitPTGs().

Here is the caller graph for this function:

◆ polygon() [2/2]

mrpt::math::CPolygon& mrpt::nav::TRobotShape::polygon ( size_t  level)
inline

Definition at line 37 of file CReactiveNavigationSystem3D.h.

References polygons.

◆ resize()

void mrpt::nav::TRobotShape::resize ( size_t  num_levels)
inline

Definition at line 24 of file CReactiveNavigationSystem3D.h.

References heights, polygons, and radius.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::loadConfigFile().

Here is the caller graph for this function:

◆ setHeight()

void mrpt::nav::TRobotShape::setHeight ( size_t  level,
double  h 
)
inline

Definition at line 39 of file CReactiveNavigationSystem3D.h.

References heights.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::loadConfigFile().

Here is the caller graph for this function:

◆ setRadius()

void mrpt::nav::TRobotShape::setRadius ( size_t  level,
double  r 
)
inline

Definition at line 38 of file CReactiveNavigationSystem3D.h.

References radius.

Referenced by mrpt::nav::CReactiveNavigationSystem3D::loadConfigFile().

Here is the caller graph for this function:

◆ size()

size_t mrpt::nav::TRobotShape::size ( ) const
inline

Member Data Documentation

◆ heights

std::vector<double> mrpt::nav::TRobotShape::heights
private

Definition at line 45 of file CReactiveNavigationSystem3D.h.

Referenced by getHeight(), getHeights(), resize(), and setHeight().

◆ polygons

std::vector<mrpt::math::CPolygon> mrpt::nav::TRobotShape::polygons
private

Definition at line 43 of file CReactiveNavigationSystem3D.h.

Referenced by polygon(), resize(), and size().

◆ radius

std::vector<double> mrpt::nav::TRobotShape::radius
private

Definition at line 44 of file CReactiveNavigationSystem3D.h.

Referenced by getRadius(), resize(), and setRadius().




Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020