Skip to content

Commit

Permalink
align timestamps based on staggered/destaggered option + CHANGELOG + …
Browse files Browse the repository at this point in the history
…workflows
  • Loading branch information
Samahu committed Oct 10, 2024
1 parent 057b5bf commit ff1d0d6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 29 deletions.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ assignees: ''

---

> **IMPORTANT**
> Before reporting a new bug make sure you have:
> - [ ] Checked existing issues https://github.com/ouster-lidar/ouster-ros/issues
> - [ ] Checked existing issues https://github.com/ouster-lidar/ouster-ros/issues
> - [ ] Checked ouster community https://community.ouster.com/
> If you couldn't find relevant information and you think this is rather a driver
> problem then proceed with bug reporting.
**Describe the bug**
A clear and concise description of what the bug is.

Expand Down
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

10 changes: 8 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
Changelog
=========

[ouster_ros v0.13.0]
====================

[unreleased]
============
* [BUGFIX]: correctly align timestamps to the generated point cloud


ouster_ros v0.13.0
==================

ouster_ros(1)
-------------
Expand Down
4 changes: 2 additions & 2 deletions src/os_sensor_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ void OusterSensor::onInit() {
create_services();
create_publishers();
attempt_reconnect = getPrivateNodeHandle().param("attempt_reconnect", false);
dormant_period_between_reconnects =
dormant_period_between_reconnects =
getPrivateNodeHandle().param("dormant_period_between_reconnects", 1.0);
reconnect_attempts_available =
reconnect_attempts_available =
getPrivateNodeHandle().param("max_failed_reconnect_attempts", INT_MAX);
attempt_start();
}
Expand Down
5 changes: 4 additions & 1 deletion src/point_cloud_compose.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ void scan_to_cloud_f(ouster_ros::Cloud<PointT>& cloud,
cloud.points.emplace_back();
}

auto ts = timestamp[v];
// as opposed to the point cloud destaggering if it is disabled
// then timestamps needs to be staggered.
auto ts = destagger ?
timestamp[v] : timestamp[(v + ls.w + pixel_shift_by_row[u]) % ls.w];
ts = ts > scan_ts ? ts - scan_ts : 0UL;

// if target point and staging point has matching type bind the
Expand Down

0 comments on commit ff1d0d6

Please sign in to comment.