Git Product home page Git Product logo

hesai_pandar128_ros's Introduction

HesaiLidar_Pandar128_ROS

This repository includes the ROS Driver for Pandar128 LiDAR sensor manufactured by Hesai Technology.Support UDP protocol version number is 1.3.

Build

Install dependency libraries

$ sudo apt-get update
$ sudo apt install libpcl-dev libpcap-dev libyaml-cpp-dev python-catkin-tools

Install ROS

http://wiki.ros.org/ROS/Installation

Compile

  1. Create ROS Workspace. i.e. rosworkspace. Please note that "Workspace" is defined by your own, but subfolder "src" is required and cannot be renamed
$ mkdir -p rosworkspace/src
$ cd rosworkspace/src
  1. Clone recursively this repository in the current path
  2. Install required dependencies with the help of rosdep
$ cd ..
$ rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
  1. Compile
$ catkin_make -DCMAKE_BUILD_TYPE=Release

Config

 $ cd src/ROS_P128/pandar_pointcloud/launch

open Pandar128_points.launch to set configuration parameters

Reciving data from connected LiDAR: config LiDAR IP address & UDP port, and leave the pcap_file empty

Parameter Default Value
device_ip 192.168.1.201
port 2368
pcap_file

Data source will be read from connected LiDAR when "pcap_file" is set to empty

Reciving data from pcap file: config pcap_file and correction file path

Parameter Value
pcap pcap file path

Data source will be read from pcap file instead of LiDAR once "pcap_file" not empty

Run

Set UDP buffer default size

$sudo sysctl -w net.core.rmem_default=26214400

Enter super user mode

$sudo -s

View the point cloud from connected LiDAR

  1. While in the rosworkspace directory.
$ source devel/setup.bash
$ roslaunch pandar_pointcloud Pandar128_points.launch
  1. The driver will publish a PointCloud2 message in the topic.
/pandar_points
  1. Open Rviz and add display by topic.

  2. Change fixed frame to "Pandar128" to view published point clouds.

View the point cloud from rosbag file

  1. While in the rosworkspace directory.
$ source devel/setup.bash
$ roslaunch pandar_pointcloud Pandar128_points.launch
  1. The driver will publish a raw data packet message in the topic.
/pandar_packets
  1. record raw data rosbag
$rosbag record -b 4096 /pandar_packets
  1. stop roslaunch and rosbag record by "Ctrl + C"

  2. play raw data rosbag

$rosbag play <rosbagfiel>
  1. launch transform_nodelet.launch
$ roslaunch pandar_pointcloud transform_nodelet.launch data_type:=rosbag
  1. Open Rviz and add display by topic.
  2. Change fixed frame to "Pandar128" to view published point clouds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.