Closed niederha closed 9 months ago
Thank you for pointing this out, @niederha
We'll look into this and apply a fix. Will update in this thread.
@niederha Thanks again for finding this issue.
I have created a PR with changes similar to what you proposed: https://github.com/bdaiinstitute/spatialmath-python/pull/109 Could you please take a look?
Also, if you notice other issues, you are welcome to either post an issue here, or create a pull request. Again, much appreciated!
When adding two spatial inertia using the + override I get a AttributeError: 'SpatialInertia' object has no attribute 'I'.
I think I'm noticing 3 potential mistakes in the source code at line 637
SpatialInertia
has no memberI
but rather adata[0]
left
twice and notright
.To make minimum changes, I would suggest rewritting this line as such:
But I'm not familiar with the whole code corpus, and I just infer that from quickly reading the class. Does that seem correct? If so could we fix it? If it helps I am happy making a PR and expending tests so this doesn't happen anymore.
Otherwise, thanks for a cool library!