Skip to content

Commit

Permalink
attempt ROBOTIS-GIT#1 to change angle_increment
Browse files Browse the repository at this point in the history
  • Loading branch information
otavio-paz committed Jan 10, 2025
1 parent ffadfc1 commit f8f7b35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ int main(int argc, char ** argv)
scan_msg.ranges = sparsed_ranges;
scan_msg.intensities = sparsed_intensities;

// Adjust the angle_increment parameter
scan_msg.angle_increment = scan_msg.angle_increment * step;

lidar_pub->publish(scan_msg); // Publish the lidar scan readings limited to 40 readings
pkg->ResetFrameReady();
}
Expand Down

0 comments on commit f8f7b35

Please sign in to comment.