diff --git a/src/curobo/types/state.py b/src/curobo/types/state.py index 2655e467..4be430d8 100644 --- a/src/curobo/types/state.py +++ b/src/curobo/types/state.py @@ -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, @@ -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: