Skip to content

Commit

Permalink
fix bug initialization moving frame reg
Browse files Browse the repository at this point in the history
  • Loading branch information
maximvochten committed Aug 23, 2024
1 parent 87c2bf5 commit 77cd1da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def calculate_invariants(self, measured_positions, stepsize, use_previous_soluti
else:

# Initialize states and controls using measurements
self.values_variables = initialization.initialize_VI_pos2(measured_positions)
self.values_variables = initialization.initialize_VI_pos2(measured_positions,stepsize)
self.first_time = False

# Solve the optimization problem for the given measurements starting from previous solution
Expand Down
4 changes: 2 additions & 2 deletions invariants_py/invariants_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def reconstruct_trajectory(invariants, position_init=np.zeros((3,1)), movingfram
Parameters:
- invariants (numpy array of shape (N,3)): Array of vector invariants.
- p_init (numpy array of shape (3,1), optional): Initial position. Defaults to a 3x1 zero array.
- mf_init (numpy array of shape (3,3), optional): Initial frame matrix. Defaults to a 3x3 identity matrix.
- position_init (numpy array of shape (3,1), optional): Initial position. Defaults to a 3x1 zero array.
- movingframe_init (numpy array of shape (3,3), optional): Initial frame matrix. Defaults to a 3x3 identity matrix.
Returns:
- positions (numpy array of shape (N,3)): Array of reconstructed positions.
Expand Down

0 comments on commit 77cd1da

Please sign in to comment.