Skip to content

Commit

Permalink
Update to sdk client 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Sep 7, 2024
1 parent ec8b1f4 commit a66ec94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ouster-sdk
8 changes: 4 additions & 4 deletions src/os_sensor_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ void OusterSensor::populate_metadata_defaults(
if (!info.name.size()) info.name = "UNKNOWN";
if (!info.sn.size()) info.sn = "UNKNOWN";

ouster::util::version v = ouster::util::version_of_string(info.fw_rev);
ouster::util::version v = ouster::util::version_from_string(info.fw_rev);
if (v == ouster::util::invalid_version)
NODELET_WARN(
"Unknown sensor firmware version; output may not be reliable");
Expand Down Expand Up @@ -576,7 +576,7 @@ void OusterSensor::handle_poll_client_error() {

void OusterSensor::handle_lidar_packet(sensor::client& cli,
const sensor::packet_format& pf) {
if (sensor::read_lidar_packet(cli, lidar_packet, pf)) {
if (sensor::read_lidar_packet(cli, lidar_packet)) {
read_lidar_packet_errors = 0;
if (!is_legacy_lidar_profile(info) && init_id_changed(pf, lidar_packet)) {
// TODO: short circut reset if no breaking changes occured?
Expand All @@ -596,8 +596,8 @@ void OusterSensor::handle_lidar_packet(sensor::client& cli,
}

void OusterSensor::handle_imu_packet(sensor::client& cli,
const sensor::packet_format& pf) {
if (sensor::read_imu_packet(cli, imu_packet, pf)) {
const sensor::packet_format&) {
if (sensor::read_imu_packet(cli, imu_packet)) {
on_imu_packet_msg(imu_packet);
} else {
if (++read_imu_packet_errors > max_read_imu_packet_errors) {
Expand Down

0 comments on commit a66ec94

Please sign in to comment.