Skip to content

Commit b6ff7d1

Browse files
committed
optimize framing performance
1 parent 852c147 commit b6ff7d1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.2.4]
6+
### Fixed
7+
- Optimize framing performance
8+
59
## [1.2.3]
610
### Fixed
711
- Optimize framing logic and reduce CPU usage

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Livox ROS Driver 2 is the 2nd-generation driver package used to connect LiDAR products produced by Livox, applicable for ROS (noetic recommended) and ROS2 (foxy or humble recommended).
44

5+
**Note :**
6+
7+
As a debugging tool, Livox ROS Driver is not recommended for mass production but limited to test scenarios. You should optimize the code based on the original source to meet your various needs.
8+
59
## 1. Preparation
610

711
### 1.1 OS requirements

src/comm/pub_handler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ void PubHandler::RawDataProcess() {
239239
}
240240
raw_data = raw_packet_queue_.front();
241241
raw_packet_queue_.pop_front();
242-
if (raw_packet_queue_.size() < 3) { // reduce CPU usage
243-
std::this_thread::sleep_for(std::chrono::microseconds(50));
244-
}
245242
}
246243
uint32_t id = 0;
247244
GetLidarId(raw_data.lidar_type, raw_data.handle, id);

0 commit comments

Comments
 (0)