Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bedylmz/autoDriveROS2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS2 Navigation 2

This repository performs autonomous driving using Navigation 2.

How to Run

Run TurtleBot3 Gazebo simulation

    export TURTLEBOT3_MODEL=waffle
  	export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
  	source /opt/ros/humble/setup.bash
  	source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash

    ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

In another terminal, run Navigation 2 for the Gazebo simulation

    export TURTLEBOT3_MODEL=waffle
  	export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
  	source /opt/ros/humble/setup.bash
  	source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash

    cd /workSpacePath/src

    ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True maps:=map/map_0.yaml

In another terminal, run our package

    export TURTLEBOT3_MODEL=waffle
  	export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
  	source /opt/ros/humble/setup.bash
  	source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash

    source /workSpacePath/install/setup.bash # or locate workspace and run below code
    # source /install/setup.bash
    ros2 run auto_drive drive

Important Notes

  • If you cannot run please contact to me.

Screenshots

Screenshot of Rviz while mapping manually with the robot mapping

Our map in Rviz our map

Initial position of the robot in Gazebo robot in gazebo

Running our package in the terminal terminal image

Rviz after running our package init Rviz

Robot moving toward the destination in Rviz middle Rviz

Robot reaching the destination in Rviz reach Rviz

Robot reaching the destination in Gazebo reach Gazebo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors