-
Notifications
You must be signed in to change notification settings - Fork 81
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
Trying to access the meshes
attribute of Cylinder
throws an error.
#20
Comments
This appears to be fixed on the tip of |
@miker2 for what regard the conda-forge build, if you have any idea of what is the commit that fixed the issue we can try to backport it on the top of the latest release, as we did for another issue (#27) in https://github.com/conda-forge/urdfpy-feedstock/pull/3/files . |
@traversaro I believe it's this commit that resolves the problem: 5466842 I verified that installing from source from the |
Ok, I opened a PR to backport the fix in the conda-forge released version in conda-forge/urdfpy-feedstock#5, thanks! |
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: