Turtlebot3 keeps rotating in Gazebo
I have spawned a turlebot3 in Gazebo environment using roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch
. I have written a node that just keeps publishing an angular velocity to /cmd_vel
. As soon as I start the node, the bot starts rotating in the Gazebo environment. However, when I exit the node from the terminal (by pressing Ctrl + C
), the bot keeps rotating in the Gazebo environment. Why is this happening?
I even checked the following in the terminal - rostopic echo /cmd_vel
. It didn't return anything. How is then the bot rotating?
Sometimes, I am facing the opposite thing i.e. I am publishing to /cmd_vel
but the bot isn't rotating in the Gazebo world.