Skip to content

Commit 87912d2

Browse files
Update lidar_node.cc
Due to the lidar will get the point cloud of chassis itself, I add a lower bound to correct it Signed-off-by: Demonmasterlqx <[email protected]>
1 parent a574980 commit 87912d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ionic/tutorials/sensors/lidar_node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void cb(const gz::msgs::LaserScan &_msg)
3333
bool allMore = true;
3434
for (int i = 0; i < _msg.ranges_size(); i++)
3535
{
36-
if (_msg.ranges(i) < 1.0)
36+
if (0.85<_msg.ranges(i) && _msg.ranges(i) < 1.5)
3737
{
3838
allMore = false;
3939
break;

0 commit comments

Comments
 (0)