-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply noise to lidar point cloud #86
Conversation
Signed-off-by: Nate Koenig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-sensors3 #86 +/- ##
================================================
- Coverage 77.54% 77.39% -0.15%
================================================
Files 23 23
Lines 2298 2305 +7
================================================
+ Hits 1782 1784 +2
- Misses 516 521 +5
Continue to review full report at Codecov.
|
Signed-off-by: Nate Koenig <[email protected]>
src/Lidar.cc
Outdated
{ | ||
for (unsigned int i = 0; i < this->RayCount(); ++i) | ||
{ | ||
int index = j * this->RangeCount() + i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one more this->RangeCount()
to this->RayCount()
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Nate Koenig <[email protected]>
Noise was not applied to the point cloud generated by the GpuLidarSensor. This change applies noise to the
laserBuffer
, which then used by both thescan
andpoint cloud
topics.Signed-off-by: Nate Koenig [email protected]