Controlling the Turtlesim in ROS2 using simple prompts to control the robot.
This ROS2 package allows you to control the turtlesim robot using simple text prompts. You can move the turtle forward, backward, turn left or right, draw circles, and stop.
Clone this repository into your ROS2 workspace's src directory:
cd ~/ros2_ws/src
git clone https://github.com/ChepuriNatraj/prompt_turtlesim.gitThen build the workspace:
cd ~/ros2_ws
colcon build --packages-select prompt_turtlesim
source install/setup.bashFirst, start the turtlesim node:
ros2 run turtlesim turtlesim_nodeThen, run the prompt turtle node:
ros2 run prompt_turtlesim prompt_turtleEnter commands like:
forward 2- Move forward 2 unitsbackward 1.5- Move backward 1.5 unitsleft 90- Turn left 90 degreesright 45- Turn right 45 degreescircle- Draw a circlestop- Stop the turtlequit- Exit the program
- rclpy
- geometry_msgs
TODO: License declaration# prompt_turtlesim