4 #include "API/ConfigSpace/configuration.hpp"
6 #include "Localpath-pkg.h"
28 LocalPath(std::tr1::shared_ptr<Configuration> B, std::tr1::shared_ptr<Configuration> E);
63 std::tr1::shared_ptr<Configuration>
getBegin();
68 std::tr1::shared_ptr<Configuration>
getEnd();
92 void setNbCostTest(
double nbCostTest){_NbCostTest = nbCostTest;}
157 std::tr1::shared_ptr<Configuration>
configAtDist(
double dist);
165 std::tr1::shared_ptr<Configuration>
configAtParam(
double param);
200 double getAverageCost();
201 void setAverageCost(
double averageCost){_AverageCost=averageCost;}
207 double getMaxCost()
const;
230 std::tr1::shared_ptr<Configuration> _Begin;
231 std::tr1::shared_ptr<Configuration> _End;
235 p3d_localpath* _LocalPath;
238 double _lastValidParam;
239 std::tr1::shared_ptr<Configuration> _lastValidConfig;
240 bool _lastValidEvaluated;
247 bool _ResolEvaluated;
251 p3d_localpath_type _Type;
263 typedef std::tr1::shared_ptr<LocalPath> localPathPtr_t;
double getReverseCost() const
get the cost of the reverse local path.
Definition: localpath.hpp:210
void setLocalpathAsNotTested()
Set the localpath as untested.
Definition: localpath.hpp:116
std::tr1::shared_ptr< Configuration > getEnd()
obtient la configuration finale
Definition: localpath.cpp:200
p3d_localpath_type getType()
obtient le type de LocalPath
Definition: localpath.cpp:215
double stayWithInDistance(double u, bool goForward, double *distance)
Stay within dist From a parameter along the LocalPath and distance a vector of distance in WorkSapce ...
Definition: localpath.cpp:383
int getNbCostTest()
Returns the number of Colision test done to test the local path.
Definition: localpath.cpp:297
double length()
obtient la longueur du LocaPath
Definition: localpath.cpp:310
int getNbColTest()
Returns the number of Colision test done to test the local path.
Definition: localpath.cpp:284
Classe représentant un chemin local.
Definition: localpath.hpp:15
void print()
Print the variables inside the local path.
Definition: localpath.cpp:561
std::tr1::shared_ptr< LocalPath > buildReversePath()
Return the reverse path and update its cost.
Definition: localpath.cpp:552
bool getEvaluated()
teste si le LocalPath à été évalué
Definition: localpath.cpp:210
double whenCostIntegralPasses(double thresh)
Return param at which integral of cost is higher than the input (going from begin to end) ...
Definition: localpath.cpp:463
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
double getParamMax()
Equivalent to the length when using linear interpolation.
Definition: localpath.cpp:328
void setMaxCost(double cost)
Set the maximal cost found along the local path.
Definition: localpath.hpp:206
void setCost(double cost)
Set the cost of the local path.
Definition: localpath.hpp:204
double cost()
Compute the total cost of the path.
Definition: localpath.cpp:510
p3d_localpath * getLocalpathStruct(bool multi_sol=false)
obtient la structure p3d_localpath stockée
Definition: localpath.cpp:174
unsigned int getNumberOfCostSegments()
Get number of cost segments.
Definition: localpath.cpp:431
LocalPath(std::tr1::shared_ptr< Configuration > B, std::tr1::shared_ptr< Configuration > E)
constructors and destructors
Definition: localpath.cpp:32
void setIkSol(int *iksol)
Set the ik sol to be used in the local planner.
Definition: localpath.hpp:219
double getResolution(double step=0.0)
Cost resolution for integral and work along LocalPath.
Definition: localpath.cpp:411
void resetCostComputed()
When reset the next cost query will compute it.
Definition: localpath.hpp:216
std::tr1::shared_ptr< Configuration > configAtDist(double dist)
obtient une Configuration se trouvant à une distance donnée du début du LocalPath ...
Definition: localpath.cpp:336
bool classicTest()
Test the localpath using the classic method as opposed to dichotomic test.
Definition: localpath.cpp:235
std::tr1::shared_ptr< Configuration > getLastValidConfig(double &p)
obtient la dernière Configuration valide le long du LocalPath
Definition: localpath.cpp:227
Robot * getRobot()
obtient le Graph pour lequel le LocalPath est créé
Definition: localpath.cpp:205
std::vector< std::pair< double, double > > getCostProfile()
Returns the cost profile of the localPath.
Definition: localpath.cpp:440
std::tr1::shared_ptr< Configuration > configAtParam(double param)
obtient une Configuration se trouvant sur le LocalPath à un paramètre donnée
Definition: localpath.cpp:364
~LocalPath()
Destructor.
Definition: localpath.cpp:165
std::tr1::shared_ptr< Configuration > getBegin()
obtient la configuration initiale
Definition: localpath.cpp:195
bool isValid()
teste si le LocalPath est valide
Definition: localpath.cpp:259
void setReverseCost(double cost)
Set the cost of the reverse local path.
Definition: localpath.hpp:213
bool unvalidLocalpathTest(Robot *R, int *ntest)
test si le LocalPath est valide
Definition: localpath.cpp:402