18 template <
size_t NJOINTS>
25 typedef std::shared_ptr<JointPositionPIDController<NJOINTS>>
Ptr;
31 const Eigen::Matrix<double, NJOINTS, 1>& desiredPosition = Eigen::Matrix<double, NJOINTS, 1>::Zero(),
32 const Eigen::Matrix<double, NJOINTS, 1>& desiredVelocity = Eigen::Matrix<double, NJOINTS, 1>::Zero(),
33 const std::vector<PIDController::parameters_t>& parameters = std::vector<PIDController::parameters_t>(NJOINTS,
34 PIDController::parameters_t()));
37 const Eigen::Matrix<double, NJOINTS, 1>& desiredVelocity,
38 const PIDController::parameters_t& parameters);
virtual JointPositionPIDController< NJOINTS > * clone() const override
Definition: JointPositionPIDController-impl.h:12
A joint position controller using a PID controller for all joints.
Definition: JointPositionPIDController.h:19
std::shared_ptr< JointPositionPIDController< NJOINTS > > Ptr
Definition: JointPositionPIDController.h:25
void setDesiredPosition(const Eigen::Matrix< double, NJOINTS, 1 > &desiredPosition)
Definition: JointPositionPIDController-impl.h:64
static const size_t STATE_DIM
Definition: JointPositionPIDController.h:22
void computeControl(const core::StateVector< STATE_DIM > &state, const core::Time &t, core::ControlVector< NJOINTS > &control) override
Definition: JointPositionPIDController-impl.h:51
void setAllPIDGains(double kp, double ki, double kd)
Definition: JointPositionPIDController-impl.h:81
ct::core::PIDController< double > PIDController
Definition: JointPositionPIDController.h:26
virtual ~JointPositionPIDController()
Definition: JointPositionPIDController-impl.h:18
JointPositionPIDController(const Eigen::Matrix< double, NJOINTS, 1 > &desiredPosition=Eigen::Matrix< double, NJOINTS, 1 >::Zero(), const Eigen::Matrix< double, NJOINTS, 1 > &desiredVelocity=Eigen::Matrix< double, NJOINTS, 1 >::Zero(), const std::vector< PIDController::parameters_t > ¶meters=std::vector< PIDController::parameters_t >(NJOINTS, PIDController::parameters_t()))
Definition: JointPositionPIDController-impl.h:23
static const size_t CONTROL_DIM
Definition: JointPositionPIDController.h:23
std::vector< PIDController > jointControllers_
Definition: JointPositionPIDController.h:55
void reset()
Definition: JointPositionPIDController-impl.h:95