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

Fix deprecation warning #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions urdfpy/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