## find a function to read the distance traveled by wheel

### find a function to read the distance traveled by wheel

i want to find a function that can read the the distance traveled by the wheel,just like the actual encoding disk.The disk can count so i can read it then calculate the distance traveled by wheel.And now i try to find a function in Vrep to get the distance traveled by the wheel.

### Re: find a function to read the distance traveled by wheel

Hello,

for instance, in each simulation step, read the angular position. Subtract the previous angular position. This gives you the rotation that was performed within one simulation step. If you need the total angular movement, simply cumulate all the rotations between individual simulation steps.

Cheers

for instance, in each simulation step, read the angular position. Subtract the previous angular position. This gives you the rotation that was performed within one simulation step. If you need the total angular movement, simply cumulate all the rotations between individual simulation steps.

Cheers