Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ROS2
- GUI
- 강화학습
- DevOps
- ROS
- ZED2
- RTK
- GPS
- Visual SLAM
- 인공지능
- Puck LITE
- 오블완
- Gazebo
- C++
- 터틀심
- turtlebot3
- 젯슨
- Simulation
- WSL2
- 자율주행
- QT
- turtlesim
- 자율탐사
- WSL
- Jetson
- 로봇
- U-blox
- ubuntu
- SLAM
- 티스토리챌린지
Archives
- Today
- Total
직관적인느낌
Lidar - YDLidar G2 본문
728x90
반응형
Setup
- sourceYDLidar-SDK/how_to_build_and_install.md at master · YDLIDAR/YDLidar-SDK
- https://github.com/YDLIDAR/ydlidar_ros_driver
cd catkin_ws/src
git clone <https://github.com/YDLIDAR/ydlidar_ros_driver.git>
catkin_make
source ./devel/setup.sh
echo "source ~/ycatkin_ws/devel/setup.bash" >> ~/.bashrc # if alreay exist then pass
source ~/.bashrc
echo $ROS_PACKAGE_PATH
# Verify that your package path is set, echo the ROS_PACKAGE_PATH variable
#[Optional]
chmod 0777 src/ydlidar_ros_driver/startup/*
sudo sh src/ydlidar_ros_driver/startup/initenv.sh
Run the ydlidar_ros_driver
roslaunch ydlidar_ros_driver G2.launch
RVIZ View Scan Results
roslaunch ydlidar_ros_driver lidar_view.launch
Angle range setting
- G2.launch
<launch>
<node name="ydlidar_lidar_publisher" pkg="ydlidar_ros_driver" type="ydlidar_ros_driver_node" output="screen" respawn="false" >
<!-- string property -->
<param name="port" type="string" value="/dev/ydlidar"/>
<param name="frame_id" type="string" value="laser_frame"/>
<param name="ignore_array" type="string" value=""/>
<!-- int property -->
<param name="baudrate" type="int" value="230400"/>
<!-- 0:TYPE_TOF, 1:TYPE_TRIANGLE, 2:TYPE_TOF_NET -->
<param name="lidar_type" type="int" value="1"/>
<!-- 0:YDLIDAR_TYPE_SERIAL, 1:YDLIDAR_TYPE_TCP -->
<param name="device_type" type="int" value="0"/>
<param name="sample_rate" type="int" value="5"/>
<param name="abnormal_check_count" type="int" value="4"/>
<!-- bool property -->
<param name="resolution_fixed" type="bool" value="true"/>
<param name="auto_reconnect" type="bool" value="true"/>
<param name="reversion" type="bool" value="true"/>
<param name="inverted" type="bool" value="true"/>
<param name="isSingleChannel" type="bool" value="false"/>
<param name="intensity" type="bool" value="true"/>
<param name="support_motor_dtr" type="bool" value="false"/>
<param name="invalid_range_is_inf" type="bool" value="false"/>
<param name="point_cloud_preservative" type="bool" value="false"/>
<!-- float property -->
<param name="angle_min" type="double" value="-180" />
<param name="angle_max" type="double" value="180" />
<param name="range_min" type="double" value="0.1" />
<param name="range_max" type="double" value="16.0" />
<param name="frequency" type="double" value="10.0"/>
</node>
<node pkg="tf" type="static_transform_publisher" name="base_link_to_laser4"
args="0.0 0.0 0.2 0.0 0.0 0.0 /base_footprint /laser_frame 40" />
</launch>
728x90
반응형
'공학 > 시스템 설치 및 설정' 카테고리의 다른 글
ZED Camera - Setup with Jetson Xavier(nano) (0) | 2023.03.05 |
---|---|
리눅스 터미널 창 분리, 분할 하기 (0) | 2023.03.05 |
Lidar - RPLidar s1 (0) | 2023.03.05 |
리눅스/우분투 녹화 프로그램, 젯슨에서 화면 녹화하기 (0) | 2023.03.05 |
Linux/Ubuntu(jetson)에서 원격 접속하기 (0) | 2023.03.05 |