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.
- 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
$ 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
$ ros2 launch megarover_samples_ros2 vmegarover_with_sample_world.launch.py
$ ros2 launch megarover_samples_ros2 vmegarover_mapping.launch.py
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard
$ mkdir ~/maps
$ ros2 launch megarover_samples_ros2 vmegarover_save_map.launch.py
$ ros2 launch megarover_samples_ros2 vmegarover_with_sample_world.launch.py
$ ros2 launch megarover_samples_ros2 vmegarover_navigation.launch.py map:=$HOME/maps/vmegarover_samplemap.yaml
- 2D Scan
- odometry
- teleop
- slam_toolbox
- amcl
- navigation