Skip to content

This is a basic Turtlesim ROS package coded in both c++ and python to avoid the collision of turtle bot from the walls in turtlesim

Notifications You must be signed in to change notification settings

Robo-Dude/Wall_Collision_Avoidance_In_Turtlesim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Wall_Collision_Avoidance_In_Turtlesim

This is a basic Turtlesim ROS package coded in both c++ and python to avoid the collision of turtle bot from the walls in turtlesim

Instruction

  1. Clone this github repositiory into your ros workspace/src folder (eg - catkin_ws/src/automate_turtlesim)

    git clone https://github.com/Robo-Dude/Wall_collision_avoidance_in_turtlesim.git
  2. Go back to catkin_ws folder open the terminal run catkin_make for building code in a catkin workspace.

    catkin_make
  3. Now Open three terminals and run:

    for C++ Nodes on terminal

    3.1 Terminal 1

    roscore

    3.2 Terminal 2

    rosrun turtlesim turtlesim_node 

    3.3 Terminal 3

    rosrun automate_turtlesim collision

    for Python Nodes on terminal

    Note - Don't forget to give executable permission to python nodes files

    chmod +x filename.py

    3.1 Terminal 1

    roscore

    3.2 Terminal 2

    rosrun turtlesim turtlesim_node 

    3.3 Terminal 3

    rosrun automate_turtlesim collision.py

Video -

turtle_wall_colision_avoidance.webm

About

This is a basic Turtlesim ROS package coded in both c++ and python to avoid the collision of turtle bot from the walls in turtlesim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published