#include <hkSolver.h>
Public Member Functions | |
HKPath (const PathPoint &wp0, double a, double b, double c, double d) | |
Path * | copy () |
Returns a pointer that is a new instance of this object. | |
double | getA () const |
Accessor for parameter 'a'. | |
double | getB () const |
Accessor for parameter 'b'. | |
double | getC () const |
Accessor for parameter 'c'. | |
double | getLength () const |
Returns the total path length. | |
PathPoint | getPathPoint (double d) const |
Returns the waypoint at distance d. | |
std::vector< PathPoint > | getPathPoints (unsigned int n=0) const |
unsigned int | getWindingNumber () |
Returns the winding number of the path. | |
void | read (istream &is) |
Parameterizes the path from an input stream. | |
void | write (ostream &os) const |
Writes the path parameters to an output stream. | |
Friends | |
class | HKSolver |
HKPath::HKPath | ( | const PathPoint & | wp0, | |
double | a, | |||
double | b, | |||
double | c, | |||
double | d | |||
) |
PathPoint HKPath::getPathPoint | ( | double | d | ) | const [virtual] |
Returns the waypoint at distance d.
Returns the initial waypoint if d is less than zero and the final waypoint if d greater than the path length.
length | along the path |
Implements navlib::Path.
References navlib::Path::_wp0, navlib::PathPoint::c, navlib::Pose::theta, navlib::Pose::x, and navlib::Pose::y.