nimblephysics icon indicating copy to clipboard operation
nimblephysics copied to clipboard

Runtime type safety for Python bindings

Open keenon opened this issue 3 years ago • 0 comments

Need to show an informative error when you call getXxJacobian() with anything other than a world (like a robot) Bonus: make an overloaded version of each getXxJacobian() that works with robots instead of worlds

This grows out of Yannis attempting to call getXxJacobian(robot), hoping to get a Jacobian for just that robot. It's a totally intuitive thing to do that you would expect to work, but instead it segfaults. We should print more helpful error messages when this happens.

keenon avatar Feb 22 '21 19:02 keenon