Skip to content

Commit 662fb8b

Browse files
committed
Minor tuning in talos kino example
1 parent 6aab3e1 commit 662fb8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/talos_kinodynamics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
kino_ID_settings.kp_contact = 10.
157157
kino_ID_settings.w_base = 100.
158158
kino_ID_settings.w_posture = 1.
159-
kino_ID_settings.w_contact_force = 1.
159+
kino_ID_settings.w_contact_force = 0.001
160160
kino_ID_settings.w_contact_motion = 1.
161161

162162
kino_ID = KinodynamicsID(model_handler, dt_simu, kino_ID_settings)

src/inverse-dynamics/kinodynamics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ void KinodynamicsID::setTarget(
150150
formulation_.addRigidContact(
151151
*tsid_contacts[foot_nb], settings_.w_contact_force, settings_.w_contact_motion,
152152
settings_.contact_motion_equality ? 0 : 1);
153+
active_tsid_contacts_[foot_nb] = true;
153154
}
154155
// Set contact target force
155156
switch (model_handler_.getFootType(foot_nb))
@@ -170,7 +171,6 @@ void KinodynamicsID::setTarget(
170171
assert(false);
171172
}
172173
}
173-
active_tsid_contacts_[foot_nb] = true;
174174
}
175175
else
176176
{

0 commit comments

Comments
 (0)