mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Added pause/resume services to visual_odometry node (also linked to pause action in rtabmapviz)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@1353 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -386,6 +386,9 @@ void GuiWrapper::handleEvent(UEvent * anEvent)
|
||||
system(str.c_str());
|
||||
}
|
||||
|
||||
// Pause visual_odometry
|
||||
ros::service::call("pause_odom", srv);
|
||||
|
||||
// Pause rtabmap
|
||||
if(!ros::service::call("pause", srv))
|
||||
{
|
||||
@@ -400,6 +403,9 @@ void GuiWrapper::handleEvent(UEvent * anEvent)
|
||||
ROS_ERROR("Can't call \"resume\" service");
|
||||
}
|
||||
|
||||
// Pause visual_odometry
|
||||
ros::service::call("resume_odom", srv);
|
||||
|
||||
// Resume the camera if the rtabmap/camera node is used
|
||||
if(!cameraNodeName_.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user