Compute delta S from Bullet link state.

This commit is contained in:
yunfeibai
2016-09-10 19:18:29 -07:00
parent 1b72b91bcf
commit a00841a498
4 changed files with 16 additions and 4 deletions

View File

@@ -144,6 +144,11 @@ void Jacobian::SetJendTrans(MatrixRmn& J)
Jend.LoadAsSubmatrix(J);
}
void Jacobian::SetDeltaS(VectorRn& S)
{
dS.Set(S);
}
// The delta theta values have been computed in dTheta array
// Apply the delta theta values to the joints
// Nothing is done about joint limits for now.

View File

@@ -60,6 +60,7 @@ public:
void SetJendActive() { Jactive = &Jend; } // The default setting is Jend.
void SetJtargetActive() { Jactive = &Jtarget; }
void SetJendTrans(MatrixRmn& J);
void SetDeltaS(VectorRn& S);
void CalcDeltaThetas(); // Use this only if the Current Mode has been set.
void ZeroDeltaThetas();
@@ -86,7 +87,7 @@ public:
int GetNumRows() {return nRow;}
int GetNumCols() {return nCol;}
private:
public:
Tree* tree; // tree associated with this Jacobian matrix
int nEffector; // Number of end effectors
int nJoint; // Number of joints