mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 10:17:45 +08:00
Added odom_info_lite topic (same as odom_info but without data). Optimized intermediate nodes processing time by avoiding converting all data in odom_info message.
This commit is contained in:
+2
-1
@@ -1909,7 +1909,7 @@ void CoreWrapper::process(
|
||||
std::vector<float> odomVelocity;
|
||||
if(iter->second.timeEstimation != 0.0f)
|
||||
{
|
||||
OdometryInfo info = odomInfoFromROS(iter->second);
|
||||
OdometryInfo info = odomInfoFromROS(iter->second, true);
|
||||
externalStats = rtabmap_ros::odomInfoToStatistics(info);
|
||||
|
||||
if(info.interval>0.0)
|
||||
@@ -2098,6 +2098,7 @@ void CoreWrapper::process(
|
||||
rtabmapROSStats_.clear();
|
||||
}
|
||||
|
||||
timeMsgConversion += timer.ticks();
|
||||
if(rtabmap_.process(data, odom, covariance, odomVelocity, externalStats))
|
||||
{
|
||||
timeRtabmap = timer.ticks();
|
||||
|
||||
Reference in New Issue
Block a user