Skip to content

Difference between the collision_constraint_config and collision_cost_config #103

Discussion options

You must be logged in to vote

If you only set the collision as a cost it is not guaranteed to be collision-free the solver will just try to minimize it as best it can. If it is a constraint the solver will fail if any contact is within the safety margin. Now you may be wondering they why would you add it as a cost. In some complicated environments running the solver first with a collision as cost followed by running it again as a constraint performs better. Where if you added it as a constraint to start it may just fail because the initial state is in the infeasible region. I have also had good luck adding collision as both a cost and constraint with different safety margin distances.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mohamedsayed18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants