Skip to content

mgonzs13/ros2_rover

Repository files navigation

ros2_rover

This is a ROS 2 (Humble) version of the Sawppy the Rover. A C++ version and a Python version of the lx16a controller are included. Besides, a PS3 joy controller and a hokuyo laser can be used.

Table of Contents

  1. Installation
  2. Usage
  3. Gazebo Simulation

Installation

$ cd ~/ros2_ws/src
$ git clone https://github.com/mgonzs13/ros2_rover
$ cd ~/ros2_ws
$ rosdep install --from-paths src -r -y
$ colcon build

Usage

$ ros2 launch rover_bringup rover.launch.py

Linux Service

A Linux service can be created to control the execution and launch everything at boot time. To create the rover service, the following commands are used:

$ cd ~/ros2_ws/src/ros2_rover/rover_service
$ sudo ./install.sh

Check rover service:

$ sudo service rover status

Gazebo Simulation

Moon

$ ros2 launch rover_gazebo moon.launch.py

Mars

$ ros2 launch rover_gazebo mars.launch.py

Forest

$ ros2 launch rover_gazebo forest.launch.py