Coder Social home page Coder Social logo

henrychenyd / maplab_realsense Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethz-asl/maplab_realsense

0.0 1.0 0.0 58 KB

Simple ROS wrapper for the Intel RealSense driver with a focus on the ZR300.

License: Apache License 2.0

CMake 0.76% C++ 97.91% Shell 1.33%

maplab_realsense's Introduction

maplab_realsense

This repository contains a ros wrapper for the Intel RealSense ZR300 driver, with a focus on its application for visual-inertial mapping.

Contents:

Installation for maplab users

This installation instruction assumes you already have maplab installed based on this page.

Install Realsense driver

  • Ubuntu LTS 16.04
    sudo apt install ros-kinetic-librealsense
    
  • Ubuntu LTS 14.04
    sudo apt-get install ros-indigo-librealsense
    

Add maplab_realsense and dependencies to your maplab workspace

cd $CATKIN_WS/src
git clone https://github.com/ethz-asl/maplab_realsense.git
git clone  https://github.com/ethz-asl/cuckoo_time_translator.git

Build maplab_realsense

catkin build maplab_realsense

Run maplab_realsense

Source the catkin workspace:

source $CATKIN_WS/devel/setup.bash

There is an example launch file with a list of all available ros parameters:

 roslaunch maplab_realsense maplab_realsense.launch

Stand-alone Installation

Install ROS

Skip this part if you have ROS installed.

export UBUNTU_VERSION=xenial #(Ubuntu 16.04: xenial, Ubuntu 14.04: trusty)
export ROS_VERSION=kinetic #(Ubuntu 16.04: kinetic, Ubuntu 14.04: indigo)

sudo apt install software-properties-common
sudo add-apt-repository "deb http://packages.ros.org/ros/ubuntu $UBUNTU_VERSION main"
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt update

sudo apt install ros-$ROS_VERSION-desktop-full "ros-$ROS_VERSION-tf2-*" "ros-$ROS_VERSION-camera-info-manager*" --yes

Initialize ROS installation

Skip this part if you have ROS installed.

sudo rosdep init
rosdep update
echo ". /opt/ros/$ROS_VERSION/setup.bash" >> ~/.bashrc
source ~/.bashrc

Install librealsense

sudo apt install ros-${ROS_VERSION}-librealsense

Create catkin workspace

Skip this part if you would like to add maplab_realsense to an existing workspace.

export ROS_VERSION=kinetic #(Ubuntu 16.04: kinetic, Ubuntu 14.04: indigo)
export CATKIN_WS=~/maplab_ws
mkdir -p $CATKIN_WS/src
cd $CATKIN_WS
catkin init
catkin config --merge-devel # Necessary for catkin_tools >= 0.4.
catkin config --extend /opt/ros/$ROS_VERSION
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
cd src

Clone maplab_realsense and dependencies

Be aware that if you would like to add maplab_realsense to an existing workspace, there might be conflicts with the dependencies and/or wstool.

cd ${CATKIN_WS}/src
git clone https://github.com/ethz-asl/maplab_realsense.git
wstool init             # If you are using a pre-existing workspace and
                        # have used wstool before, this won't be necessary
wstool merge maplab_realsense/dependencies.rosinstall
wstool update -j4

maplab_realsense's People

Contributors

mfehr avatar dymczykm avatar

Watchers

James Cloos 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.