Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add R1 to action primitives #934

Open
wants to merge 3 commits into
base: og-develop
Choose a base branch
from

[pre-commit.ci] auto fixes from pre-commit.com hooks

3ccfee9
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Add R1 to action primitives #934

[pre-commit.ci] auto fixes from pre-commit.com hooks
3ccfee9
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results succeeded Oct 11, 2024 in 0s

33 passed, 1 failed and 1 skipped

Tests failed

Report Passed Failed Skipped Time
11288731636-tests-test_robot_teleoperation/test_robot_teleoperation.xml 1⚪ 29ms
11288731636-tests-test_transform_utils/test_transform_utils.xml 33✅ 1❌ 528ms

✅ 11288731636-tests-test_robot_teleoperation/test_robot_teleoperation.xml

1 tests were completed in 29ms with 0 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
pytest 1⚪ 29ms

✅ pytest

tests.test_robot_teleoperation
  ⚪ test_teleop

❌ 11288731636-tests-test_transform_utils/test_transform_utils.xml

34 tests were completed in 528ms with 33 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 33✅ 1❌ 528ms

❌ pytest

tests.test_transform_utils.TestQuaternionOperations
  ✅ test_quat2mat_special_cases
  ✅ test_quat_multiply
  ✅ test_quat_conjugate
  ✅ test_quat_inverse
  ✅ test_quat_distance
tests.test_transform_utils.TestVectorOperations
  ✅ test_normalize
  ✅ test_dot_product
  ✅ test_l2_distance
tests.test_transform_utils.TestMatrixOperations
  ✅ test_rotation_matrix_properties
  ✅ test_rotation_matrix
  ✅ test_transformation_matrix
  ✅ test_transformation_matrix_no_point
  ✅ test_matrix_inverse
tests.test_transform_utils.TestCoordinateTransformations
  ✅ test_cartesian_to_polar
tests.test_transform_utils.TestPoseTransformations
  ✅ test_pose2mat_and_mat2pose
  ✅ test_pose_inv
tests.test_transform_utils.TestAxisAngleConversions
  ✅ test_axisangle2quat_and_quat2axisangle
  ✅ test_vecs2axisangle
  ✅ test_vecs2quat
tests.test_transform_utils.TestEulerAngleConversions
  ✅ test_euler2quat_and_quat2euler
  ✅ test_euler2mat_and_mat2euler
tests.test_transform_utils.TestQuaternionApplications
  ✅ test_quat_apply
  ❌ test_quat_slerp
	self = <test_transform_utils.TestQuaternionApplications object at 0x7fa6d3c4d660>
tests.test_transform_utils.TestTransformPoints
  ✅ test_transform_points_2d
  ✅ test_transform_points_3d
tests.test_transform_utils.TestMiscellaneousFunctions
  ✅ test_convert_quat
  ✅ test_random_quaternion
  ✅ test_random_axis_angle
  ✅ test_align_vector_sets
  ✅ test_copysign
  ✅ test_anorm
  ✅ test_check_quat_right_angle
  ✅ test_z_angle_from_quat
  ✅ test_integer_spiral_coordinates

Annotations

Check failure on line 0 in 11288731636-tests-test_transform_utils/test_transform_utils.xml

See this annotation in the file changed.

@github-actions github-actions / Test Results

pytest ► tests.test_transform_utils.TestQuaternionApplications ► test_quat_slerp

Failed test found in:
  11288731636-tests-test_transform_utils/test_transform_utils.xml
Error:
  self = <test_transform_utils.TestQuaternionApplications object at 0x7fa6d3c4d660>
Raw output
self = <test_transform_utils.TestQuaternionApplications object at 0x7fa6d3c4d660>

    def test_quat_slerp(self):
        for i in range(0, len(RANDOM_QUATERNIONS), 2):
            q1, q2 = RANDOM_QUATERNIONS[i], RANDOM_QUATERNIONS[i + 1]
            t = th.rand(1)
            q_slerp = quat_slerp(q1, q2, t)
    
            key_rots = R.from_quat(np.stack([q1.cpu().numpy(), q2.cpu().numpy()]))
            key_times = [0, 1]
            slerp = Slerp(key_times, key_rots)
>           scipy_q_slerp = slerp([t]).as_quat()[0].astype(NumpyTypes.FLOAT32)

tests/test_transform_utils.py:361: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: `times` must be at most 1-dimensional.

_rotation.pyx:2569: ValueError