mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
fixed pcl warning when no 3D words are sent in info msgs
This commit is contained in:
+4
-1
@@ -206,7 +206,10 @@ void GuiWrapper::infoMapCallback(
|
|||||||
std::multimap<int, cv::KeyPoint> words;
|
std::multimap<int, cv::KeyPoint> words;
|
||||||
std::multimap<int, pcl::PointXYZ> words3D;
|
std::multimap<int, pcl::PointXYZ> words3D;
|
||||||
pcl::PointCloud<pcl::PointXYZ> cloud;
|
pcl::PointCloud<pcl::PointXYZ> cloud;
|
||||||
pcl::fromROSMsg(mapMsg->nodes[0].words3DValues, cloud);
|
if(mapMsg->nodes[0].words3DValues.data.size())
|
||||||
|
{
|
||||||
|
pcl::fromROSMsg(mapMsg->nodes[0].words3DValues, cloud);
|
||||||
|
}
|
||||||
for(unsigned int i=0; i<mapMsg->nodes[0].wordsKeys.size() && i<mapMsg->nodes[0].wordsValues.size(); ++i)
|
for(unsigned int i=0; i<mapMsg->nodes[0].wordsKeys.size() && i<mapMsg->nodes[0].wordsValues.size(); ++i)
|
||||||
{
|
{
|
||||||
cv::KeyPoint pt;
|
cv::KeyPoint pt;
|
||||||
|
|||||||
Reference in New Issue
Block a user