Please provide the below information in addition to your issue:
cuRobo installation mode (choose from [python, isaac sim, docker python, docker isaac sim]): Isaac Sim
python version: Python 3.10.13
Isaac Sim version (if using): 2023.1.1
While using the get_spline_interpolated_trajectory function in the CuRobo library, I encountered an issue where the code converts tensors to numpy arrays and then expects a tensor object later on. This leads to errors when the function tries to access attributes like .device which are not available for numpy arrays.
Expected Behavior
The function should handle the trajectory data as tensors throughout its execution, maintaining compatibility with PyTorch's tensor operations.
Actual Behavior
The function converts the trajectory data to a numpy array using .cpu().numpy(), which results in the following error when attempting to access .device on the array:
Relevant Code
The issue occurs in the get_spline_interpolated_trajectory function in the trajectory.py file and bspline function in the sample_lib.py file:
If it’s not a bug, please use discussions: https://github.com/NVlabs/curobo/discussions
Please provide the below information in addition to your issue:
While using the
get_spline_interpolated_trajectory
function in the CuRobo library, I encountered an issue where the code converts tensors to numpy arrays and then expects a tensor object later on. This leads to errors when the function tries to access attributes like.device
which are not available for numpy arrays.Expected Behavior
The function should handle the trajectory data as tensors throughout its execution, maintaining compatibility with PyTorch's tensor operations.
Actual Behavior
The function converts the trajectory data to a numpy array using
.cpu().numpy()
, which results in the following error when attempting to access.device
on the array:Relevant Code
The issue occurs in the
get_spline_interpolated_trajectory
function in thetrajectory.py
file andbspline
function in thesample_lib.py
file: