Repository navigation
fix(ocp): use geometry names in ocp_traj_tracking_collision_avoidance.yaml - #355
Open
MaximilienNaveau wants to merge 3 commits into
Open
MaximilienNaveau wants to merge 3 commits into
MaximilienNaveau wants to merge 3 commits into
Conversation
MaximilienNaveau
marked this pull request as ready for review
November 27, 2026 07:47
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:
agimus_controller/agimus_controller/ocp/ocp_traj_tracking_collision_avoidance.yaml:47,56,95gives the collision residualscollision_pair_id: 0. Since 4bc8c72 ("Fix issues in OCPCrocoGeneric"),ResidualDistanceCollisionBase(ocp_croco_generic.py:502) takescollision_pair, a pair of geometry names, and has nocollision_pair_idfield. So the example cannot be loaded at all.Reproduction:
Fix: replace
collision_pair_id: 0withcollision_pair: [fer_link7_sc_capsule_0, obstacle1_capsule_0]in the two costs and the constraint. Debatable: the old index did not name a robot, so the names are my choice. They are the FER link 7 capsule fromagimus_franka_description(as in the pick-and-place example config) and the obstacle fromtests/resources/environment.xacro. Tell me if another pair suits the example better.Test:
test_load_traj_tracking_collision_avoidance_yamlloads the file intoShootingProblemand checks that the constraint residual is aResidualDistanceCollisionwith a two-name pair. It fails on main and passes with the fix. Building the models needs a collision model with these geometry names.agimus_franka_descriptionand xacro are not available in my test environment, so I checked the build with a small script instead: onpinocchio.buildSampleModelManipulator()with two geometries renamed to these names, the running and terminal models build andcalcruns.Found while auditing the Python code for the C++ port (#334), finding B6.