Closed nicolapiccinelli closed 5 years ago
In rosMsgToPointMatcherCloud there is a missing push_back on fieldTypes vector when rosMsg.fields.name is equal to "rgb" or "rgba".
The assertion on size equality fails as follow:
/home/andrea/catkin_ws/src/ethzasl_icp_mapping/libpointmatcher_ros/src/point_cloud.cpp:108: typename PointMatcher<T>::DataPoints PointMatcher_ros::rosMsgToPointMatcherCloud(const PointCloud2&, bool) [with T = float; typename PointMatcher<T>::DataPoints = PointMatcher<float>::DataPoints; sensor_msgs::PointCloud2 = sensor_msgs::PointCloud2_<std::allocator<void> >]: Assertion 'fieldTypes.size() == rosMsg.fields.size()' failed.
Can one of the admins verify this patch?
ok to test
In rosMsgToPointMatcherCloud there is a missing push_back on fieldTypes vector when rosMsg.fields.name is equal to "rgb" or "rgba".
The assertion on size equality fails as follow:
/home/andrea/catkin_ws/src/ethzasl_icp_mapping/libpointmatcher_ros/src/point_cloud.cpp:108: typename PointMatcher<T>::DataPoints PointMatcher_ros::rosMsgToPointMatcherCloud(const PointCloud2&, bool) [with T = float; typename PointMatcher<T>::DataPoints = PointMatcher<float>::DataPoints; sensor_msgs::PointCloud2 = sensor_msgs::PointCloud2_<std::allocator<void> >]: Assertion 'fieldTypes.size() == rosMsg.fields.size()' failed.