Skip to content
Snippets Groups Projects
Commit 1884e8a3 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Update odom_new.cpp

parent 0e596a89
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,11 @@ class OdomNew
//this->x =
//this->y =
//this->th =
vx = this->radius*( left_vel + right_vel) / 2.0;
vth = this->radius*( right_vel - left_vel ) / this->wheel_distance;
this->x += vx * cos(this->th) * dt;
this->y += vx * sin(this->th) * dt;
this->th += vth * dt;
//////// TODO //////
this->odom_msg.header.stamp = time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment