Walker Algorithm implementation for the Turtlebot 3 in Gazebo
This ROS package implements a walker algorithm (similar to a Roomba robot vacuum cleaner) for the Turtlebot 3 in Gazebo. The robot moves forward until it reaches an obstacle (but not colliding), then rotates in place until the way ahead is clear, then moves forward again and repeats.
The following dependencies are required to run this package:
- ROS Melodic
- catkin
- Ubuntu 18.04
cd ~/catkin_ws/src
git clone --recursive https://github.com/nalindas9/turtlebot_walker.git
cd ..
catkin_make
Open the following terminals and run the following commands in them:
- Terminal 1:
roscore
- Terminal 2: Passing record=true for recording of bag file:
cd catkin_ws
source devel/setup.bash
roslaunch turtlebot_walker turtlebot_walker.launch
- Terminal 1:
cd catkin_ws
source devel/setup.bash
cd src/turtlebot_walker/results/
rosbag info turtlebot_walker.bag
- Terminal 1 (run master node):
roscore
- Terminal 2 (play rosbag):
cd catkin_ws
source devel/setup.bash
rosbag play src/turtlebot_walker/results/turtlebot_walker.bag