1 #ifndef FEEDFORWARD_CONTROLLER_H 2 #define FEEDFORWARD_CONTROLLER_H 4 #include "Controller.h" 5 #include <Klampt/Sensing/StateEstimator.h> 6 #include <KrisLibrary/robotics/Wrench.h> 27 virtual const char* Type()
const {
return "FeedforwardController"; }
28 virtual void Update(Real dt);
30 virtual bool ReadState(File& f);
31 virtual bool WriteState(File& f)
const;
34 virtual map<string,string> Settings()
const;
35 virtual bool GetSetting(
const string& name,
string& str)
const;
36 virtual bool SetSetting(
const string& name,
const string& str);
40 void AddForce(
int link,
const Vector3& f,
const Vector3& worldpt);
41 virtual vector<string> Commands()
const;
42 virtual bool SendCommand(
const string& name,
const string& str);
45 void SolveTorques(Vector& torques,Real dt);
47 shared_ptr<RobotController> base;
48 shared_ptr<RobotStateEstimator> stateEstimator;
49 bool enableGravityCompensation,enableFeedforwardAcceleration;
52 vector<Wrench> wrenches;
The main robot type used in RobotSim.
Definition: Robot.h:79
A class that adds a feedforward torque to the basic control. The necessary feedforward torque is esti...
Definition: FeedforwardController.h:22
A base class for a robot controller. The base class does nothing.
Definition: Controller.h:27