Fix check for motor constraints on angular DoF
This commit is contained in:
@@ -89,7 +89,7 @@ impl JointGenericVelocityConstraint {
|
|||||||
|
|
||||||
let start = len;
|
let start = len;
|
||||||
for i in DIM..SPATIAL_DIM {
|
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(
|
out[len] = builder.motor_angular_generic(
|
||||||
params,
|
params,
|
||||||
jacobians,
|
jacobians,
|
||||||
@@ -385,7 +385,7 @@ impl JointGenericVelocityGroundConstraint {
|
|||||||
|
|
||||||
let start = len;
|
let start = len;
|
||||||
for i in DIM..SPATIAL_DIM {
|
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(
|
out[len] = builder.motor_angular_generic_ground(
|
||||||
params,
|
params,
|
||||||
jacobians,
|
jacobians,
|
||||||
|
|||||||
Reference in New Issue
Block a user