Skip to content

Controlling the Turtlesim in ROS2 using simple prompts to control the robot

Notifications You must be signed in to change notification settings

ChepuriNatraj/prompt_turtlesim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompt Turtlesim

Controlling the Turtlesim in ROS2 using simple prompts to control the robot.

Description

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.

Installation

Clone this repository into your ROS2 workspace's src directory:

cd ~/ros2_ws/src
git clone https://github.com/ChepuriNatraj/prompt_turtlesim.git

Then build the workspace:

cd ~/ros2_ws
colcon build --packages-select prompt_turtlesim
source install/setup.bash

Usage

First, start the turtlesim node:

ros2 run turtlesim turtlesim_node

Then, run the prompt turtle node:

ros2 run prompt_turtlesim prompt_turtle

Enter commands like:

  • forward 2 - Move forward 2 units
  • backward 1.5 - Move backward 1.5 units
  • left 90 - Turn left 90 degrees
  • right 45 - Turn right 45 degrees
  • circle - Draw a circle
  • stop - Stop the turtle
  • quit - Exit the program

Dependencies

  • rclpy
  • geometry_msgs

License

TODO: License declaration# prompt_turtlesim

About

Controlling the Turtlesim in ROS2 using simple prompts to control the robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages