Skip to content
Snippets Groups Projects
Commit 003a018f authored by Pierre-Alexandre Leziart's avatar Pierre-Alexandre Leziart
Browse files

Enable only cost on velocity tracking

parent 73fae236
1 merge request!32Draft: Reverse-merge casadi-walking into new WBC devel branch
Pipeline #24477 failed
...@@ -133,17 +133,17 @@ class ProblemData(problemDataAbstract): ...@@ -133,17 +133,17 @@ class ProblemData(problemDataAbstract):
self.mu = 0.7 self.mu = 0.7
# Cost function weights # Cost function weights
self.base_velocity_tracking_w = 1e2 * 0 self.base_velocity_tracking_w = 1e2
self.ground_collision_w = 1e3 * 0 self.ground_collision_w = 1e3 * 0
# Constraints weights # Constraints weights
self.friction_cone_w = 1e4 self.friction_cone_w = 1e4 * 0
self.impact_altitude_w = 1e3 self.impact_altitude_w = 1e3 * 0
self.impact_velocity_w = 1e3 self.impact_velocity_w = 1e3 * 0
self.control_bound_w = 1e3 * 0 self.control_bound_w = 1e3 * 0
# Regularization weights # Regularization weights
self.control_reg_w = 1e0 self.control_reg_w = 1e0 * 0
self.state_reg_w = np.array( self.state_reg_w = np.array(
[0] * 3 [0] * 3
+ [1e1] * 3 + [1e1] * 3
...@@ -152,9 +152,9 @@ class ProblemData(problemDataAbstract): ...@@ -152,9 +152,9 @@ class ProblemData(problemDataAbstract):
+ [1e1] * 3 + [1e1] * 3
+ [1e1] * 3 + [1e1] * 3
+ [1e1] * 6 + [1e1] * 6
) ) * 0
self.terminal_velocity_w = np.array([0] * self.nv + [1e4] * self.nv) self.terminal_velocity_w = np.array([0] * self.nv + [1e4] * self.nv) * 0
self.force_reg_w = 1e0 self.force_reg_w = 1e0 * 0
# Reference values # Reference values
self.xref = self.x0 self.xref = self.x0
......
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