mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-16 00:00:20 +08:00
fixed some pcl warnings when getMap() service is called and no 3d words are set
This commit is contained in:
+4
-1
@@ -305,7 +305,10 @@ void GuiWrapper::processRequestedMap(const rtabmap_ros::MapData & map)
|
||||
std::multimap<int, cv::KeyPoint> words;
|
||||
std::multimap<int, pcl::PointXYZ> words3D;
|
||||
pcl::PointCloud<pcl::PointXYZ> cloud;
|
||||
pcl::fromROSMsg(map.nodes[i].words3DValues, cloud);
|
||||
if(map.nodes[i].words3DValues.data.size())
|
||||
{
|
||||
pcl::fromROSMsg(map.nodes[i].words3DValues, cloud);
|
||||
}
|
||||
for(unsigned int j=0; j<map.nodes[i].wordsKeys.size() && j<map.nodes[0].wordsValues.size(); ++j)
|
||||
{
|
||||
cv::KeyPoint pt;
|
||||
|
||||
Reference in New Issue
Block a user