|
Jafar
|
the class P3DArcDumper provides a way to dump and manipulate all the arcs used in p3d algorithm. More...
the class P3DArcDumper provides a way to dump and manipulate all the arcs used in p3d algorithm.
#include <P3d.hpp>
Public Member Functions | |
| P3dArcDumper (const jafar::p3d::P3d &p3d, jafar::geom::T3D &m2o) | |
| The constructor Information like n_arcs and max_depth are taken from P3d::conffile. | |
| ~P3dArcDumper () | |
| The destructor. | |
| void | update (const jafar::p3d::P3d &p3d, jafar::geom::T3D &m2o) |
| Update the arcs ( their position, their cost ..) | |
| std::string | gdhe_display () const |
| Constructs the gdhe representation of the arcs. | |
| void | display (bool only_valid) const |
| Display on stderr various informations about each arcs. | |
| void | display_to_file (bool only_valid, const std::string &path) const |
| Write various information about each arcs in a file. | |
| int | set_next_node_coords (jafar::geom::T3DEuler &pos) const |
| Give the "next" node coords from the elected arcs. | |
Private Member Functions | |
| bool | has_valid_cost (int, int) const |
| void | _dump (bool, std::ostream &) const |
| int | evaluate_nb_arcs (int nArcs, int depth) |
| This evaluate computes the number of arcs used by P3D tree. | |
Private Attributes | |
| ::P3DArcDump * | _pdata |
| Internal calife data. | |
| jafar::geom::T3DEuler | _m2o |
| transformation between origin and robot frame | |
| int | _n_arcs |
| Number of arcs at level 0. | |
| int | _max_depth |
| Max depth of p3dDumper. | |
| jafar::p3d::P3dArcDumper::P3dArcDumper | ( | const jafar::p3d::P3d & | p3d, |
| jafar::geom::T3D & | m2o | ||
| ) |
The constructor Information like n_arcs and max_depth are taken from P3d::conffile.
| p3d | represents the P3D object on which we want to extract arcs |
| m2o | represents the transformation between origin and robot frame. It must be coherent with the last execution of P3d::plan |
| void jafar::p3d::P3dArcDumper::display | ( | bool | only_valid | ) | const |
Display on stderr various informations about each arcs.
| only_valid | : if it sets to true, the method will only print arcs which are valid (aka which has been computed on this iteration. If it is false, print all arcs |
| void jafar::p3d::P3dArcDumper::display_to_file | ( | bool | only_valid, |
| const std::string & | path | ||
| ) | const |
Write various information about each arcs in a file.
| only_valid | : if it sets to true, the method will only print arcs which are valid (aka which has been computed on this iteration. If it is false, print all arcs |
| path | represents the path of the result file |
| int jafar::p3d::P3dArcDumper::evaluate_nb_arcs | ( | int | nArcs, |
| int | depth | ||
| ) | [private] |
This evaluate computes the number of arcs used by P3D tree.
| nArcs | represents the number of initial arc at depth 0 |
| depth | represents the depth of the P3D tree (depth > 0) |
| std::string jafar::p3d::P3dArcDumper::gdhe_display | ( | ) | const |
Constructs the gdhe representation of the arcs.
| int jafar::p3d::P3dArcDumper::set_next_node_coords | ( | jafar::geom::T3DEuler & | pos | ) | const |
Give the "next" node coords from the elected arcs.
It is used to run simulation. pos will represents the next position of the vehicule
| void jafar::p3d::P3dArcDumper::update | ( | const jafar::p3d::P3d & | p3d, |
| jafar::geom::T3D & | m2o | ||
| ) |
Update the arcs ( their position, their cost ..)
| p3d | represents the P3D object from which we want to extract arcs |
| m2o | represents the transformation between origin and robot frame. It must be coherent with the last execution of P3d::plan |
| Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |
|