Coder Social home page Coder Social logo

wsaihopfsg / ros_driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pepperlfuchs/pf_lidar_ros_driver

0.0 0.0 0.0 323 KB

ROS driver for Pepperl+Fuchs R2000 and R2300 laser scanners

License: Apache License 2.0

CMake 1.43% C++ 84.54% Python 14.03%

ros_driver's Introduction

ROS drivers for R2000 and R2300 laser scanners

Build Status

Required platform:
Ubuntu 18.04 and ROS Melodic

Clone the repository:
Clone the repository in the src folder of your ROS workspace

git clone --branch=master https://github.com/PepperlFuchs/ROS_driver.git

Install the missing dependencies:

cd <path/to/workspace>
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=melodic -y

Build the workspace:

cd <path/to/workspace>
source /opt/ros/melodic/setup.bash
catkin build
source <path/to/workspace>/devel/setup.bash

Usage:
Now you are ready to use the driver. Make the necessary power and ethernet connections. Make sure your computer's IP address is on the same subnet mask as that of the device. Change the scanner_ip argument in the respective launch file as necessary. You can now launch one of the drivers in the following manner:

roslaunch pf_driver r2000.launch

OR

roslaunch pf_driver r2300.launch

With R2300, the term scan refers to a contiguous group of measurements spanning one particular horizontal circular sector. Depending on the orientation of the mirrors on the cube, the scans may be taken in the same or slightly different layers.

In current sensors, all four mirrors are inclined slightly differently so that scans are taken at the following vertical angle (relative to the mounting plane). Note that the layers are numbered in the order they are scanned during one turn. This is (yet) not strictly from bottom to top:

Layer index Angle Description
0 -4.5° bottom (connector side)
1 -1.5° -
2 +4.5° top
3 +1.5° -

To visualize the 4 rings in RViz, run the following launch file:

roslaunch pf_driver r2300_allscans.launch

ros_driver's People

Contributors

hsd-dev avatar bk-mtg 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.