Code Monkey home page Code Monkey logo

Comments (2)

chenzishuo1994 avatar chenzishuo1994 commented on June 9, 2024

This is the full error message:
platform linux -- Python 3.7.16, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/chen/curobo, configfile: pyproject.toml
plugins: torchtyping-0.1.4, typeguard-4.1.2
collected 121 items / 2 errors / 2 skipped

================================================================================================== ERRORS ==================================================================================================
_________________________________________________________________________________ ERROR collecting tests/ik_config_test.py _________________________________________________________________________________
tests/ik_config_test.py:134: in
(ik_base_config(), True),
tests/ik_config_test.py:36: in ik_base_config
load_yaml(join_path(get_robot_configs_path(), robot_file))["robot_cfg"]
src/curobo/types/robot.py:49: in from_dict
CudaRobotGeneratorConfig(**data_dict_in["kinematics"], tensor_args=tensor_args)
:31: in init
???
src/curobo/cuda_robot_model/cuda_robot_generator.py:203: in post_init
self.extra_links[k] = LinkParams.from_dict(self.extra_links[k])
src/curobo/cuda_robot_model/kinematics_parser.py:43: in from_dict
Pose.from_list(dict_data["fixed_transform"], tensor_args=TensorDeviceType())
src/curobo/types/math.py:281: in get_numpy_matrix
return self.get_matrix().cpu().numpy()
../miniconda3/envs/curobo2/lib/python3.7/contextlib.py:74: in inner
return func(*args, **kwds)
src/curobo/types/math.py:277: in get_matrix
full_mat = pose_to_matrix(self.position, self.quaternion, out_matrix)
src/curobo/geom/transform.py:163: in pose_to_matrix
out_matrix[..., :3, :3] = quaternion_to_matrix(quaternion)
src/curobo/geom/transform.py:110: in quaternion_to_matrix
out_mat = QuatToMatrix.apply(quaternions, out_mat, adj_quaternion)
src/curobo/geom/transform.py:1078: in forward
wp.from_torch(quaternion.detach().view(-1, 4).contiguous(), dtype=wp.vec4),
../miniconda3/envs/curobo2/lib/python3.7/site-packages/warp/torch.py:115: in from_torch
raise RuntimeError(f"Incompatible data types: {t.dtype} and {dtype}")
E RuntimeError: Incompatible data types: torch.float64 and <class 'warp.types.vec4f'>
______________________________________________________________________________ ERROR collecting tests/trajopt_config_test.py _______________________________________________________________________________
tests/trajopt_config_test.py:115: in
(trajopt_base_config(), True),
tests/trajopt_config_test.py:31: in trajopt_base_config
load_yaml(join_path(get_robot_configs_path(), robot_file))["robot_cfg"]
src/curobo/types/robot.py:49: in from_dict
CudaRobotGeneratorConfig(**data_dict_in["kinematics"], tensor_args=tensor_args)
:31: in init
???
src/curobo/cuda_robot_model/cuda_robot_generator.py:203: in post_init
self.extra_links[k] = LinkParams.from_dict(self.extra_links[k])
src/curobo/cuda_robot_model/kinematics_parser.py:43: in from_dict
Pose.from_list(dict_data["fixed_transform"], tensor_args=TensorDeviceType())
src/curobo/types/math.py:281: in get_numpy_matrix
return self.get_matrix().cpu().numpy()
../miniconda3/envs/curobo2/lib/python3.7/contextlib.py:74: in inner
return func(*args, **kwds)
src/curobo/types/math.py:277: in get_matrix
full_mat = pose_to_matrix(self.position, self.quaternion, out_matrix)
src/curobo/geom/transform.py:163: in pose_to_matrix
out_matrix[..., :3, :3] = quaternion_to_matrix(quaternion)
src/curobo/geom/transform.py:110: in quaternion_to_matrix
out_mat = QuatToMatrix.apply(quaternions, out_mat, adj_quaternion)
src/curobo/geom/transform.py:1078: in forward
wp.from_torch(quaternion.detach().view(-1, 4).contiguous(), dtype=wp.vec4),
../miniconda3/envs/curobo2/lib/python3.7/site-packages/warp/torch.py:115: in from_torch
raise RuntimeError(f"Incompatible data types: {t.dtype} and {dtype}")
E RuntimeError: Incompatible data types: torch.float64 and <class 'warp.types.vec4f'>
============================================================================================= warnings summary =============================================================================================
:14
:14: DeprecationWarning: invalid escape sequence \p

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================= short test summary info ==========================================================================================
ERROR tests/ik_config_test.py - RuntimeError: Incompatible data types: torch.float64 and <class 'warp.types.vec4f'>
ERROR tests/trajopt_config_test.py - RuntimeError: Incompatible data types: torch.float64 and <class 'warp.types.vec4f'>

from curobo.

chenzishuo1994 avatar chenzishuo1994 commented on June 9, 2024

The problem is solved.Its the CUDA version which not fit curobo.I used CUDA11.7 and pytorch 1.13.1, and everything will be right.

from curobo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.