Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels