-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fix python issue #50 #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I am the one to review this as I am no expert in pyhton-bindings and never used tsid...
Though I had some minor comment on the code.
bp::object & bpObject, | ||
bool verbose) | ||
{ | ||
std::cout << "Before extraction " << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this cout needed? Should it be protected with the verbose boolean?
std::cout << "Before extraction " << std::endl; | ||
pinocchio::JointModelFreeFlyer root_joint = | ||
bp::extract<pinocchio::JointModelFreeFlyer>(bpObject)(); | ||
std::cout << "After extraction " << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunate oversight. Thanks for catching it
Thx to mnaveau for picking it.
The new commit is fixing the std::cout issue. |
I would say this PR is ready for merging. Thanks for the dev! |
Thanks for this PR @olivier-stasse ! |
Fix python glitch.
This PR adds a method to bindings/python/robots/robot-wrapper.hpp
to read a JointModelFreeFlyer python type and call the appropriate constructor of the RobotWrapper object.
It might be needed to extend this if someone wants to use another joint than a FreeFlyer as a root (but it looks unlikely to happen).