No matter what conditions I give, the robot move backwards till the wall and the program is running forever. Any help?
Hi @aasyujak23 ,
Welcome to this Community!
A simpler method is to press Ctrl+C
on the terminal that runs the program. If this fails, you can do two things.
- Reset your terminal that runs the program by pressing the red X button on the terminal tab.
- Reload the robot simulation by pressing the second button on the top-right of the simulation screen. The button with one arrow shown as a circle. [If this fails you can click on the third button with two circular arrows].
This should cut off the program from running forever.
Regards,
Girish
Hi Girish,
Thanks for your answer!
I however, ultimately terminated the program. But my main concern is no matter what values I give for X_limit, the robot tends to move all the way backwards till the wall and it continues further as well leaving no end for the program. Is there any error with the exercise itself or is it the solution?
Hi @aasyujak23 ,
I am not sure if there is any problem with the solution. I do not usually look into the solutions unless I am really stuck or cannot understand the concept.
Maybe you can post your solution and I can have a look at it and provide you a solution.
Regards,
Girish