compas-dev / compas_fab

Robotic fabrication package for the COMPAS Framework.
https://compas.dev/compas_fab/
MIT License
108 stars 32 forks source link

Make Robot.inverse_kinematics use the last generator if called repeatedly with same arguments #330

Closed gonzalocasas closed 2 years ago

gonzalocasas commented 2 years ago

PR of a PR! As discussed, this suggestion was too big to add as PR comments, so, here it is as a PR of a PR. The idea is make inverse_kinematics in Robot behave like a generator if called multiple times with same arguments, but without actually becoming a generator, just keeping track of the last one used internally.