Draw shapes using the trace left by turtlesim
The draw_something library let you use the trace left by turtlesim for drawing figures. It is based ont the draw_square node from the turtlesim package but with supercharged capabilities. The figures depend on the input files or recipes, where are specified the distances and angles in such an order that allows generating the desired figure.
In the "recipes" folder, are included some examples of ready-to-use recipes for testing purposes.
This project was made as a "school project", to learn the principles of using ROS and the publisher-subscriber communication paradigm.
- catkin - cmake and Python based buildsystem
- ros_tutorials - needed for turtlesim
Get the code:
git clone https://github.com/apojomovsky/draw_something.git
Build the workplace where you placed the repository:
catkin_make
Update the setup.bash script:
<workspace>/source devel/setup.bash
Excecute roscore:
~/roscore
In another terminal run a new instance of turtlesim:
~/rosrun turtlesim turtlesim_node
In another terminal run the draw_something program with the recipe file address as parameter:
~/rosrun draw_something draw_something <filename>
Have fun!