Skip to content

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
agimus-project:mainfrom
MaximilienNaveau:fix/goal-reaching-terminal-ee
Open

MaximilienNaveau wants to merge 2 commits into
agimus-project:mainfrom
MaximilienNaveau:fix/goal-reaching-terminal-ee

Conversation

@MaximilienNaveau

Copy link
Copy Markdown
Collaborator

Problem: OCPCrocoGoalReaching.set_reference_weighted_trajectory (ocp_croco_goal_reaching.py:206 on main) sets the terminal goalTracking residual frame with ee_id, a variable left over from the running-node loop (the last running point's frame). The terminal point's own ee_name is 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 tracks panda_link5; the terminal residual id is the one of panda_hand_tcp (see test).

Fix: compute ee_id from the terminal point's ee_name before setting the residual id.

Test: test_terminal_end_effector_frame in 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.

@MaximilienNaveau
MaximilienNaveau marked this pull request as ready for review November 27, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants