mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 04:29:49 +08:00
fixed "path.size()=0!? nearestId=1 ids=1, aborting..." warning when Rtabmap/CreateIntermediateNodes is true and proximity detection is enabled.
This commit is contained in:
+6
-1
@@ -1873,7 +1873,12 @@ void CoreWrapper::process(
|
|||||||
{
|
{
|
||||||
if(iter->first.header.stamp < lastPoseStamp_)
|
if(iter->first.header.stamp < lastPoseStamp_)
|
||||||
{
|
{
|
||||||
Transform interOdom = rtabmap_ros::transformFromPoseMsg(iter->first.pose.pose);
|
Transform interOdom;
|
||||||
|
if(!rtabmap_.getLocalOptimizedPoses().empty())
|
||||||
|
{
|
||||||
|
// add intermediate poses only if the current local graph is not empty
|
||||||
|
interOdom = rtabmap_ros::transformFromPoseMsg(iter->first.pose.pose);
|
||||||
|
}
|
||||||
if(!interOdom.isNull())
|
if(!interOdom.isNull())
|
||||||
{
|
{
|
||||||
cv::Mat covariance;
|
cv::Mat covariance;
|
||||||
|
|||||||
Reference in New Issue
Block a user