Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scharalambous-sony committed Apr 29, 2024
1 parent 9c087a0 commit e070dea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/curobo/types/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __post_init__(self):
@staticmethod
def from_numpy(
joint_names: List[str],
position: np.ndarry,
position: np.ndarray,
velocity: Optional[np.ndarray] = None,
acceleration: Optional[np.ndarray] = None,
jerk: Optional[np.ndarray] = None,
Expand All @@ -91,6 +91,8 @@ def from_numpy(
vel = acc = je = None
if velocity is not None:
vel = tensor_args.to_device(velocity)
else:
vel = pos * 0.0
if acceleration is not None:
acc = tensor_args.to_device(acceleration)
else:
Expand Down

0 comments on commit e070dea

Please sign in to comment.