Skip to content

CtfChan/explore_ros2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

explore_ros2

This package is a ROS2 port of the following repo: https://github.com/hrnr/m-explore.

Prerequisite

  • ROS2 Foxy (I have only tested it on Foxy)
  • Navigation2 package
  • Turtlebot3 package

Please follow the Navigation2 Getting Started page to install the required packages and setup the required environment variables.

Building

$ cd ~/my_ws/src
$ git clone https://github.com/CtfChan/explore_ros2.git
$ cd ~/my_ws
$ colcon build --packages-select explore_ros2 --symlink-install
$ . install/local_setup.bash

Running Demo

Launching too many nodes at the same time caused my laptop to crash. Launch the following commands in four separate panes using the order below.

$ ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py 
$ ros2 launch nav2_bringup slam_launch.py
$ ros2 launch nav2_bringup navigation_launch.py
$ ros2 launch explore_ros2 explore_demo.py

Running Unit Test

Work in progress...

Unit test executable is in my_ws/build/explore_ros2/test. Just call make && ctest to in this directory to build and run them. If you know a better way please let me know. I believe you can also run with colcon-test --package-select explore_ros2 but I haven't configured it to do so.

About

Frontier Exploration in ROS2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published