Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
Public Member Functions | Public Attributes
HuboController Class Reference

Controller wrapper for Hubo position commands. More...

#include <HuboController.h>

List of all members.

Public Member Functions

 HuboController (dart::dynamics::Skeleton *skeleton, const Eigen::VectorXd p, const Eigen::VectorXd i, const Eigen::VectorXd d, const Eigen::VectorXd mask, double tInit)
 Constructs a HuboController object.
virtual ~HuboController ()
 Destructs a HuboController object. Virtual.
Eigen::VectorXd getTorques (const Eigen::VectorXd &curPos, const Eigen::VectorXd &curVel, double t)
 Gets the torques for the skeleton given desired positions and velocities for the joints.

Public Attributes

Eigen::VectorXd refPos
Eigen::VectorXd refVel
Eigen::MatrixXd Kp
Eigen::MatrixXd Kd
Eigen::MatrixXd Ki
Eigen::VectorXd errorLast
Eigen::VectorXd errorDeriv
Eigen::VectorXd errorInteg
Eigen::MatrixXd jointMask
double tLast
dart::dynamics::Skeleton * skel

Detailed Description

Controller wrapper for Hubo position commands.


Constructor & Destructor Documentation

HuboController::HuboController ( dart::dynamics::Skeleton *  skeleton,
const Eigen::VectorXd  p,
const Eigen::VectorXd  i,
const Eigen::VectorXd  d,
const Eigen::VectorXd  mask,
double  tInit 
)

Constructs a HuboController object.

Parameters:
skeletonSkeleton to control
pVector of proportional gains
iVector of integral gains
dVector of derivative gains
maskMask for skeleton
tInitInitialization time

Member Function Documentation

Eigen::VectorXd HuboController::getTorques ( const Eigen::VectorXd &  curPos,
const Eigen::VectorXd &  curVel,
double  t 
)

Gets the torques for the skeleton given desired positions and velocities for the joints.

Parameters:
curPosCurrent position of the joints
curVelCurrent velocity of the joints
tTime
Returns:
Eigen::VectorXd containing the joint torques

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator