Skip to content

Hao-Li-Bachelorarbeit/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

Languages

  • C++ 87.9%
  • CMake 6.1%
  • Shell 3.1%
  • Python 2.9%