hku-mars 时间同步-MID360驱动修改
资源文件列表:

livox_ros_driver2/
livox_ros_driver2/package.xml 3.32KB
livox_ros_driver2/.gitignore 37B
livox_ros_driver2/CHANGELOG.md 1.54KB
livox_ros_driver2/CMakeLists.txt 10.71KB
livox_ros_driver2/LICENSE.txt 19.46KB
livox_ros_driver2/README.md 12.83KB
livox_ros_driver2/build.sh 1.6KB
livox_ros_driver2/package_ROS1.xml 3.32KB
livox_ros_driver2/package_ROS2.xml 1.1KB
livox_ros_driver2/.git/
livox_ros_driver2/.git/config 310B
livox_ros_driver2/.git/description 73B
livox_ros_driver2/.git/index 9.55KB
livox_ros_driver2/.git/HEAD 23B
livox_ros_driver2/.git/packed-refs 570B
livox_ros_driver2/.git/info/
livox_ros_driver2/.git/info/exclude 240B
livox_ros_driver2/.git/branches/
livox_ros_driver2/.git/hooks/
livox_ros_driver2/.git/hooks/prepare-commit-msg.sample 1.46KB
livox_ros_driver2/.git/hooks/pre-applypatch.sample 424B
livox_ros_driver2/.git/hooks/update.sample 3.53KB
livox_ros_driver2/.git/hooks/fsmonitor-watchman.sample 3.01KB
livox_ros_driver2/.git/hooks/pre-merge-commit.sample 416B
livox_ros_driver2/.git/hooks/pre-receive.sample 544B
livox_ros_driver2/.git/hooks/pre-rebase.sample 4.78KB
livox_ros_driver2/.git/hooks/applypatch-msg.sample 478B
livox_ros_driver2/.git/hooks/pre-commit.sample 1.6KB
livox_ros_driver2/.git/hooks/pre-push.sample 1.32KB
livox_ros_driver2/.git/hooks/commit-msg.sample 896B
livox_ros_driver2/.git/hooks/post-update.sample 189B
livox_ros_driver2/.git/refs/
livox_ros_driver2/.git/refs/heads/
livox_ros_driver2/.git/refs/heads/master 41B
livox_ros_driver2/.git/refs/tags/
livox_ros_driver2/.git/refs/remotes/
livox_ros_driver2/.git/refs/remotes/origin/
livox_ros_driver2/.git/refs/remotes/origin/HEAD 32B
livox_ros_driver2/.git/objects/
livox_ros_driver2/.git/objects/pack/
livox_ros_driver2/.git/objects/pack/pack-490f3b9ceb677a487c693aeb08474d9595b0ce2f.pack 2.36MB
livox_ros_driver2/.git/objects/pack/pack-490f3b9ceb677a487c693aeb08474d9595b0ce2f.idx 43.68KB
livox_ros_driver2/.git/objects/info/
livox_ros_driver2/.git/logs/
livox_ros_driver2/.git/logs/HEAD 191B
livox_ros_driver2/.git/logs/refs/
livox_ros_driver2/.git/logs/refs/remotes/
livox_ros_driver2/.git/logs/refs/remotes/origin/
livox_ros_driver2/.git/logs/refs/remotes/origin/HEAD 191B
livox_ros_driver2/.git/logs/refs/heads/
livox_ros_driver2/.git/logs/refs/heads/master 191B
livox_ros_driver2/3rdparty/
livox_ros_driver2/3rdparty/rapidjson/
livox_ros_driver2/3rdparty/rapidjson/allocators.h 10.19KB
livox_ros_driver2/3rdparty/rapidjson/cursorstreamwrapper.h 2.18KB
livox_ros_driver2/3rdparty/rapidjson/document.h 115.2KB
livox_ros_driver2/3rdparty/rapidjson/encodedstream.h 10.38KB
livox_ros_driver2/3rdparty/rapidjson/encodings.h 29.13KB
livox_ros_driver2/3rdparty/rapidjson/filereadstream.h 2.89KB
livox_ros_driver2/3rdparty/rapidjson/filewritestream.h 3KB
livox_ros_driver2/3rdparty/rapidjson/fwd.h 4.02KB
livox_ros_driver2/3rdparty/rapidjson/istreamwrapper.h 4.02KB
livox_ros_driver2/3rdparty/rapidjson/license.txt 5.03KB
livox_ros_driver2/3rdparty/rapidjson/memorybuffer.h 2.51KB
livox_ros_driver2/3rdparty/rapidjson/memorystream.h 2.61KB
livox_ros_driver2/3rdparty/rapidjson/ostreamwrapper.h 2.29KB
livox_ros_driver2/3rdparty/rapidjson/pointer.h 58.82KB
livox_ros_driver2/3rdparty/rapidjson/prettywriter.h 10.01KB
livox_ros_driver2/3rdparty/rapidjson/rapidjson.h 23.72KB
livox_ros_driver2/3rdparty/rapidjson/reader.h 87.2KB
livox_ros_driver2/3rdparty/rapidjson/schema.h 98.89KB
livox_ros_driver2/3rdparty/rapidjson/stream.h 6.54KB
livox_ros_driver2/3rdparty/rapidjson/stringbuffer.h 3.89KB
livox_ros_driver2/3rdparty/rapidjson/writer.h 25.56KB
livox_ros_driver2/3rdparty/rapidjson/error/
livox_ros_driver2/3rdparty/rapidjson/error/en.h 3.65KB
livox_ros_driver2/3rdparty/rapidjson/error/error.h 6.32KB
livox_ros_driver2/3rdparty/rapidjson/internal/
livox_ros_driver2/3rdparty/rapidjson/internal/biginteger.h 8.1KB
livox_ros_driver2/3rdparty/rapidjson/internal/clzll.h 1.99KB
livox_ros_driver2/3rdparty/rapidjson/internal/diyfp.h 11.12KB
livox_ros_driver2/3rdparty/rapidjson/internal/dtoa.h 7.54KB
livox_ros_driver2/3rdparty/rapidjson/internal/ieee754.h 2.92KB
livox_ros_driver2/3rdparty/rapidjson/internal/itoa.h 9.05KB
livox_ros_driver2/3rdparty/rapidjson/internal/meta.h 6.57KB
livox_ros_driver2/3rdparty/rapidjson/internal/pow10.h 3.86KB
livox_ros_driver2/3rdparty/rapidjson/internal/regex.h 22.69KB
livox_ros_driver2/3rdparty/rapidjson/internal/stack.h 6.65KB
livox_ros_driver2/3rdparty/rapidjson/internal/strfunc.h 2.13KB
livox_ros_driver2/3rdparty/rapidjson/internal/strtod.h 8.45KB
livox_ros_driver2/3rdparty/rapidjson/internal/swap.h 1.39KB
livox_ros_driver2/3rdparty/rapidjson/msinttypes/
livox_ros_driver2/3rdparty/rapidjson/msinttypes/inttypes.h 7.64KB
livox_ros_driver2/3rdparty/rapidjson/msinttypes/stdint.h 8.94KB
livox_ros_driver2/cmake/
livox_ros_driver2/cmake/version.cmake 990B
livox_ros_driver2/config/
livox_ros_driver2/config/HAP_config.json 863B
livox_ros_driver2/config/MID360_config.json 883B
livox_ros_driver2/config/display_point_cloud_ROS1.rviz 5.52KB
livox_ros_driver2/config/display_point_cloud_ROS2.rviz 4.72KB
livox_ros_driver2/config/mixed_HAP_MID360_config.json 1.63KB
livox_ros_driver2/launch_ROS1/
livox_ros_driver2/launch_ROS1/msg_HAP.launch 1.7KB
livox_ros_driver2/launch_ROS1/msg_MID360.launch 1.7KB
livox_ros_driver2/launch_ROS1/msg_mixed.launch 1.71KB
livox_ros_driver2/launch_ROS1/rviz_HAP.launch 1.88KB
livox_ros_driver2/launch_ROS1/rviz_MID360.launch 1.89KB
livox_ros_driver2/launch_ROS1/rviz_mixed.launch 1.9KB
livox_ros_driver2/launch_ROS2/
livox_ros_driver2/launch_ROS2/msg_HAP_launch.py 1.92KB
livox_ros_driver2/launch_ROS2/msg_MID360_launch.py 1.86KB
livox_ros_driver2/launch_ROS2/rviz_HAP_launch.py 2.13KB
livox_ros_driver2/launch_ROS2/rviz_MID360_launch.py 2.14KB
livox_ros_driver2/launch_ROS2/rviz_mixed.py 2.15KB
livox_ros_driver2/msg/
livox_ros_driver2/msg/CustomMsg.msg 341B
livox_ros_driver2/msg/CustomPoint.msg 353B
livox_ros_driver2/src/
livox_ros_driver2/src/driver_node.cpp 1.45KB
livox_ros_driver2/src/driver_node.h 2.42KB
livox_ros_driver2/src/lddc.cpp 23.52KB
livox_ros_driver2/src/lddc.h 5.83KB
livox_ros_driver2/src/lds.cpp 5.81KB
livox_ros_driver2/src/lds.h 2.63KB
livox_ros_driver2/src/lds_lidar.cpp 6.34KB
livox_ros_driver2/src/lds_lidar.h 2.67KB
livox_ros_driver2/src/livox_ros_driver2.cpp 7.71KB
livox_ros_driver2/src/call_back/
livox_ros_driver2/src/call_back/lidar_common_callback.cpp 2.22KB
livox_ros_driver2/src/call_back/lidar_common_callback.h 1.54KB
livox_ros_driver2/src/call_back/livox_lidar_callback.cpp 15KB
livox_ros_driver2/src/call_back/livox_lidar_callback.h 3.22KB
livox_ros_driver2/src/comm/
livox_ros_driver2/src/comm/cache_index.cpp 3.77KB
livox_ros_driver2/src/comm/cache_index.h 2.01KB
livox_ros_driver2/src/comm/comm.cpp 2.16KB
livox_ros_driver2/src/comm/comm.h 8.38KB
livox_ros_driver2/src/comm/ldq.cpp 4.57KB
livox_ros_driver2/src/comm/ldq.h 2.28KB
livox_ros_driver2/src/comm/lidar_imu_data_queue.cpp 2.2KB
livox_ros_driver2/src/comm/lidar_imu_data_queue.h 2.57KB
livox_ros_driver2/src/comm/pub_handler.cpp 15.74KB
livox_ros_driver2/src/comm/pub_handler.h 4.36KB
livox_ros_driver2/src/comm/semaphore.cpp 1.44KB
livox_ros_driver2/src/comm/semaphore.h 1.58KB
livox_ros_driver2/src/include/
livox_ros_driver2/src/include/livox_ros_driver2.h 1.69KB
livox_ros_driver2/src/include/ros1_headers.h 2.16KB
livox_ros_driver2/src/include/ros2_headers.h 2.42KB
livox_ros_driver2/src/include/ros_headers.h 1.31KB
livox_ros_driver2/src/parse_cfg_file/
livox_ros_driver2/src/parse_cfg_file/parse_cfg_file.cpp 2.33KB
livox_ros_driver2/src/parse_cfg_file/parse_cfg_file.h 1.68KB
livox_ros_driver2/src/parse_cfg_file/parse_livox_lidar_cfg.cpp 5.17KB
livox_ros_driver2/src/parse_cfg_file/parse_livox_lidar_cfg.h 2KB
资源介绍:
hku-mars 时间同步-MID360驱动修改Publish pointcloud2 format data
Autoload rviz | | msg_HAP.launch | Connect to HAP LiDAR device
Publish livox customized pointcloud data| | rviz_MID360.launch | Connect to MID360 LiDAR device
Publish pointcloud2 format data
Autoload rviz| | msg_MID360.launch | Connect to MID360 LiDAR device
Publish livox customized pointcloud data | | rviz_mixed.launch | Connect to HAP and MID360 LiDAR device
Publish pointcloud2 format data
Autoload rviz| | msg_mixed.launch | Connect to HAP and MID360 LiDAR device
Publish livox customized pointcloud data | ### 3.2 Livox ros driver 2 internal main parameter configuration instructions All internal parameters of Livox_ros_driver2 are in the launch file. Below are detailed descriptions of the three commonly used parameters : | Parameter | Detailed description | Default | | ------------ | ------------------------------------------------------------ | ------- | | publish_freq | Set the frequency of point cloud publish
Floating-point data type, recommended values 5.0, 10.0, 20.0, 50.0, etc. The maximum publish frequency is 100.0 Hz.| 10.0 | | multi_topic | If the LiDAR device has an independent topic to publish pointcloud data
0 -- All LiDAR devices use the same topic to publish pointcloud data
1 -- Each LiDAR device has its own topic to publish point cloud data | 0 | | xfer_format | Set pointcloud format
0 -- Livox pointcloud2(PointXYZRTLT) pointcloud format
1 -- Livox customized pointcloud format
2 -- Standard pointcloud2 (pcl :: PointXYZI) pointcloud format in the PCL library (just for ROS) | 0 | **Note :** Other parameters not mentioned in this table are not suggested to be changed unless fully understood. ***Livox_ros_driver2 pointcloud data detailed description :*** 1. Livox pointcloud2 (PointXYZRTLT) point cloud format, as follows : ```c float32 x # X axis, unit:m float32 y # Y axis, unit:m float32 z # Z axis, unit:m float32 intensity # the value is reflectivity, 0.0~255.0 uint8 tag # livox tag uint8 line # laser number in lidar float64 timestamp # Timestamp of point ``` **Note :** The number of points in the frame may be different, but each point provides a timestamp. 2. Livox customized data package format, as follows : ```c std_msgs/Header header # ROS standard message header uint64 timebase # The time of first point uint32 point_num # Total number of pointclouds uint8 lidar_id # Lidar device id number uint8[3] rsvd # Reserved use CustomPoint[] points # Pointcloud data ``` Customized Point Cloud (CustomPoint) format in the above customized data package : ```c uint32 offset_time # offset time relative to the base time float32 x # X axis, unit:m float32 y # Y axis, unit:m float32 z # Z axis, unit:m uint8 reflectivity # reflectivity, 0~255 uint8 tag # livox tag uint8 line # laser number in lidar ``` 3. The standard pointcloud2 (pcl :: PointXYZI) format in the PCL library (only ROS can publish): Please refer to the pcl :: PointXYZI data structure in the point_types.hpp file of the PCL library. ## 4. LiDAR config LiDAR Configurations (such as ip, port, data type... etc.) can be set via a json-style config file. Config files for single HAP, Mid360 and mixed-LiDARs are in the "config" folder. The parameter naming *'user_config_path'* in launch files indicates such json file path. 1. Follow is a configuration example for HAP LiDAR (located in config/HAP_config.json): ```json { "lidar_summary_info" : { "lidar_type": 8 # protocol type index, please don't revise this value }, "HAP": { "device_type" : "HAP", "lidar_ipaddr": "", "lidar_net_info" : { "cmd_data_port": 56000, # command port "push_msg_port": 0, "point_data_port": 57000, "imu_data_port": 58000, "log_data_port": 59000 }, "host_net_info" : { "cmd