Klamp't  0.8.1
Interpolate.h
1 #ifndef ROBOT_INTERPOLATE_H
2 #define ROBOT_INTERPOLATE_H
3 
4 #include "Robot.h"
5 
8 
12 void Interpolate(Robot& robot,const Config& x,const Config& y,Real u,Config& out);
13 
17 void InterpolateDerivative(Robot& robot,const Config& a,const Config& b,Vector& dq);
18 
22 void InterpolateDerivative(Robot& robot,const Config& a,const Config& b,Real u,Vector& dq);
23 
24 
27 void Integrate(Robot& robot,const Config& q,const Vector& dq,Config& b);
28 
36 Real Distance(const Robot& robot,const Config& a,const Config& b,Real norm,Real floatingRotationWeight=1.0);
37 
45 Real Distance(const Robot& robot,const Config& a,const Config& b,Real norm,const vector<Real>& weights,Real floatingRotationWeight=1.0);
46 
49 #endif
Real Distance(const Robot &robot, const Config &a, const Config &b, Real norm, Real floatingRotationWeight=1.0)
Returns the geodesic distance between a and b. Combines individual joint distances together via the L...
The main robot type used in RobotSim.
Definition: Robot.h:79
void InterpolateDerivative(Robot &robot, const Config &a, const Config &b, Vector &dq)
Returns the velocity vector at a that will move the robot from a to b in minimal time (i...
void Interpolate(Robot &robot, const Config &x, const Config &y, Real u, Config &out)
Interpolates between the two configurations in geodesic fashion on the robot&#39;s underlying configurati...
void Integrate(Robot &robot, const Config &q, const Vector &dq, Config &b)
Integrates a velocity vector dq from q to obtain the configuration b.