mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-18 15:46:59 +00:00
update
This commit is contained in:
parent
9fd47a2a55
commit
459a916c82
@ -42,8 +42,8 @@ int main(int argc, char** argv) {
|
||||
|
||||
// Compute odometry based on subscribed velocity data
|
||||
double dt = (current_time - last_time).toSec();
|
||||
double delta_x = (vx * cos(th) - vy * sin(th)) * dt;
|
||||
double delta_y = (vx * sin(th) + vy * cos(th)) * dt;
|
||||
double delta_x = (vx * cos(th)) * dt;
|
||||
double delta_y = (vx * sin(th)) * dt;
|
||||
double delta_th = vth * dt;
|
||||
|
||||
x += delta_x;
|
||||
|
Loading…
Reference in New Issue
Block a user