Skip to content

Latest commit

 

History

History
60 lines (33 loc) · 1.35 KB

File metadata and controls

60 lines (33 loc) · 1.35 KB

A simple game using Turtlesim

Introduction

A game made with TurtleSim in :::ROS, the task is to drive the turtle around a predefined path without going out of the line.

Prerequisites

Building & Installation

cd catkin_ws/src

https://github.com/jerinpeter/turtle_game

cd ..

catkin_make

roslaunch turtle_launch.launch

Working in brief

  • Subscribed to "/turtle1/color_sensor" topic to get the background colour of the turtle.
    " /turtle1/set_pen
    "/turtle1/teleport_absolute"

The above services where used to draw a predefined shape in the turtlsim for the user to drive the robot.

  • If the turtle when out of line a warning message is given to the user.

DEMO

Working

Improvements

  • Room for addition of more shapes and complex shapes to drive the turtle around.

  • Different levels with the ability to adjust thickness of the line using the "width" parameter in "/turtle1/set_pen" service.

Reference