#include <mrpt/reactivenav/CPTG2.h>

Public Types | |
| typedef std::map< uint16_t, float > | TCollisionCell |
| A list of all the pairs (alpha,distance) such as the robot collides at that cell. | |
Public Member Functions | |
| CPTG2 (const TParameters< double > ¶ms) | |
| Constructor: possible values in "params", those of CParameterizedTrajectoryGenerator plus: | |
| void | lambdaFunction (float x, float y, int &out_k, float &out_d) |
| The lambda function. | |
| std::string | getDescription () const |
| Gets a short textual description of the PTG and its parameters. | |
| bool | PTG_IsIntoDomain (float x, float y) |
| To be implemented in derived classes: | |
| void | PTG_Generator (float alfa, float t, float x, float y, float phi, float &v, float &w) |
| The main method to be implemented in derived classes. | |
| void | simulateTrajectories (uint16_t alfaValuesCount, float max_time, float max_dist, unsigned int max_n, float diferencial_t, float min_dist, float *out_max_acc_v=NULL, float *out_max_acc_w=NULL) |
| The main method: solves the diferential equation to generate a family of parametrical trajectories. | |
| void | directionToMotionCommand (uint16_t k, float &out_v, float &out_w) |
| Converts an "alfa" value (into the discrete set) into a feasible motion command. | |
| size_t | getAlfaValuesCount () |
| size_t | getPointsCountInCPath_k (uint16_t k) |
| void | getCPointWhen_d_Is (float d, uint16_t k, float &x, float &y, float &phi, float &t, float *v=NULL, float *w=NULL) |
| float | GetCPathPoint_x (uint16_t k, int n) |
| float | GetCPathPoint_y (uint16_t k, int n) |
| float | GetCPathPoint_phi (uint16_t k, int n) |
| float | GetCPathPoint_t (uint16_t k, int n) |
| float | GetCPathPoint_d (uint16_t k, int n) |
| float | GetCPathPoint_v (uint16_t k, int n) |
| float | GetCPathPoint_w (uint16_t k, int n) |
| void | allocMemForVerticesData (int nVertices) |
| void | setVertex_xy (uint16_t k, int n, int m, float x, float y) |
| float | getVertex_x (uint16_t k, int n, int m) |
| float | getVertex_y (uint16_t k, int n, int m) |
| float * | getVertixesArray_x (uint16_t k, int n) |
| float * | getVertixesArray_y (uint16_t k, int n) |
| unsigned int | getVertixesCount () |
| float | getMax_V () |
| float | getMax_W () |
| float | getMax_V_inTPSpace () |
| float | index2alfa (uint16_t k) |
| Alfa value for the discrete corresponding value. | |
| uint16_t | alfa2index (float alfa) |
| Discrete index value for the corresponding alfa value. | |
| void | debugDumpInFiles (int nPT) |
| Dump PTG trajectories in files in directory "./PTGs/". | |
| bool | SaveColGridsToFile (const std::string &filename) |
| bool | LoadColGridsFromFile (const std::string &filename) |
Static Public Member Functions | |
| static CParameterizedTrajectoryGenerator * | CreatePTG (const TParameters< double > ¶ms) |
| The class factory for creating a PTG from a list of parameters "params". | |
Public Attributes | |
| CColisionGrid | m_collisionGrid |
| The collision grid. | |
| float | refDistance |
Protected Types | |
| typedef std::vector< TCPoint > | TCPointVector |
Protected Member Functions | |
| void | initializeCollisionsGrid (float refDistance, float resolution) |
| Initialized the collision grid with the given size and resolution. | |
| void | FreeMemory () |
| Free all the memory buffers: | |
Protected Attributes | |
| float | cte_a0v |
| float | cte_a0w |
| float | V_MAX |
| float | W_MAX |
| float | TAU |
| float | DELAY |
| float | turningRadiusReference |
| CDynamicGrid < TCellForLambdaFunction > | m_lambdaFunctionOptimizer |
| This grid will contain indexes data for speeding-up the default, brute-force lambda function. | |
| float | maxV_inTPSpace |
| bool | flag1 |
| bool | flag2 |
| unsigned int | alfaValuesCount |
| The number of discrete values for ALFA between -PI and +PI. | |
| std::vector< TCPointVector > | CPoints |
| std::vector< vector_float > | vertexPoints_x |
| The shape of the robot along the trajectories: | |
| std::vector< vector_float > | vertexPoints_y |
| int | nVertices |
|
inherited |
A list of all the pairs (alpha,distance) such as the robot collides at that cell.
Definition at line 185 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 290 of file CParameterizedTrajectoryGenerator.h.
| mrpt::reactivenav::CPTG2::CPTG2 | ( | const TParameters< double > & | params | ) |
Constructor: possible values in "params", those of CParameterizedTrajectoryGenerator plus:
|
inlineinherited |
Discrete index value for the corresponding alfa value.
Definition at line 170 of file CParameterizedTrajectoryGenerator.h.
|
inherited |
|
staticinherited |
The class factory for creating a PTG from a list of parameters "params".
Possible values in "params" are:
| std::logic_error | On invalid or missing parameters. |
|
inherited |
Dump PTG trajectories in files in directory "./PTGs/".
|
inherited |
Converts an "alfa" value (into the discrete set) into a feasible motion command.
|
protectedinherited |
Free all the memory buffers:
|
inlineinherited |
Definition at line 106 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 115 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 113 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 114 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 116 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 117 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 111 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 112 of file CParameterizedTrajectoryGenerator.h.
|
inherited |
|
virtual |
Gets a short textual description of the PTG and its parameters.
Implements mrpt::reactivenav::CParameterizedTrajectoryGenerator.
|
inlineinherited |
Definition at line 155 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 157 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 156 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 107 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 127 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 134 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 141 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 147 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Definition at line 153 of file CParameterizedTrajectoryGenerator.h.
|
inlineinherited |
Alfa value for the discrete corresponding value.
Definition at line 162 of file CParameterizedTrajectoryGenerator.h.
References M_PI.
|
protectedinherited |
Initialized the collision grid with the given size and resolution.
|
virtual |
The lambda function.
Reimplemented from mrpt::reactivenav::CParameterizedTrajectoryGenerator.
|
inherited |
|
virtual |
The main method to be implemented in derived classes.
Implements mrpt::reactivenav::CParameterizedTrajectoryGenerator.
|
virtual |
To be implemented in derived classes:
Implements mrpt::reactivenav::CParameterizedTrajectoryGenerator.
|
inherited |
|
inlineinherited |
Definition at line 121 of file CParameterizedTrajectoryGenerator.h.
|
inherited |
The main method: solves the diferential equation to generate a family of parametrical trajectories.
|
protectedinherited |
The number of discrete values for ALFA between -PI and +PI.
Definition at line 265 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 291 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 237 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 261 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 261 of file CParameterizedTrajectoryGenerator.h.
|
inherited |
The collision grid.
Definition at line 217 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
This grid will contain indexes data for speeding-up the default, brute-force lambda function.
Definition at line 256 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 259 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 296 of file CParameterizedTrajectoryGenerator.h.
|
inherited |
Definition at line 224 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 237 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 239 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 236 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
The shape of the robot along the trajectories:
Definition at line 295 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 295 of file CParameterizedTrajectoryGenerator.h.
|
protectedinherited |
Definition at line 236 of file CParameterizedTrajectoryGenerator.h.
| Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013 |