You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If g = Cylinder(1.0, 2.0) and you try to access the g.meshes field then it throws the following error
File "/usr/local/lib/python3.6/dist-packages/urdfpy/urdf.py", line 398, in meshes
if len(self._meshes) == 0:
TypeError: object of type 'NoneType' has no len()
This is because self._meshes got initialize to self._meshes = None on this line instead of self._meshes = [] like in the other primitive types, e.g. Box. Should be a simple fix to just set self._meshes = [] in the Cylinder constructor.
The text was updated successfully, but these errors were encountered:
This appears to be fixed on the tip of master. @mmatl Any chance we can bump the version and push a new package to pypi so this is fixed in the versions installed via pip or conda?
If
g = Cylinder(1.0, 2.0)
and you try to access theg.meshes
field then it throws the following errorThis is because
self._meshes
got initialize toself._meshes = None
on this line instead ofself._meshes = []
like in the other primitive types, e.g. Box. Should be a simple fix to just setself._meshes = []
in theCylinder
constructor.The text was updated successfully, but these errors were encountered: