# How to move robot forward and backward until the execution is stop in python

**URL:** <https://get-help.theconstruct.ai/t/how-to-move-robot-forward-and-backward-until-the-execution-is-stop-in-python/11766>\
**Category:** Open Discussions\
**Tags:** python\
**Created:** [August 9, 2021, 4:04pm UTC](https://get-help.theconstruct.ai/t/how-to-move-robot-forward-and-backward-until-the-execution-is-stop-in-python/11766 "2021-08-09T16:04:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [August 9, 2021, 8:01pm UTC](https://get-help.theconstruct.ai/t/how-to-move-robot-forward-and-backward-until-the-execution-is-stop-in-python/11766/3 "2021-08-09T20:01:48Z")

</div>

> [@AmirulJ](#):
>
> and when I aborting the program, the robot keep moving. May I know why?

See this post:

> **[How to stop your robot when ROS is shutting down](https://get-help.theconstruct.ai/t/how-to-stop-your-robot-when-ros-is-shutting-down/225)**
>
> You might already know that ROS topics operate in “obey the last command” mode when working with robots in Gazebo simulations. In other words, the robot continues to execute the last message published to a given topic, even after you stop...

---

_[View the full topic](https://get-help.theconstruct.ai/t/how-to-move-robot-forward-and-backward-until-the-execution-is-stop-in-python/11766)._
