Skip to content

Commit

Permalink
resolved minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno Verduyn committed Jul 5, 2024
1 parent 61b19bf commit f15e38e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ def calculate_invariants(self, T_obj_m, h):

if __name__ == "__main__":

OCP = OCP_calc_pose(N=100, rms_error_traj=10**-3)
N=100
T_obj_m = np.tile(np.eye(4), (100, 1, 1)) # example: measured object poses

OCP = OCP_calc_pose(T_obj_m, rms_error_traj=10**-3)

# Example: calculate invariants for a given trajectory
T_obj_m = np.tile(np.eye(4), (100, 1, 1)) # example: measured object poses
h = 0.01 # step size for integration of dynamic equations

U, T_obj, T_isa = OCP.calculate_invariants(T_obj_m, h)
Expand Down

0 comments on commit f15e38e

Please sign in to comment.