Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from ami-iit/fixrecentdeps
Browse files Browse the repository at this point in the history
Fix use of library with recent Python and numpy version
  • Loading branch information
traversaro authored Apr 14, 2023
2 parents d50f2f3 + c1794b1 commit 5996eb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions murdfpy/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ def color(self):
@color.setter
def color(self, value):
if value is not None:
value = np.asanyarray(value).astype(np.float)
value = np.asanyarray(value).astype(np.float64)
value = np.clip(value, 0.0, 1.0)
if value.shape != (4,):
raise ValueError('Color must be a (4,) float')
Expand Down Expand Up @@ -2344,7 +2344,7 @@ def get_child_pose(self, cfg=None):
raise ValueError('Invalid configuration')

def get_child_poses(self, cfg, n_cfgs):
"""Computes the child pose relative to a parent pose for a given set of
"""Computes the child pose relative to a parent pose for a given set of
configuration values.
Parameters
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

requirements = [
'lxml', # For XML DOM Tree
'networkx==2.2', # For joint graph
'networkx', # For joint graph
'numpy', # Numpy
'pillow', # For texture image loading
'pycollada==0.6', # COLLADA (.dae) mesh loading via trimesh
'pycollada', # COLLADA (.dae) mesh loading via trimesh
'pyrender>=0.1.20', # For visualization
'scipy', # For trimesh, annoyingly
'six', # Python 2/3 compatability
Expand Down Expand Up @@ -47,7 +47,6 @@
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
Expand Down

0 comments on commit 5996eb4

Please sign in to comment.