Skip to content

Commit

Permalink
Merge branch 'main' into 'matrices_rockit'
Browse files Browse the repository at this point in the history
Main

See merge request robotgenskill/public_code/invariants_py!19
  • Loading branch information
maximvochten committed May 6, 2024
2 parents 69342e2 + f0022a6 commit 7c1980b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def calculate_invariants(self,measured_positions,stepsize):
invariants = np.array(invars).T # make a N-1 x 3 array
invariants = np.vstack((invariants, invariants[-1,:])) # make a N x 3 array by repeating last row
calculated_trajectory = np.array(p_obj_sol).T # make a N x 3 array
calculated_movingframe = np.transpose(np.reshape(R_t_sol.T, (N, 3, 3)), (0, 2, 1))
calculated_movingframe = np.transpose(np.reshape(R_t_sol.T, (-1, 3, 3)), (0, 2, 1))
return invariants, calculated_trajectory, calculated_movingframe

if __name__ == "__main__":
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ matplotlib = "^3.3.1, <3.8.0" # open bug in >=3.8.0 https://github.com/matplotli
numpy = "^1.19.0"
ipython = "^7.15.0"
numpy-stl = "^2.12.0"
importlib_resources = "^5.0.0"
pandas = "^1.1.0"
urdf2casadi = "^1.0.0"
jupyter = "^1.0.0"
Expand Down

0 comments on commit 7c1980b

Please sign in to comment.