This project involves the development of an basic obstacle avoidance algorithm for turtlebot3 robot in ROS2 Humble.
- ros2 can be installed from binary package or source files.
- Installation from binary(Debian Packag) is preferred.
- Use this link to install Ros2 Humble.
video12_AdobeExpress.mp4
run below commands only if you have installed ROS2 Humble, from binary packages(Debian Package).
- turtlebot3 pkg:
sudo apt install ros-humble-turtlebot3*
- gazebo_ros_packages:
sudo apt install ros-foxy-gazebo-ros-pkgs
cd ~/ros2_ws/src
git clone https://github.com/sairampolina/turtlebot3_obstacle_avoidance.git
- from the root of your ros workspace run below command.
- Any missing dependencies are notified.
rosdep install -i --from-path src --rosdistro humble -y
from the root of your ros workspace run below command.
colcon build --packages-select tb3_obstacle_avoidance_pkg
. install/setup.bash
ros2 launch tb3_obstacle_avoidance_pkg walker_algorithm_launch.py
- Navigate to the folder where you want to store your bag
- ros2 bag parameters can be found in launch file
ros2 launch tb3_obstacle_avoidance_pkg walker_algorithm_launch.py record_topics:=True
ros2 bag info tb3_walker_bag/
ros2 bag play tb3_walker_bag/
cpplint --filter=-build/c++11,+build/c++17,-build/namespaces,-build/include_order src/*.cpp &> ../results/cpplint.txt
cppcheck --enable=all --std=c++17 src/*.cpp --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression > ../results/cppcheck.txt