Skip to content

Commit

Permalink
Merge pull request #41 from snozawa/fix_frame_of_accel_sensor
Browse files Browse the repository at this point in the history
Fix accel sensor frame
  • Loading branch information
fkanehiro committed Feb 9, 2015
2 parents 7e9b649 + 5b101d5 commit 9f3388e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrplib/hrpModel/ForwardDynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void ForwardDynamics::updateAccelSensor(AccelSensor* sensor)
Vector3 o_Agsens(x[0](1), x[1](1), x[2](1));
o_Agsens += g;

sensor->dv.noalias() = link->R.transpose() * o_Agsens;
sensor->dv.noalias() = sensor->localR.transpose() * link->R.transpose() * o_Agsens;
}


Expand Down

0 comments on commit 9f3388e

Please sign in to comment.