-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
4,219 additions
and
2,749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.