######################################## Controlling the simulated robot on RViz ######################################## Setup ------ #. Install teleop twist keyboard .. code-block:: bash sudo apt update sudo apt install ros-noetic-teleop-twist-keyboard #. Start the driver .. code-block:: bash roslaunch robotont_driver fake_driver.launch #. Set the fixed frame to :code:`odom` in RViz .. image:: pictures/frame_odom_img.png :width: 400 Controlling the robot using teleop twist keyboard ------------------------------------------------- #. Open a new terminal window #. Run the following command: .. code-block:: bash rosrun teleop_twist_keyboard teleop_twist_keyboard.py #. Use the following keys to move the robot: .. image:: pictures/twist_keys.png :width: 400 .. hint:: Notice that the teleop node receives keypresses only when the terminal window is active. .. tip:: Use :code:`CTRL + C` to stop the node.