Giter Site home page Giter Site logo

ros-leddar's Introduction

Leddar ROS Package

This ROS package configures and communicates with LeddarTech devices using their SDK. This has only been tested on ROS Indigo and Jade with their Sensor Evaluation Kit.

This package was originally based on the work here: [jpmerc/leddartech] (https://github.com/jpmerc/leddartech).

Setting up

You must clone this repository as leddar into your catkin workspace:

git clone https://github.com/mcgill-robotics/ros-leddar.git leddar

Udev rules

To set up udev rules for your device, simply run:

sudo useradd -G plugdev ${USER}
sudo cp 10-leddartech.rules /etc/udev/rules.d/
sudo udevadm trigger

You might have to restart for this to take effect. Note that these rules might only work for the Sensor Evaluation Kit.

Compiling

You must compile this package before being able to run it. You can do so by running:

catkin_make

from the root of your workspace.

Running

To run, simply connect the LeddarTech leddar over RS232 and launch the package with:

roslaunch leddar leddar.launch serial:=<serial> frame:=<frame_id> fov:=<fov> range:=<range>

serial, frame, fov and range are run-time ROS launch arguments:

  • serial: Serial number of the device to connect to, default: only one connected.
  • frame: tf frame to stamp the messages with, default: leddar.
  • fov: Field of view of the device in degrees, default: 45.0 degrees.
  • range: Maximum range of the device in meters, default: 50.0 meters.

The leddar node will output to the following ROS topic:

  • ~scan: LaserScan message. Scan data.

Configuring

To configure the device, take a look at the parameters defined in Scan.cfg.

These paramaters can also be updated on the fly with ROS dynamic_reconfigure as such:

rosrun rqt_reconfigure rqt_reconfigure

Visualizing

The scan data can be conveniently visualized with rviz.

You should be able to see something like this: rviz

ros-leddar's People

Contributors

anassinator avatar sorjef avatar weidi-chang avatar

Watchers

 avatar  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.