Skip to content

tiany44/megarover_samples_ros2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

megarover_samples_ros2

Introduction

This is a ROS2 Package to develop package of megarover using Gazebo.
I used model, mesh and world files of https://github.com/vstoneofficial/megarover_samples as a reference.

If you use ROS2 Galactic, please check galactic branch.

Requirements

  • ROS2 Foxy

And, I have tested with Eclipse Cyclone DDS as RMW implementation. If you use this RMW implementation, please install according to the following command.

$ sudo apt install ros-foxy-rmw-cyclonedds-cpp
$ export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

Build

$ mkdir -p ~/dev_ws/src
$ cd ~/dev_ws/src
$ git clone https://github.com/atinfinity/megarover_samples_ros2.git
$ cd ..
$ rosdep install -i --from-paths src/megarover_samples_ros2
$ colcon build --symlink-install
$ source ~/dev_ws/install/setup.bash

Mapping

Launch Gazebo

$ ros2 launch megarover_samples_ros2 vmegarover_with_sample_world.launch.py

Launch Slam Toolbox for Mapping

$ ros2 launch megarover_samples_ros2 vmegarover_mapping.launch.py

Launch Teleop

$ ros2 run teleop_twist_keyboard teleop_twist_keyboard

Save Map

$ mkdir ~/maps
$ ros2 launch megarover_samples_ros2 vmegarover_save_map.launch.py

Navigation

Launch Gazebo

$ ros2 launch megarover_samples_ros2 vmegarover_with_sample_world.launch.py

Launch Navigation

$ ros2 launch megarover_samples_ros2 vmegarover_navigation.launch.py map:=$HOME/maps/vmegarover_samplemap.yaml

ToDo

  • 2D Scan
  • odometry
  • teleop
  • slam_toolbox
  • amcl
  • navigation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.5%
  • CMake 14.0%
  • C++ 1.5%