Skip to content

Commit

Permalink
release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WubinXia committed Oct 27, 2021
1 parent 4f899e6 commit b0aa896
Show file tree
Hide file tree
Showing 47 changed files with 4,219 additions and 2,749 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Changelog for package rplidar_ros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.10.0 (2021-10-27)
------------------
* Update RPLIDAR SDK to 2.0.0
* [new feature] 1.redesign the skelton of the sdk. 2.support Rplidar S2
* Contributors: tony,WubinXia

1.10.0 (2019-02-22)
------------------
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8.3)
project(rplidar_ros)

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

FILE(GLOB RPLIDAR_SDK_SRC
"${RPLIDAR_SDK_PATH}/src/arch/linux/*.cpp"
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ I. Run rplidar node and view in the rviz
roslaunch rplidar_ros view_rplidar.launch (for RPLIDAR A1/A2)
,
roslaunch rplidar_ros view_rplidar_a3.launch (for RPLIDAR A3)
or
,
roslaunch rplidar_ros view_rplidar_s1.launch (for RPLIDAR S1)
or
roslaunch rplidar_ros view_rplidar_s2.launch (for RPLIDAR S2)

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

Expand All @@ -37,14 +39,16 @@ II. Run rplidar node and view using test application
roslaunch rplidar_ros rplidar.launch (for RPLIDAR A1/A2)
,
roslaunch rplidar_ros rplidar_a3.launch (for RPLIDAR A3)
or
,
roslaunch rplidar_ros rplidar_s1.launch (for RPLIDAR S1)
or
roslaunch rplidar_ros rplidar_s2.launch (for RPLIDAR S2)

rosrun rplidar_ros rplidarNodeClient

You should see rplidar's scan result in the console

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

RPLidar frame
=====================================================================
Expand Down
9 changes: 9 additions & 0 deletions launch/rplidar_s2.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<launch>
<node name="rplidarNode" pkg="rplidar_ros" type="rplidarNode" output="screen">
<param name="serial_port" type="string" value="/dev/ttyUSB0"/>
<param name="serial_baudrate" type="int" value="1000000"/>
<param name="frame_id" type="string" value="laser"/>
<param name="inverted" type="bool" value="false"/>
<param name="angle_compensate" type="bool" value="true"/>
</node>
</launch>
10 changes: 10 additions & 0 deletions launch/rplidar_t1.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<launch>
<node name="rplidarNode" pkg="rplidar_ros" type="rplidarNode" output="screen">
<param name="channel_type" type="string" value="udp"/>
<param name="udp_ip" type="string" value="192.168.11.2"/>
<param name="udp_port" type="int" value="8089"/>
<param name="frame_id" type="string" value="laser"/>
<param name="inverted" type="bool" value="false"/>
<param name="angle_compensate" type="bool" value="true"/>
</node>
</launch>
10 changes: 10 additions & 0 deletions launch/view_rplidar_s2.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Used for visualising rplidar in action.
It requires rplidar.launch.
-->
<launch>
<include file="$(find rplidar_ros)/launch/rplidar_s2.launch" />

<node name="rviz" pkg="rviz" type="rviz" args="-d $(find rplidar_ros)/rviz/rplidar.rviz" />
</launch>
10 changes: 10 additions & 0 deletions launch/view_rplidar_t1.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Used for visualising rplidar in action.
It requires rplidar.launch.
-->
<launch>
<include file="$(find rplidar_ros)/launch/rplidar_t1.launch" />

<node name="rviz" pkg="rviz" type="rviz" args="-d $(find rplidar_ros)/rviz/rplidar.rviz" />
</launch>
67 changes: 67 additions & 0 deletions sdk/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#/*
# * RPLIDAR SDK
# *
# * Copyright (c) 2009 - 2014 RoboPeak Team
# * http://www.robopeak.com
# * Copyright (c) 2014 - 2019 Shanghai Slamtec Co., Ltd.
# * http://www.slamtec.com
# *
# */
#/*
# * Redistribution and use in source and binary forms, with or without
# * modification, are permitted provided that the following conditions are met:
# *
# * 1. Redistributions of source code must retain the above copyright notice,
# * this list of conditions and the following disclaimer.
# *
# * 2. Redistributions in binary form must reproduce the above copyright notice,
# * this list of conditions and the following disclaimer in the documentation
# * and/or other materials provided with the distribution.
# *
# * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# *
# */
#
HOME_TREE := ../

MODULE_NAME := $(notdir $(CURDIR))

include $(HOME_TREE)/mak_def.inc

CXXSRC += src/sl_lidar_driver.cpp \
src/hal/thread.cpp\
src/sl_crc.cpp\
src/sl_serial_channel.cpp\
src/sl_tcp_channel.cpp\
src/sl_udp_channel.cpp

C_INCLUDES += -I$(CURDIR)/include -I$(CURDIR)/src

ifeq ($(BUILD_TARGET_PLATFORM),Linux)
CXXSRC += src/arch/linux/net_serial.cpp \
src/arch/linux/net_socket.cpp \
src/arch/linux/timer.cpp
endif


ifeq ($(BUILD_TARGET_PLATFORM),Darwin)
CXXSRC += src/arch/macOS/net_serial.cpp \
src/arch/macOS/net_socket.cpp \
src/arch/macOS/timer.cpp
endif

all: build_sdk

include $(HOME_TREE)/mak_common.inc

clean: clean_sdk
4 changes: 2 additions & 2 deletions sdk/README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2009 - 2014 RoboPeak Team
Copyright (c) 2014 - 2019 Shanghai Slamtec Co., Ltd.
Copyright (c) 2014 - 2021 Shanghai Slamtec Co., Ltd.
All rights reserved.

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

RoboPeak Website: http://www.robopeak.com
SlamTec HomePage: http://www.slamtec.com
RPLIDAR_SDK_VERSION: 1.10.0
RPLIDAR_SDK_VERSION: 2.0.0
Note: The SDK version may not up-to-date.
rplidar product: http://www.slamtec.com/en/Lidar
2 changes: 1 addition & 1 deletion sdk/include/rplidar.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@

#include "rplidar_driver.h"

#define RPLIDAR_SDK_VERSION "1.12.0"
#define SLAMTEC_LIDAR_SDK_VERSION SL_LIDAR_SDK_VERSION
Loading

0 comments on commit b0aa896

Please sign in to comment.