主页
产品 产品
新闻动态
购买渠道
下载与支持
关于我们
加入我们
联系我们
  • 中文 |
  • Eng
  • news title separator How to Build a Multi-Touch Application Using RPLIDAR

    This guide explains how to build a multi-touch application based on an RPLIDAR. The document focuses on actual operation steps, so you can follow the process directly and reproduce the demo successfully.

    1.Download the Required Files

    Frame grabber download link:SLAMTEC School_Sensing Sensor Category
    Download the attachment package:
    The package includes:
    • Demo project files
    • Multi-touch SDK
    • Calibration tool
    • Server and client demo programs

    2.Important Notes Before You Start

    Please read these notes carefully before following the steps.
    • This document does NOT support the RPLIDAR A1 series
    • The SDK currently supports Visual Studio 2010 only
    • The demo is based on a Windows environment
    • The compressed package already contains compiled files
    If you modify the SDK later, you will need to rebuild the project again.

    3.Open the Project

    Open the following directory inside the downloaded package:
    demo_TUIO\multitouch_server\multitouch_Server\workspaces\vc10
    Then open the file:
    multi_touch_server.sln
    multi-touch step 1

    4.Rebuild the Solution

    After opening the project in Visual Studio 2010:
    1.Click Build → Rebuild Solution
    2.Wait until the compilation is completed
    After rebuilding, go to the following directory:
    ...\sdk_project\multiTouch_sdk\Debug\output
    Copy this file:
    multiTouch_sdk.dll
    Then paste it into the following two folders:
    ...\vc10\calibration_project\bin
    ...\vc10\server_project\bin
    multi-touch step 2

    Note

    The compressed package already contains the compiled DLL and it has already been copied to the correct directories.
    You only need to repeat the steps above if you modify the multiTouch SDK.

    5.Connect the RPLIDAR and Start the Calibration Tool

    After connecting the RPLIDAR sensor to your computer, run the calibration program located at:
    ...\vc10\calibration_project\bin\calibration_app.exe
    Once the program starts:
    The LiDAR will begin rotating
    You will see scanning points displayed in the calibration window
    multi-touch step 3

    6.Load the Configuration File

    In the calibration program:
    1.Click Load Configuration in the top-left corner
    2.Select the configuration file:
    ...\vc10\server_project\multi_touch.json
    This configuration file includes:
    • Client IP address
    • Port settings
    • Touch area size
    You may adjust the Touch Area if necessary. It is recommended not to modify other parameters unless required.
    multi-touch step 4

    7.Adjust the Touch Area

    After loading the configuration:
    • The LiDAR will start scanning
    • Laser points will appear in the calibration window
    • A white dashed rectangle will be visible
    You can drag the white rectangle to adjust:
    • Touch area size
    • Touch area position
    After finishing the adjustment:
    1.Click Save Configuration
    2.Close the calibration application
    multi-touch step 5

    8.Start the Client Program

    Open the following directory:
    client_4444
    Run:
    TuioDemo.exe
    The client program includes:
    • A console window
    • A graphical interface
    After the server starts, the console will continuously display:
    addBlob
    removeBlob
    The GUI window will also show the detected touch points (blobs).
    multi-touch step 6The image shows that client_4444, which is the client with port 4444 in the configuration file, has been started.

    9.Start the Server

    Now start the server program.
    Open the following directory:
    ...\vc10\server_project\bin
    Run:
    MultiTouch_Server.exe

    10.Verify That the System Is Working

    If everything is working correctly:
    • The client console will continuously print:
      • addBlob
      • removeBlob
    • The client GUI window will display touch points in real time
    The example shown in the document uses the client_4444 folder, which corresponds to port 4444 in the configuration file.
    multi-touch step 7You can also view the demo_TUIO.MOV file in the compressed package to see the running effect.

    11.When Do You Need to Rebuild the Project?

    You only need to rebuild the project if:
    • You modify the multiTouch SDK
    • You change the SDK source files
    • The DLL file is missing
    Otherwise, you can directly run the calibration tool, client, and server from the package.

    Summary

    By following the steps above, you can:
    • Connect an RPLIDAR
    • Calibrate the touch area
    • Start the client and server
    • Detect multi-touch points in real time

    关键字:Lidar,Industry Knowledge

    top
    FaceTime Icon