urdfpy icon indicating copy to clipboard operation
urdfpy copied to clipboard

Fix numpy type bug

Open Woz4tetra opened this issue 1 year ago • 1 comments

Fix for numpy 1.20

I was getting this exception:

AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

I've also added materials to the animation so the models aren't just grey.

Woz4tetra avatar Sep 10 '24 21:09 Woz4tetra

See https://github.com/mmatl/urdfpy/issues/31 .

traversaro avatar Sep 10 '24 21:09 traversaro