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 (fabs(dt) > util::EPS) {
|
||||
vel.x = deltaX / dt;
|
||||
vel.y = deltaY / dt;
|
||||
vel.x = deltaDist / dt;
|
||||
vel.y = 0.0;
|
||||
vel.yaw = deltaYaw / dt;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue