Skip to content

Commit 6a5d919

Browse files
authored
Merge pull request #105 from mattrobotcontributor/resolve_collision_locking_force
Resolve locking force when objects are already in collision.
2 parents 35c7bf0 + 9d09739 commit 6a5d919

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
1515
### Bugfix
1616

1717
- Fix `Configuration.get_inertia_matrix` for MuJoCo versions >= 3.3.4.
18+
- Objects already in collision repel each other instead of locking together.
1819

1920
## [0.0.11] - 2025-05-22
2021

mink/limits/collision_avoidance_limit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def compute_qp_inequalities(
206206
jac = compute_contact_normal_jacobian(
207207
self.model, configuration.data, contact
208208
)
209-
coefficient_matrix[idx] = -jac
209+
coefficient_matrix[idx] = -np.sign(hi_bound_dist) * jac
210210
return Constraint(G=coefficient_matrix, h=upper_bound)
211211

212212
# Private methods.

0 commit comments

Comments
 (0)