Ambiguous Wording in Part 2 of Pythons Basics for Robotics Project

Hello, I wanted to ask what the difference is between the timed move front and move distance front functions. They both seem to be the same function as both essentially only take in a linear speed value to make the robot move in one direction. Would I be correct in saying that timed move front also needs the moving time as an argument and move distance front needs the distance to traverse as an argument alongside the speed? I ask this because the descriptions say the linear speed is provided, implying that only the linear speed is an argument.

Hi @janimahmood22 ,

It is not “ambiguous”. It is well explained clearly. You have not understood it properly!

Timed Move Front will make the robot move front for given time.
So if you say move front for 5 seconds, it will keep moving front for 5 seconds and stop.

Whereas, Move Distance Front will move the robot to certain distance in the forward direction.
So if you say move front for 5 meters, it will move keep moving forward until it reaches (approximately) 5 meters (since you are using open loop control here, which means there is no sensor feedback data to know how much distance the robot has exactly moved).

The explanations are quite clearly conveying the intent of the functions. And yes, they are two different functions - they are not the same functions. Although both the functions timed move front and move distance front will make the robot travel forwards, the behavior of those two functions are quite different.

timed move front will need speed and time as an argument and move distance front will need speed and distance as arguments. “provided linear speed” indicates that the linear speed is fixed. So, in both functions, the linear speed must be provided as one of the arguments. You can’t move the robot without providing speed value!

Regards,
Girish