mpitropov/cadc_devkit

Error when running run_demo_lidar_bev.py

Closed this issue · 4 comments

On line 123, I'm getting: AttributeError: 'scipy.spatial.transform.rotation.Rotation' object has no attribute 'as_dcm'. The Scipy version I'm using is 1.6.3.

It seems like they didn't deprecate that function, but they renamed it. https://docs.scipy.org/doc/scipy/reference/release.1.4.0.html#scipy-deprecations

For now, you can change 'as_dcm' to 'as_matrix' and it should work for that version of scipy. I'll have to add this change to the code.

I've modified line 123 to as_matrix and it worked. Thank you!

T_Lidar_Cuboid[0:3,0:3] = R.from_euler('z', cuboid['yaw'], degrees=False).as_dcm();

It has the same error.

I've updated the code with the fix