Skip to content

Commit

Permalink
Fix compressed message indexing bug. (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Jongkuk Lim <limjk@jmarple.ai>
  • Loading branch information
JeiKeiLim and Jongkuk Lim authored Nov 22, 2023
1 parent 66337c4 commit 77ef3d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.0.2)
project(flexxlam_sdk
VERSION 0.0.1
VERSION 0.0.2
LANGUAGES CXX
)

Expand Down
2 changes: 1 addition & 1 deletion src/flexxlam_msgs/PointCloud2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PointCloud2::PointCloud2(const std::vector<uint8_t> &bytes) {

if (compression_flag) {
uint32_t original_length =
to_int(vector<uint8_t>(bytes.begin() + 1, bytes.begin() + idx + 5));
to_int(vector<uint8_t>(bytes.begin() + 1, bytes.begin() + 5));
bytes_ptr = std::make_shared<vector<uint8_t>>(
decompress_bytes(vector<uint8_t>(bytes.begin() + 5, bytes.end()),
/*original_size=*/original_length));
Expand Down

0 comments on commit 77ef3d4

Please sign in to comment.