mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 09:47:46 +08:00
rtabmap: use largest odom covariance instead of summation
This commit is contained in:
+8
-2
@@ -302,7 +302,10 @@ bool GuiWrapper::handleEvent(UEvent * anEvent)
|
||||
if(!cameraNodeName_.empty())
|
||||
{
|
||||
std::string str = uFormat("rosrun dynamic_reconfigure dynparam set %s pause true", cameraNodeName_.c_str());
|
||||
system(str.c_str());
|
||||
if(system(str.c_str()) !=0)
|
||||
{
|
||||
ROS_ERROR("Command \"%s\" returned non zero value.", str.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
// Pause visual_odometry
|
||||
@@ -329,7 +332,10 @@ bool GuiWrapper::handleEvent(UEvent * anEvent)
|
||||
if(!cameraNodeName_.empty())
|
||||
{
|
||||
std::string str = uFormat("rosrun dynamic_reconfigure dynparam set %s pause false", cameraNodeName_.c_str());
|
||||
system(str.c_str());
|
||||
if(system(str.c_str()) !=0)
|
||||
{
|
||||
ROS_ERROR("Command \"%s\" returned non zero value.", str.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(cmd == rtabmap::RtabmapEventCmd::kCmdTriggerNewMap)
|
||||
|
||||
Reference in New Issue
Block a user