Skip to content

Commit

Permalink
consistency optistack and rockit
Browse files Browse the repository at this point in the history
  • Loading branch information
maximvochten committed Sep 27, 2024
1 parent 9b46b44 commit e5b9fe1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, window_len = 100, bool_unsigned_invariants = False, rms_error
for k in range(window_len):
err_pos = p_obj[k] - p_obj_m[k] # position error
trajectory_error = trajectory_error + cas.dot(err_pos,err_pos)
opti.subject_to(trajectory_error/window_len < rms_error_traj**2)
opti.subject_to(trajectory_error < window_len*rms_error_traj**2)

# Boundary constraints
#opti.subject_to(self.p_obj[0] == self.p_obj_m[0]) # Fix first measurement
Expand Down

0 comments on commit e5b9fe1

Please sign in to comment.