# How to move turtlebot for a certain pre-defined distance

Hello

We would like to write a code that makes Turtlebot move linearly to a specified distance, for example 2.3 meters.

We would like to know what will be the best strategy to implement this?

One way that we thought about is to send a constant linear velocity on topic twist.twist.linear.x and stops after a certain time t such as t=distance/velocity. Is this a good approach?

is there any other better strategy?

Thanks Anis