Closed engcang closed 12 months ago
check the commits I did few hours ago, should work
also, your PR is removing the datafiles
I think I cloned and tested the code block with the latest commit of yours and it does not work. Maybe I found the typo here:
template <typename PointT>
inline void ProbabilisticMap::insertPointCloud(const std::vector<PointT>& points,
const PointT& origin,
double max_range)
{
const auto from = ConvertTo<Eigen::Vector3f>(origin);
const double max_range_sqr = max_range * max_range;
for (const auto& point : points)
{
const auto to = ConvertTo<Eigen::Vector3f>(point);
addPoint(from, to, max_range, max_range_sqr);
}
//updateFreeCells(origin); //TYPO
updateFreeCells(from);
}
I didn't know the data files were stored with lfs, sorry. I didn't remove them but they are still there as non-lfs files.
where is the typo?
updateFreeCells(origin)
should be updateFreeCells(from)
thanks. Anyway, i think I found the issue, working on it
Problem solved. Thanks a lot!!!!
Hi @facontidavide.
Super thank you for sharing awesome work. This is way much faster than OctoMap and I love this! I am using the
ProbabilisticMap
and found minor template bug when calling insertPointCloud as below.Former
updateFreeCells
function only gets theEigen::Vector3f
as input and hence error occurs during compiling with the code block above. Addingtemplate <typename PointT>
and changing the input type asPointT
solve the issue.