Skip to content
Snippets Groups Projects
Commit 24fb41e7 authored by Ale's avatar Ale
Browse files

added baumgarte gains

parent 208d9b3b
1 merge request!32Draft: Reverse-merge casadi-walking into new WBC devel branch
......@@ -185,7 +185,7 @@ class OCP:
for i in self.pd.allContactIds:
name = self.pd.model.frames[i].name + "_contact"
contact = crocoddyl.ContactModel3D(
self.state, i, np.zeros(3), nu, np.zeros(2)
self.state, i, np.zeros(3), nu, self.pd.baumgarte_gains
)
contacts.addContact(name, contact)
if i not in support_feet:
......
......@@ -49,6 +49,8 @@ class problemDataAbstract:
self.x0 = np.concatenate([self.q0, self.v0])
self.u0 = np.zeros(self.nu)
self.baumgarte_gains = np.array([0, 50])
self.xref = self.x0
self.uref = self.u0
......
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