mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 20:49:50 +08:00
fixed a casting of map into multimap
This commit is contained in:
+1
-1
@@ -383,7 +383,7 @@ void OdometryROS::processData(const SensorData & data, const ros::Time & stamp)
|
|||||||
{
|
{
|
||||||
const std::map<int, pcl::PointXYZ> & map = ((OdometryBOW*)odometry_)->getLocalMap();
|
const std::map<int, pcl::PointXYZ> & map = ((OdometryBOW*)odometry_)->getLocalMap();
|
||||||
pcl::PointCloud<pcl::PointXYZ> cloud;
|
pcl::PointCloud<pcl::PointXYZ> cloud;
|
||||||
for(std::multimap<int, pcl::PointXYZ>::const_iterator iter=map.begin(); iter!=map.end(); ++iter)
|
for(std::map<int, pcl::PointXYZ>::const_iterator iter=map.begin(); iter!=map.end(); ++iter)
|
||||||
{
|
{
|
||||||
cloud.push_back(iter->second);
|
cloud.push_back(iter->second);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user