Closed proyan closed 1 year ago
For the naming, the BodyTask
might be renamed to FrameTask
, but I tried not to break the API :)
LGTM. Your example is informative too :+1: Do you want to add it e.g. as examples/arm_with_op_frame.py
?
It would also be good practice to add a unit test with an OP_FRAME
(the first part of your example would work as is). This would enact those frames as part of the API and prevent future regressions. Could you add such a test?
For the naming, the BodyTask might be renamed to FrameTask, but I tried not to break the API :)
That's totally OK :ok_hand: Pink is still at the pre-1.0 stage. I think FrameTask
would be a better name after this update. If you want we can rename it in this PR, or I can take care of the renaming in a follow-up PR.
I've changed some instances of the Body to Frame that I could find (this PR is now going much deeper than initially expected :) ) I don't think I have completely cleaned the occurrences, so you might still have some work. Other than that, there is now the unittest and the example as well in the PR.
LGTM, thank you for taking care of all changes!
The CI broke because of a cmeel dependency, currently waiting on https://github.com/stack-of-tasks/pinocchio/issues/1937 to be fixed. Alternatively you can add eigenpy==2.9.2
to all test environments in tox.ini
to unlock this (I would take care of reverting it later).
I've updated the CI, but I think you need to approve the workflow
Passed all tests :+1: I will fix the linter error after the merge.
Thank you for this contribution :smiley:
Fixes https://github.com/tasts-robots/pink/issues/48
I tried with a sample script to make sure I'm not breaking anything, and the results for
BODY
andOP_FRAME
are consistent.