YUJIN ROBOT YRL3V2 Series 3D Laser Scanner User Guide

June 8, 2024
YUJIN ROBOT

YUJIN ROBOT YRL3V2 Series 3D Laser Scanner

All logos and trademarks indicated in this document are legally protected as part of Yujin Robot’s intellectual property rights. No part of this document may be reproduced in any form without the explicit written consent of Yujin Robot. The appearance
and specifications of the product are subject to change without notice for product improvement.

Copyright and Disclaimer

The information in this guide is subject to change without notice during the product’s life cycle. The printed version of the guide is updated periodically. Some details may be omitted or inaccurate when compared to current product information. Even in the hypothetical event that Yujin Robot was aware of the possibility of any damages ahead of time, Yujin Robot assumes no responsibility for errors, omissions, or damages that may arise from the information contained in this document.
© 2022 YUJIN ROBOT Co., Ltd. All Rights Reserved.

Introduction

Yujin Robot provides a driver package for YUJIN LiDAR. You can install and use the driver package in Ubuntu OS.

  • Ubuntu is an open-source OS.
  • How to enter commands in Ubuntu OS: Run “ctrl +alt + t” on the desktop to enable the Terminal window and enter the desired command.
    Note: This document is prepared for users of Ubuntu 20.04.

Installing the driver package

The driver package folder “yujinrobot_yrldriver” contains the following items:

  • build (Create a new “build” folder.)
  • CMake
  • yujinrobot_yrldriver
  • CMakeLists.txt

Creating a build folder

Create a new folder named “build”.

  1. Create a new “build” folder under the “yujinrobot_yrldriver” folder.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-1

  2. Launch the Terminal window in the newly created “build” folder.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-2

  3. Enter the command to set up the compile preferences.

    • Command: CMake…YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-3
      YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-4
  4. Check if all of the files below are created in the “build” folder.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-5

  5. Enter the command to compile the source code.

    • Command: make installYUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-6
      YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-7
  6. Check if an additional file has been created in the “build” folder as shown below. The ”lib_yujinrobot_yrldriver” folder contains a test execution file and a driver library file.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-8

Running the driver package

Setting up the library path

  1. Launch the Terminal window and create a configuration file to set up the library path. Enter the command below.
    • Command: ~$ sudo gedit /etc/ld.so.conf.d/ [File name].conf
    • [File name]: File name set by the userYUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-22
  2. In the file created, enter the [User’s absolute path] and [Library file path] as shown below.
    • [User’s absolute path]: File path set by the user
    • [Library file path]: yujinrobot_yrldriver/build/lib_yujinrobot_yrldriver/libYUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-23
  3. Configure the shared library cache again. Enter the command below.
    • Command: sudo ldconfigYUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-24

Running the test code

  • Provided test code:
    • test_yrl_library
    • test_IP_change
    • test_mode_change
    • test_recover_network
  • test_yrl_library run command: [executable file name] [IP address]
    • example) ./test_yrl_library 192.168.1.250
    • test_IP_change run command: [executable file name] [current IP address] [new IP address]
    • example) ./test_IP_change 192.168.1.250 192.168.11
    • test_mode_change run command: [executable file name] [IP address] [mode]
    • example) ./test_mode_change 192.168.1.250 1
    • test_recover_network run command: [executable file name] [IP address]
    • example) ./test_recover_network 192.168.1.250
  1. Go to the folder that contains the “test code execution file”.
    • yujinrobot_yrldriver/build/lib_yujinrobot_yrldriver/bin/yujinrobot_yrldriverYUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-12
  2. Launch the Terminal window and enter the command to run the test code.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-25

Using the test code

Yujin Robot provides a sample test code “test_yrl_library.cpp” for using the driver.

  • File path: yujinrobot_yrldriver/yujinrobot_yrldriver/src/test/ test_yrl_library.cpp

The main () in the “test_yrl_library.cpp” provides the function call order as an annotation.

  1. Create the driver object.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-14

  2. Enter LiDAR’s IP address.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-15

  3. Establish TCP connection with LiDAR using the IP address.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-16

  4. You can read and modify the processing parameters for data input/output.YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-17
    YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-18
    YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-fig-19

  5. Functions that output sensor values are specified as annotations. One of the following two functions will be used:

    • void GetCartesianOutputsWithIntensity() : Get the intensity and coordinates of the point cloud.
    • void GetSphericalOutputsWithIntensity(): Get the intensity, range, horizontal angle, and vertical angle of the point cloud.
  6. While running the code, the Network Recovery function is provided in the following cases:

    • When LiDAR is turned off
    • When LiDAR is disconnected from Ethernet
    • When connecting another LiDAR

You can use the Recovery Network function of the sample test code “test_recover_network.cpp”. YUJIN-ROBOT-YRL3V2-Series-3D-Laser-Scanner-
fig-21

Yujin Robot Co., Ltd.
Harmony-ro 187 beon-gil 33, Yeonsu-gu, Incheon (Songdo-dong) Phone +82 32 550 2300 Fax +82 32 550 2301

www.yujinrobot.com

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

YUJIN ROBOT User Manuals

Related Manuals