mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
MapsManager/Grid: Filling unknown space around the last pose using the laser scan parameters
This commit is contained in:
@@ -705,6 +705,13 @@ void CoreWrapper::commonDepthCallback(
|
||||
return;
|
||||
}
|
||||
|
||||
// set maps manager laser scan range parameter
|
||||
mapsManager_.setLaserScanParameters(
|
||||
scanMsg->range_max,
|
||||
scanMsg->angle_min,
|
||||
scanMsg->angle_max,
|
||||
scanMsg->angle_increment);
|
||||
|
||||
//transform in frameId_ frame
|
||||
sensor_msgs::PointCloud2 scanOut;
|
||||
laser_geometry::LaserProjection projection;
|
||||
@@ -825,6 +832,14 @@ void CoreWrapper::commonStereoCallback(
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// set maps manager laser scan range parameter
|
||||
mapsManager_.setLaserScanParameters(
|
||||
scanMsg->range_max,
|
||||
scanMsg->angle_min,
|
||||
scanMsg->angle_max,
|
||||
scanMsg->angle_increment);
|
||||
|
||||
//transform in frameId_ frame
|
||||
sensor_msgs::PointCloud2 scanOut;
|
||||
laser_geometry::LaserProjection projection;
|
||||
|
||||
Reference in New Issue
Block a user