Gazebo Assignment: To implementat a algorithm to run TurtleBot 3 in to avoid obstacles and collisions.
- ROS2 Humble
gazebo_ros
turtlebot3
Source setup file first
. <path-to-ROS2-installation>/ros2_humble/install/local_setup.bash
cd <path-to-ROS2-workspace>/ros2_ws/src
git clone the link to this repo
cd ..
rosdep install -i --from-path src --rosdistro humble -y
colcon build --packages-select Turtle_Bot_3_walker
In a terminal, navigate to your ROS2 workspace (ros2_ws
) and source the setup files,
export TURTLEBOT3_MODEL=waffle_pi
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:`ros2 pkg prefix turtlebot3_gazebo `/share/turtlebot3_gazebo/models/
export TURTLEBOT3_MODEL=waffle_pi
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:`turtlebot3_gazebo `/share/turtlebot3_gazebo/models/
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
and run the walker
node in another terminal as follows:
ros2 run turtlebot3_walker walker
cppcheck --enable=all --std=c++17 ./src/*.cpp ./include/turtlebot3_walker/*.hpp --suppress=missingIncludeSystem --suppress=unmatchedSuppression --suppress=unusedFunction --suppress=missingInclude --suppress=useInitializationList > results/cppcheck.txt
cpplint --filter=-build/c++11,+build/c++17,-build/namespaces,-build/include_order ./src/*.cpp ./include/turtlebot3_walker/*.hpp > ./results/cpplint.txt
To record the ros2 bag you need to do the following
ros2 bag info walker_bag
ros2 bag play walker_bag
- ROS bag file were not recorded due to errors