9 #ifndef CReactiveNavigationSystem3D_H 10 #define CReactiveNavigationSystem3D_H 118 size_t i)
const override 138 std::vector<CParameterizedTrajectoryGenerator*>
PTGs;
172 const size_t ptg_idx, std::vector<double>& out_TPObstacles,
175 const bool eval_clearance)
override;
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
void setHeight(size_t level, double h)
virtual bool checkCollisionWithLatestObstacles(const mrpt::math::TPose2D &relative_robot_pose) const override
Checks whether the robot shape, when placed at the given pose (relative to the current pose)...
TCandidateMovementPTG holonomicmov
void resize(size_t num_levels)
virtual void loadConfigFile(const mrpt::utils::CConfigFileBase &c) override
Loads all params from a file.
mrpt::maps::CSimplePointsMap m_WS_Obstacles_unsorted
The unsorted set of obstacles from the sensors.
#define MRPT_MAKE_ALIGNED_OPERATOR_NEW
A 3D robot shape stored as a "sliced" stack of 2D polygons, used for CReactiveNavigationSystem3D Depe...
virtual void STEP1_InitPTGs() override
virtual void loggingGetWSObstaclesAndShape(CLogFileRecord &out_log) override
Generates a pointcloud of obstacles, and the robot shape, to be saved in the logging record for the c...
A set of PTGs of the same type, one per "height level".
TRobotShape m_robotShape
The robot 3D shape model.
std::vector< CParameterizedTrajectoryGenerator * > PTGs
const mrpt::math::CPolygon & polygon(size_t level) const
void enableLogFile(bool enable)
Enables/disables saving log files.
A wrapper of a TPolygon2D class, implementing CSerializable.
A cloud of points in 2D or 3D, which can be built from a sequence of laser scans. ...
Clearance information for one particular PTG and one set of obstacles.
A class for storing, saving and loading a reactive navigation log record for the CReactiveNavigationS...
void setRadius(size_t level, double r)
This class allows loading and storing values and vectors of different types from a configuration text...
virtual CParameterizedTrajectoryGenerator * getPTG(size_t i) override
Gets the i'th PTG.
This is the base class for any user-defined PTG.
virtual const CParameterizedTrajectoryGenerator * getPTG(size_t i) const override
Gets the i'th PTG.
std::vector< double > radius
std::vector< TPTGmultilevel > m_ptgmultilevel
The set of PTG-transformations to be used: indices are [ptg_index][height_index]. ...
Base class for reactive navigator systems based on TP-Space, with an arbitrary holonomic reactive met...
virtual void saveConfigFile(mrpt::utils::CConfigFileBase &c) const override
Saves all current options to a config file.
GLsizei const GLchar ** string
const std::vector< double > & getHeights() const
See base class CAbstractPTGBasedReactive for a description and instructions of use.
std::vector< mrpt::math::CPolygon > polygons
bool implementSenseObstacles(mrpt::system::TTimeStamp &obs_timestamp) override
Return false on any fatal error.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLdouble GLdouble GLdouble r
std::vector< mrpt::maps::CSimplePointsMap > m_WS_Obstacles_inlevels
One point cloud per 2.5D robot-shape-slice, coordinates relative to the robot local frame...
std::vector< double > heights
void changeRobotShape(TRobotShape robotShape)
Change the robot shape, which is taken into account for collision grid building.
mrpt::math::TPoint2D TP_Target
const double & getRadius(size_t level) const
mrpt::math::CPolygon & polygon(size_t level)
void STEP3_WSpaceToTPSpace(const size_t ptg_idx, std::vector< double > &out_TPObstacles, mrpt::nav::ClearanceDiagram &out_clearance, const mrpt::math::TPose2D &rel_pose_PTG_origin_wrt_sense, const bool eval_clearance) override
Transform the obstacle into TP-Obstacles in TP-Spaces.
virtual ~CReactiveNavigationSystem3D()
Destructor.
The pure virtual interface between a real or simulated robot and any CAbstractNavigator-derived class...
const double & getHeight(size_t level) const
CReactiveNavigationSystem3D(CRobot2NavInterface &react_iterf_impl, bool enableConsoleOutput=true, bool enableLogFile=false, const std::string &logFileDirectory=std::string("./reactivenav.logs"))
See docs in ctor of base class.
virtual size_t getPTG_count() const override
Returns the number of different PTGs that have been setup.
Stores a candidate movement in TP-Space-based navigation.