Skip to content
Snippets Groups Projects
Commit e9b34c51 authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[bugfix] Wrong definition of nu,nq and nv

parent efc514fa
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,11 @@ class DifferentialActionModelFloatingInContact(DifferentialActionModelAbstract):
return data.xout,data.cost
def quasiStatic(self,data,x):
nu,nq,nv = self.nx,self.nu,self.nq,self.nv
if len(x)==nq: x = np.concatenate([x,np.zero(nv)])
else: x[nq:] = 0
nu,nq,nv = self.nu,self.nq,self.nv
if len(x)==nq:
x = np.concatenate([x,np.zero(nv)])
else:
x[nq:] = 0
self.calcDiff(data,x,np.zeros(nu))
return np.dot(
np.linalg.pinv(np.hstack([data.actuation.Au,data.contact.J.T])),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment