Code Monkey home page Code Monkey logo

lslidar_c16's Introduction

lslidar_c16

version track

Author: Yutong

ver1.1 Yutong

Using new message type to distinguish different channel data topic name: scan_channel topic type: LslidarC16Layer details: LslidarC16Layer is consist of 16 sets data for different channel, each set of data is represented by Sensor_msgs/LaserScan rosmessage type Usage: rostopic echo /scan_channel will output all 16 channels data rostopic echo /scan_channel/scan_channel[] ( can be from 0 to 15 represents channel num) --> output data will be sensor_msgs/LaserScan message type Example: There is an example script to show you how to obtain each channel data, located at /lslidar_c16_decoder/scripts/Test_MultiChannel.py You will need python package numpy and matplotlib.pyplot(optional) to fully run this script

ver1.05 Yutong

Using rostopic to select the channel you wish to output topic name: layer_num topic type: std_msgs/Int8 details: send layer number to topic layer_num Usage: rostopic pub /layer_num std_msgs/Int8 "data: 5" --> output channel 5 data to topic /scan, message type is sensor_msgs/LaserScan . data number can only from 0 to 15

Description

The lslidar_c16 package is a linux ROS driver for lslidar c16. The package is tested on Ubuntu 14.04 with ROS indigo.

Compling

This is a Catkin package. Make sure the package is on ROS_PACKAGE_PATH after cloning the package to your workspace. And the normal procedure for compling a catkin package will work.

cd your_work_space
catkin_make 

Example Usage

lslidar_c16_decoder

Parameters

device_ip (string, default: 192.168.1.200)

By default, the IP address of the device is 192.168.1.200.

frame_id (string, default: laser)

The frame ID entry for the sent messages.

Published Topics

lslidar_packets (lslidar_c16_msgs/LslidarC16Packet)

Each message corresponds to a lslidar packet sent by the device through the Ethernet.

lslidar_c16_decoder

Parameters

min_range (double, 0.15)

max_range (double, 150.0)

Points outside this range will be removed.

frequency (frequency, 10.0)

Note that the driver does not change the frequency of the sensor.

publish_point_cloud (bool, true)

If set to true, the decoder will additionally send out a local point cloud consisting of the points in each revolution.

Published Topics

lslidar_sweep (lslidar_c16_msgs/LslidarC16Sweep)

The message arranges the points within each sweep based on its scan index and azimuth.

lslidar_point_cloud (sensor_msgs/PointCloud2)

This is only published when the publish_point_cloud is set to true in the launch file.

Node

roslaunch lslidar_c16_decoder lslidar_c16.launch --screen

Note that this launch file launches both the driver and the decoder, which is the only launch file needed to be used.

FAQ

Bug Report

lslidar_c16's People

Contributors

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