Code Monkey home page Code Monkey logo

mbzirc's Introduction

MBZIRC Maritime Grand Challenge Simulator

This repository contains simulation software created for the MBZIRC Maritime Grand Challenge.

This simulator will be enhanced with additional features throughout the simulation phase of the MBZIRC Maritime Grand Challenge.

Installation

Prerequsite

  • Platform: Ubuntu 20.04 (Focal)
  • Ignition Fortress
  • ROS2 Galactic

See Installation instructions for:

Installation from Source

  1. Create a colcon workspace and clone the mbzirc repo

    mkdir -p ~/mbzirc_ws/src
    cd ~/mbzirc_ws/src
    git clone https://github.com/osrf/mbzirc.git
    
  2. Clone the ros_ign repo and check out the galactic branch

    cd ~/mbzirc_ws/src
    git clone https://github.com/ignitionrobotics/ros_ign.git -b galactic
    
  3. Install dependencies using rosdep

    cd ~/mbzirc_ws
    rosdep update
    rosdep install -r --from-paths src -i -y --rosdistro galactic
    

    Make sure the ros-galactic-mavros-msgs package is installed, e.g.

    dpkg -l | grep ros-galactic-mavros-msgs
    

    If not, install it:

    sudo apt install ros-galactic-mavros-msgs
    
  4. Build the workspace

    cd ~/mbzirc_ws
    IGNITION_VERSION=fortress colcon build --merge-install
    

    Note: Make sure to set the IGNITION_VERSION to fortress. This is needed for building the ros_ign package.

Docker setup

Docker images are available on Docker Hub: https://hub.docker.com/repository/docker/osrf/mbzirc

  1. Pull the latest version of the docker image

    docker pull osrf/mbzirc:mbzirc_sim_latest
    
  2. Clone the repo and launch a Docker container from the image using the run.bash script. Note: requires nvidia-docker2

    git clone https://github.com/osrf/mbzirc.git
    cd mbzirc/docker
    bash run.bash osrf/mbzirc:mbzirc_sim_latest  /bin/bash
    

To build a docker image of the simulator locally:

  1. Navigate to the docker directory and build the mbzirc_sim Docker image

    cd mbzirc
    bash docker/build.bash mbzirc_sim
    
  2. The process can take a few minutes. Once it is done, you can launch the Docker container:

    cd docker
    bash run.bash mbzirc_sim
    

Running the simulator

Please see the wiki: https://github.com/osrf/mbzirc/wiki

mbzirc's People

Contributors

iche033 avatar caguero avatar arjo129 avatar mjcarroll avatar j-rivero avatar aaronchongth avatar alejoasd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.