Add desired null space velocity computation.

This commit is contained in:
yunfeibai committed 2016-09-29 22:45:31 -07:00
1 parent 94c7bbe8e3
commit 29f890ae10
5 files changed
+40 -10

No files matched your search

+1 -6
View File
@@ -320,7 +320,7 @@ void Jacobian::CalcDeltaThetasPseudoinverse()
}
void Jacobian::CalcDeltaThetasDLSwithNullspace()
void Jacobian::CalcDeltaThetasDLSwithNullspace(const VectorRn& desiredV)
{
const MatrixRmn& J = ActiveJacobian();
@@ -337,11 +337,6 @@ void Jacobian::CalcDeltaThetasDLSwithNullspace()
U.Solve( dS, &dT1 );
J.MultiplyTranspose( dT1, dTheta );
// Desired velocity
VectorRn desiredV(J.GetNumColumns());
desiredV.SetZero();
desiredV.Set(3, -0.2);
// Compute JInv in damped least square form
MatrixRmn UInv(U.GetNumRows(),U.GetNumColumns());
U.ComputeInverse(UInv);
+1 -1
View File
@@ -70,7 +70,7 @@ public:
void CalcDeltaThetasDLS();
void CalcDeltaThetasDLSwithSVD();
void CalcDeltaThetasSDLS();
void CalcDeltaThetasDLSwithNullspace();
void CalcDeltaThetasDLSwithNullspace( const VectorRn& desiredV);
void UpdateThetas();
void UpdateThetaDot();