Skip to content

Conversation

@patrik-knaperek
Copy link

The previous version allowed only to set the cut_angle parameter cropping the FOV from 0 to n, which I find barely useful. Moreover, its implementation wasn't correct (it actually didn't cut the FOV at all). However, the Velodyne web interface allows for cutting FOV from MIN to MAX angle. This caused disproportion and reduction of publishing frequency.

In my case, I needed to cut the FOV of LiDAR from 270 to 90 degrees. Doing so only in the web interface caused the LiDAR to send half number of packets. However, the ROS driver implementation computed npackets - expected number of packets in one scan assuming 0-360 deg. FOV - based on rotation frequency, then reads the packets from LiDAR in a for loop counting up to npackets value and only then sending out. As the LiDAR was sending only half of the FOV, the ROS driver would mix up packets from two revolutions together reducing the output frequency by half.

In this version, the FOV cut can by set either by cut_angle parameter cutting from 0 to n radians or by setting fov_start_angle and fov_end_angle parameters defining exact scan sector in degrees.

- corrected `cut_angle` parameter implementation cutting the FOV from 0
to `cut_angle` radians
- added `fov_start_angle` and `fov_end_angle` parameters to define exact
scan FOV sector in degrees
@patrik-knaperek patrik-knaperek changed the base branch from ros2 to master January 15, 2025 14:58
@patrik-knaperek patrik-knaperek deleted the branch ros-drivers:master January 17, 2025 12:12
@patrik-knaperek patrik-knaperek deleted the master branch January 17, 2025 12:12
@patrik-knaperek patrik-knaperek restored the master branch April 11, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant