Skip to content

Commit ed61505

Browse files
committed
release v2.0.0
1 parent 4f899e6 commit ed61505

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4219
-2749
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
Changelog for package rplidar_ros
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
2.0.0 (2021-10-8)
5+
------------------
6+
* Update RPLIDAR SDK to 2.0.0
7+
* [new feature] 1.redesign the skelton of the sdk. 2.support Rplidar S2
8+
* Contributors: tony,WubinXia
49

510
1.10.0 (2019-02-22)
611
------------------

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8.3)
22
project(rplidar_ros)
33

44
set(RPLIDAR_SDK_PATH "./sdk/")
5+
set(CMAKE_BUILD_TYPE "Release")
6+
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
57

68
FILE(GLOB RPLIDAR_SDK_SRC
79
"${RPLIDAR_SDK_PATH}/src/arch/linux/*.cpp"

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ I. Run rplidar node and view in the rviz
2727
roslaunch rplidar_ros view_rplidar.launch (for RPLIDAR A1/A2)
2828
,
2929
roslaunch rplidar_ros view_rplidar_a3.launch (for RPLIDAR A3)
30-
or
30+
,
3131
roslaunch rplidar_ros view_rplidar_s1.launch (for RPLIDAR S1)
32+
or
33+
roslaunch rplidar_ros view_rplidar_s2.launch (for RPLIDAR S2)
3234

3335
You should see rplidar's scan result in the rviz.
3436

@@ -37,14 +39,16 @@ II. Run rplidar node and view using test application
3739
roslaunch rplidar_ros rplidar.launch (for RPLIDAR A1/A2)
3840
,
3941
roslaunch rplidar_ros rplidar_a3.launch (for RPLIDAR A3)
40-
or
42+
,
4143
roslaunch rplidar_ros rplidar_s1.launch (for RPLIDAR S1)
44+
or
45+
roslaunch rplidar_ros rplidar_s2.launch (for RPLIDAR S2)
4246

4347
rosrun rplidar_ros rplidarNodeClient
4448

4549
You should see rplidar's scan result in the console
4650

47-
Notice: the different is serial_baudrate between A1/A2 and A3/S1
51+
Notice: the different is serial_baudrate between A1/A2<115200> , A3/S1<256000> and S2<1000000>
4852

4953
RPLidar frame
5054
=====================================================================

launch/rplidar_s2.launch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<launch>
2+
<node name="rplidarNode" pkg="rplidar_ros" type="rplidarNode" output="screen">
3+
<param name="serial_port" type="string" value="/dev/ttyUSB0"/>
4+
<param name="serial_baudrate" type="int" value="1000000"/>
5+
<param name="frame_id" type="string" value="laser"/>
6+
<param name="inverted" type="bool" value="false"/>
7+
<param name="angle_compensate" type="bool" value="true"/>
8+
</node>
9+
</launch>

launch/rplidar_t1.launch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<launch>
2+
<node name="rplidarNode" pkg="rplidar_ros" type="rplidarNode" output="screen">
3+
<param name="channel_type" type="string" value="udp"/>
4+
<param name="udp_ip" type="string" value="192.168.11.2"/>
5+
<param name="udp_port" type="int" value="8089"/>
6+
<param name="frame_id" type="string" value="laser"/>
7+
<param name="inverted" type="bool" value="false"/>
8+
<param name="angle_compensate" type="bool" value="true"/>
9+
</node>
10+
</launch>

launch/view_rplidar_s2.launch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--
2+
Used for visualising rplidar in action.
3+
4+
It requires rplidar.launch.
5+
-->
6+
<launch>
7+
<include file="$(find rplidar_ros)/launch/rplidar_s2.launch" />
8+
9+
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find rplidar_ros)/rviz/rplidar.rviz" />
10+
</launch>

launch/view_rplidar_t1.launch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--
2+
Used for visualising rplidar in action.
3+
4+
It requires rplidar.launch.
5+
-->
6+
<launch>
7+
<include file="$(find rplidar_ros)/launch/rplidar_t1.launch" />
8+
9+
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find rplidar_ros)/rviz/rplidar.rviz" />
10+
</launch>

sdk/Makefile

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#/*
2+
# * RPLIDAR SDK
3+
# *
4+
# * Copyright (c) 2009 - 2014 RoboPeak Team
5+
# * http://www.robopeak.com
6+
# * Copyright (c) 2014 - 2019 Shanghai Slamtec Co., Ltd.
7+
# * http://www.slamtec.com
8+
# *
9+
# */
10+
#/*
11+
# * Redistribution and use in source and binary forms, with or without
12+
# * modification, are permitted provided that the following conditions are met:
13+
# *
14+
# * 1. Redistributions of source code must retain the above copyright notice,
15+
# * this list of conditions and the following disclaimer.
16+
# *
17+
# * 2. Redistributions in binary form must reproduce the above copyright notice,
18+
# * this list of conditions and the following disclaimer in the documentation
19+
# * and/or other materials provided with the distribution.
20+
# *
21+
# * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
# * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23+
# * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24+
# * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
25+
# * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26+
# * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27+
# * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28+
# * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29+
# * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30+
# * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31+
# * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32+
# *
33+
# */
34+
#
35+
HOME_TREE := ../
36+
37+
MODULE_NAME := $(notdir $(CURDIR))
38+
39+
include $(HOME_TREE)/mak_def.inc
40+
41+
CXXSRC += src/sl_lidar_driver.cpp \
42+
src/hal/thread.cpp\
43+
src/sl_crc.cpp\
44+
src/sl_serial_channel.cpp\
45+
src/sl_tcp_channel.cpp\
46+
src/sl_udp_channel.cpp
47+
48+
C_INCLUDES += -I$(CURDIR)/include -I$(CURDIR)/src
49+
50+
ifeq ($(BUILD_TARGET_PLATFORM),Linux)
51+
CXXSRC += src/arch/linux/net_serial.cpp \
52+
src/arch/linux/net_socket.cpp \
53+
src/arch/linux/timer.cpp
54+
endif
55+
56+
57+
ifeq ($(BUILD_TARGET_PLATFORM),Darwin)
58+
CXXSRC += src/arch/macOS/net_serial.cpp \
59+
src/arch/macOS/net_socket.cpp \
60+
src/arch/macOS/timer.cpp
61+
endif
62+
63+
all: build_sdk
64+
65+
include $(HOME_TREE)/mak_common.inc
66+
67+
clean: clean_sdk

sdk/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 2009 - 2014 RoboPeak Team
2-
Copyright (c) 2014 - 2019 Shanghai Slamtec Co., Ltd.
2+
Copyright (c) 2014 - 2021 Shanghai Slamtec Co., Ltd.
33
All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without
@@ -29,6 +29,6 @@ This folder contains RPLIDAR SDK source code which is provided by RoboPeak.
2929

3030
RoboPeak Website: http://www.robopeak.com
3131
SlamTec HomePage: http://www.slamtec.com
32-
RPLIDAR_SDK_VERSION: 1.10.0
32+
RPLIDAR_SDK_VERSION: 2.0.0
3333
Note: The SDK version may not up-to-date.
3434
rplidar product: http://www.slamtec.com/en/Lidar

sdk/include/rplidar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141

4242
#include "rplidar_driver.h"
4343

44-
#define RPLIDAR_SDK_VERSION "1.12.0"
44+
#define SLAMTEC_LIDAR_SDK_VERSION SL_LIDAR_SDK_VERSION

0 commit comments

Comments
 (0)