Skip to content

Commit

Permalink
Add point time stamp of packet if no table is available
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasemter committed Jul 11, 2024
1 parent a714578 commit 09536ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion velodyne_pointcloud/src/lib/calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Calibration::Calibration(const std::string & calibration_file)
std::ifstream fin(calibration_file.c_str());

if (!fin.is_open()) {
throw std::runtime_error("Failed to open calibration file");
throw std::runtime_error("Failed to open calibration file " + calibration_file);
}

try {
Expand Down
2 changes: 2 additions & 0 deletions velodyne_pointcloud/src/lib/rawdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ void RawData::unpack(
if (timing_offsets_.size()) {
time = timing_offsets_[i][j] + time_diff_start_to_this_packet;
}
else
time = time_diff_start_to_this_packet;

if (tmp.uint == 0) { // no valid laser beam return
// call to addPoint is still required since output could be organized
Expand Down

0 comments on commit 09536ad

Please sign in to comment.