Skip to content

Commit

Permalink
Change sdk version to mainline release 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Sep 16, 2024
1 parent 0efdefa commit 77190e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ouster-sdk
1 change: 0 additions & 1 deletion src/lidar_packet_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ class LidarPacketHandler {

void process_scans() {


{
using namespace std::chrono;
std::unique_lock<std::mutex> index_lock(ring_buffer_mutex);
Expand Down
2 changes: 1 addition & 1 deletion src/point_cloud_compose.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void scan_to_cloud_f(ouster_ros::Cloud<PointT>& cloud,
pt.y = static_cast<decltype(pt.y)>(xyz(1));
pt.z = static_cast<decltype(pt.z)>(xyz(2));
// TODO: in the future we could probably skip copying t and ring
// values if knowning before hand that the target point cloud does
// values if known before hand that the target point cloud does
// not have a field to hold the timestamp or a ring for example the
// case of pcl::PointXYZ or pcl::PointXYZI.
pt.t = static_cast<uint32_t>(ts);
Expand Down
4 changes: 2 additions & 2 deletions src/point_cloud_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class PointCloudProcessor {
void process(const ouster::LidarScan& lidar_scan, uint64_t scan_ts,
const ros::Time& msg_ts) {
for (int i = 0; i < static_cast<int>(pc_msgs.size()); ++i) {
auto range_channel = static_cast<sensor::ChanField>(sensor::ChanField::RANGE + i);
auto range = lidar_scan.field<uint32_t>(range_channel);
auto range_ch = static_cast<sensor::ChanField>(sensor::ChanField::RANGE + i);
auto range = lidar_scan.field<uint32_t>(range_ch);
ouster::cartesianT(points, range, lut_direction, lut_offset,
min_range_, max_range_,
std::numeric_limits<float>::quiet_NaN());
Expand Down

0 comments on commit 77190e6

Please sign in to comment.