rplidar_ros 雷達配置及測試

The rplidar ros package, support rplidar A2/A1

Maintainer status: maintained

Maintainer: Slamtec ROS Maintainer

Author:

License: BSD

Source: githttps://github.com/robopeak/rplidar_ros.git(branch: master)

目錄

Overview

ROS Nodes

rplidarNode

Published Topics

Services

Parameters

Device Settings

Launch File Examples

About Slamtec/RoboPeak

Distributor Links

Related Links

Overview

This package provides basic device handling for 2D Laser Scanner RPLIDAR A1/A2.

RPLIDAR is a low cost LIDAR sensor suitable for indoor robotic SLAM application. It provides 360 degree scan field, 5.5hz/10hz rotating frequency with guaranteed 8 meter ranger distance. By means of the high speed image processing engine designed byRoboPeak, the whole cost are reduced greatly, RPLIDAR is the ideal sensor in cost sensitive areas like robots consumer and hardware hobbyist.

RPLIDAR A2performs high speed distance measurement with more than 4000 samples per second,RPLIDAR A1supports 2000 samples per second. For a scan requires 360 samples per rotation, the 10hz scanning frequency can be achieved. Users can customized the scanning frequency from 2hz to 10hz freely by control the speed of the scanning motor. RPLIDAR will self-adapt the current scanning speed.

The driver publishes device-dependentsensor_msgs/LaserScandata.

SLAM based on RPLIDAR and ROS Hector Mapping:

ROS Nodes

rplidarNode

rplidarNode is a driver for RPLIDAR. It reads RPLIDAR raw scan result using RPLIDAR's SDK and convert to ROSLaserScanmessage.

Published Topics

scan(sensor_msgs/LaserScan)

it publishes scan topic from the laser.

Services

stop_motor(std_srvs/Empty)

Call the serive to stop the motor of rplidar.

start_motor(std_srvs/Empty)

Call the service to start the motor of rplidar.

Parameters

serial_port(string, default: /dev/ttyUSB0)

serial port name used in your system.

serial_baudrate(int, default: 115200)

serial port baud rate.

frame_id(string, default: laser)

frame ID for the device.

inverted(bool, default: false)

indicated whether the LIDAR is mounted inverted.

angle_compensate(bool, default: true)

indicated whether the driver needs do angle compensation.

Device Settings

RPLIDAR tutorial

Use following udev rules to set permission for a rplidar device.

KERNEL=="ttyUSB*", MODE="0666"

For fixed rplidar port, you can using the script file to remap the USB port name:

./scripts/create_udev_rules.sh

Once you have change the USB port remap, you can change the launch file about the serial_port value.

Launch File Examples

Check the authority of rplidar's serial-port :

ls -l /dev |grep ttyUSB

Add the authority of write: (such as /dev/ttyUSB0)

sudo chmod 666 /dev/ttyUSB0

Start a rplidar node and view the scan result in rviz.

$ roslaunch rplidar_ros view_rplidar.launch

Start a rplidar node and run rplidar client process to print the raw scan result. 測試雷達

$ roslaunch rplidar_ros rplidar.launch

$ rosrun rplidar_ros rplidarNodeClient

About Slamtec/RoboPeak

RoboPeakis a research & development team in robotics platforms and applications, founded in 2009. Our team members are Software Engineers, Electronics Engineers and New Media Artists that all come from China. We establish our companySlamtecin 2013.

Slamtec focus on providing economically affordable and high-performance solution for robots in auto localization and navigation as well as offering related core sensors. And our major products are low-cost LIDAR sensor(RPLIDAR), SLAM (Simultaneous Localization and Mapping) solution based on LIDAR technology and Zeus General Purpose Robot Platform which can be widely used in business places.

Our vision is to enrich people’s daily-life with the ever-changing development and innovation in robotic technologies.

原文鏈接:http://wiki.ros.org/rplidar

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末火焰,一起剝皮案震驚了整個濱河市兽叮,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌丰泊,老刑警劉巖赦邻,帶你破解...
    沈念sama閱讀 211,639評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件均唉,死亡現(xiàn)場離奇詭異钧大,居然都是意外死亡朽褪,警方通過查閱死者的電腦和手機辱挥,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,277評論 3 385
  • 文/潘曉璐 我一進店門犁嗅,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人晤碘,你說我怎么就攤上這事褂微。” “怎么了园爷?”我有些...
    開封第一講書人閱讀 157,221評論 0 348
  • 文/不壞的土叔 我叫張陵蕊梧,是天一觀的道長。 經(jīng)常有香客問我腮介,道長肥矢,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,474評論 1 283
  • 正文 為了忘掉前任叠洗,我火速辦了婚禮甘改,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘灭抑。我一直安慰自己十艾,他們只是感情好,可當我...
    茶點故事閱讀 65,570評論 6 386
  • 文/花漫 我一把揭開白布腾节。 她就那樣靜靜地躺著忘嫉,像睡著了一般。 火紅的嫁衣襯著肌膚如雪案腺。 梳的紋絲不亂的頭發(fā)上庆冕,一...
    開封第一講書人閱讀 49,816評論 1 290
  • 那天,我揣著相機與錄音劈榨,去河邊找鬼访递。 笑死,一個胖子當著我的面吹牛同辣,可吹牛的內(nèi)容都是我干的拷姿。 我是一名探鬼主播惭载,決...
    沈念sama閱讀 38,957評論 3 408
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼响巢!你這毒婦竟也來了描滔?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,718評論 0 266
  • 序言:老撾萬榮一對情侶失蹤踪古,失蹤者是張志新(化名)和其女友劉穎伴挚,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體灾炭,經(jīng)...
    沈念sama閱讀 44,176評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,511評論 2 327
  • 正文 我和宋清朗相戀三年颅眶,在試婚紗的時候發(fā)現(xiàn)自己被綠了蜈出。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,646評論 1 340
  • 序言:一個原本活蹦亂跳的男人離奇死亡涛酗,死狀恐怖铡原,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情商叹,我是刑警寧澤燕刻,帶...
    沈念sama閱讀 34,322評論 4 330
  • 正文 年R本政府宣布,位于F島的核電站剖笙,受9級特大地震影響卵洗,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜弥咪,卻給世界環(huán)境...
    茶點故事閱讀 39,934評論 3 313
  • 文/蒙蒙 一过蹂、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧聚至,春花似錦酷勺、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,755評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至贷币,卻和暖如春击胜,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背役纹。 一陣腳步聲響...
    開封第一講書人閱讀 31,987評論 1 266
  • 我被黑心中介騙來泰國打工潜的, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人字管。 一個月前我還...
    沈念sama閱讀 46,358評論 2 360
  • 正文 我出身青樓啰挪,卻偏偏與公主長得像信不,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子亡呵,可洞房花燭夜當晚...
    茶點故事閱讀 43,514評論 2 348

推薦閱讀更多精彩內(nèi)容