Skip to content

Commit

Permalink
Merge pull request #560 from kvark/wheel-joint
Browse files Browse the repository at this point in the history
Fix check for motor constraints on angular DoF
  • Loading branch information
sebcrozet authored Dec 10, 2023
2 parents 6246bb3 + e4bf691 commit 8c969d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl JointGenericVelocityConstraint {

let start = len;
for i in DIM..SPATIAL_DIM {
if (motor_axes >> DIM) & (1 << i) != 0 {
if motor_axes & (1 << i) != 0 {
out[len] = builder.motor_angular_generic(
params,
jacobians,
Expand Down Expand Up @@ -385,7 +385,7 @@ impl JointGenericVelocityGroundConstraint {

let start = len;
for i in DIM..SPATIAL_DIM {
if (motor_axes >> DIM) & (1 << i) != 0 {
if motor_axes & (1 << i) != 0 {
out[len] = builder.motor_angular_generic_ground(
params,
jacobians,
Expand Down

0 comments on commit 8c969d4

Please sign in to comment.