Make velocity relative to base frame, not odometry frame
This commit is contained in:
parent
44a6f809e8
commit
304fd54e0d
1 changed files with 2 additions and 2 deletions
|
@ -150,8 +150,8 @@ namespace create {
|
||||||
} // if CREATE_2
|
} // if CREATE_2
|
||||||
|
|
||||||
if (fabs(dt) > util::EPS) {
|
if (fabs(dt) > util::EPS) {
|
||||||
vel.x = deltaX / dt;
|
vel.x = deltaDist / dt;
|
||||||
vel.y = deltaY / dt;
|
vel.y = 0.0;
|
||||||
vel.yaw = deltaYaw / dt;
|
vel.yaw = deltaYaw / dt;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue