Klamp't  0.9.0
RobotConstrainedInterpolator.h
1 #ifndef ROBOT_CONSTRAINED_INTERPOLATOR_H
2 #define ROBOT_CONSTRAINED_INTERPOLATOR_H
3 
4 #include "ConstrainedInterpolator.h"
5 #include "RobotCSpace.h"
6 #include <KrisLibrary/robotics/IKFunctions.h>
7 
8 namespace Klampt {
9 
15 {
16 public:
17  RobotConstrainedInterpolator(RobotModel& robot,const vector<IKGoal>& goals);
18  virtual void ConstraintValue(const Config& x,Vector& v) override;
19  virtual bool Project(Config& x) override;
20 
21  RobotCSpace space;
22  RobotIKFunction f;
23 };
24 
30 {
31 public:
32  RobotSmoothConstrainedInterpolator(RobotModel& robot,const vector<IKGoal>& goals);
33  virtual void ConstraintValue(const Config& x,Vector& v) override;
34  virtual bool Project(Config& x) override;
35  virtual bool ProjectVelocity(const Config& x,Vector& v) override;
36 
37  RobotCSpace space;
38  RobotIKFunction f;
39 };
40 
41 } //namespace Klampt
42 
43 #endif
Construct a polyline between a and b such that each point is near the constraint C(x)=0.
Definition: ConstrainedInterpolator.h:29
Constructs a piecewise polynomial path between a and b such that each point is near the constraint C(...
Definition: ConstrainedInterpolator.h:73
Just like a ConstrainedInterpolator but only projects the active DOFs. Much faster for high-DOF syste...
Definition: RobotConstrainedInterpolator.h:14
Just like a SmoothConstrainedInterpolator but only projects the active DOFs. Much faster for high-DOF...
Definition: RobotConstrainedInterpolator.h:29
The main robot type used in RobotSim.
Definition: Robot.h:83
Implements a basic robot configuration space with only joint limit constraint testing.
Definition: RobotCSpace.h:32
Definition: ContactDistance.h:6