Repository navigation
fix(ocp_croco_goal_reaching): use the terminal point's frame for the terminal goal-tracking cost - #347
Open
MaximilienNaveau wants to merge 2 commits into
Conversation
…terminal goal-tracking cost
MaximilienNaveau
marked this pull request as ready for review
November 27, 2026 07:23
Kotochleb
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
OCPCrocoGoalReaching.set_reference_weighted_trajectory(ocp_croco_goal_reaching.py:206 on main) sets the terminalgoalTrackingresidual frame withee_id, a variable left over from the running-node loop (the last running point's frame). The terminal point's ownee_nameis read just above but never converted to an id. If the terminal point tracks a different frame than the last running point, the terminal cost tracks the wrong frame (and the terminal reference pose, taken from the terminal point, is applied to that wrong frame).Reproduction: running points track
panda_hand_tcp, terminal point trackspanda_link5; the terminal residual id is the one ofpanda_hand_tcp(see test).Fix: compute
ee_idfrom the terminal point'see_namebefore setting the residual id.Test:
test_terminal_end_effector_framein test_ocp_croco_goal_reaching.py checks the running and terminal residual ids. Fails before (25 != 11), passes after.Found while auditing the Python code for the C++ port (#334), finding A4.