Jafar
|
the class P3D is the main class of the module. More...
the class P3D is the main class of the module.
It permits to call the different algorithm of calife-p3d. Other class are useful but don't need to be used in classic use.
#include <P3d.hpp>
Public Member Functions | |
P3d (jafar::p3d::P3D_algo p3d_algo) | |
< algorithm used by P3d::plan | |
~P3d () | |
The destructor. | |
jafar::p3d::P3DRobotConfig * | placeRobot (double x, double y, double theta) |
the method placeRobot compute the configuration of the robot in some place (represented by 2D coords). | |
int | plan (jafar::geom::T3D &m2o, jafar::geom::T3D &g2o) |
the method plan compute a decision from p3d to reach the goal from some depart position. | |
bool | check_trajectory (jafar::geom::T3D &m2o, double alpha) |
the method check_trajectory compute if the trajectory is feasable or not. | |
int | aco (jafar::geom::T3D &mainToOrigin, double alpha, double v, double left_alpha, double right_alpha) |
This method calls the ACO behaviour, aka try to limit speed considering the env. | |
int | evo (jafar::geom::T3D &mainToOrigin, double alpha, double v) |
This method calls the EVO behaviour, aka try to avoid obstacle. | |
jafar::p3d::P3D_MAP & | map () |
const jafar::p3d::P3D_MAP & | map () const |
jafar::p3d::P3DPlanner & | planner () |
const jafar::p3d::P3DPlanner & | planner () const |
jafar::p3d::P3DPlanSolution & | solution () |
const jafar::p3d::P3DPlanSolution & | solution () const |
Static Public Attributes | |
static std::string | conffile |
the configuration file used to configure the p3d algorithm | |
Private Attributes | |
jafar::p3d::P3DPlanner | _planner |
the internal planner | |
jafar::p3d::P3D_MAP | _map |
the internal map | |
jafar::p3d::P3DPlanSolution | _sol |
the internal solution | |
jafar::p3d::P3D_algo | _algo |
jafar::p3d::P3d::P3d | ( | jafar::p3d::P3D_algo | p3d_algo | ) |
< algorithm used by P3d::plan
The constructor. It constructs the different object using informations stored in a configuration file. The configuration file is pointer in conffile. Configuration example file can be found in doc subdirectory
int jafar::p3d::P3d::aco | ( | jafar::geom::T3D & | mainToOrigin, |
double | alpha, | ||
double | v, | ||
double | left_alpha, | ||
double | right_alpha | ||
) |
This method calls the ACO behaviour, aka try to limit speed considering the env.
mainToOrigin | represents the transformation between the global frame and the robot frame. alpha represents the desired alpha v represents the desired speed |
left_alpha | represents the left limit in the tree discovery |
right_alpha | represets the right limit in the tree discovery |
bool jafar::p3d::P3d::check_trajectory | ( | jafar::geom::T3D & | m2o, |
double | alpha | ||
) |
the method check_trajectory compute if the trajectory is feasable or not.
m2o | represents the transformation between the global frame and the robot frame. |
alpha | represents the angle of the wheel for the trajectory we want to compute |
int jafar::p3d::P3d::evo | ( | jafar::geom::T3D & | mainToOrigin, |
double | alpha, | ||
double | v | ||
) |
This method calls the EVO behaviour, aka try to avoid obstacle.
Considering an alpha and v, we try to give a trajectory the nearest possible of alpha.
mainToOrigin represents the transformation between the global frame and the robot frame. alpha represents the desired alpha v represents the desired speed
jafar::p3d::P3D_MAP& jafar::p3d::P3d::map | ( | ) | [inline] |
const jafar::p3d::P3D_MAP& jafar::p3d::P3d::map | ( | ) | const [inline] |
jafar::p3d::P3DRobotConfig* jafar::p3d::P3d::placeRobot | ( | double | x, |
double | y, | ||
double | theta | ||
) |
the method placeRobot compute the configuration of the robot in some place (represented by 2D coords).
x | represents the x coordonate of the robot in the 2D global frame |
y | represents the y coordonate of the robot in the 2D global frame theta represents the angle with the absciss of the globale frame. |
int jafar::p3d::P3d::plan | ( | jafar::geom::T3D & | m2o, |
jafar::geom::T3D & | g2o | ||
) |
the method plan compute a decision from p3d to reach the goal from some depart position.
m2o | represents the transformation between the global frame and the robot frame. |
g2o | represents the transformation between the global frame and the goal frame (for the goal frame, in fact, we are only interested in the position of the center of the frame) |
XXX Confirm return value
Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |