diff --git a/launch/demo/demo_robot_mapping.launch b/launch/demo/demo_robot_mapping.launch
index daa081d2..a8fc6c13 100644
--- a/launch/demo/demo_robot_mapping.launch
+++ b/launch/demo/demo_robot_mapping.launch
@@ -37,7 +37,6 @@
-
diff --git a/src/GuiWrapper.cpp b/src/GuiWrapper.cpp
index e8a506e8..d124b949 100644
--- a/src/GuiWrapper.cpp
+++ b/src/GuiWrapper.cpp
@@ -381,10 +381,11 @@ void GuiWrapper::handleEvent(UEvent * anEvent)
}
else if(cmd == rtabmap::RtabmapEventCmd::kCmdLabel)
{
- UASSERT(cmdEvent->value1().isStr() || cmdEvent->value1().isInt() || cmdEvent->value1().isUInt());
+ UASSERT(cmdEvent->value1().isStr());
+ UASSERT(cmdEvent->value2().isUndef() || cmdEvent->value2().isInt() || cmdEvent->value2().isUInt());
rtabmap_ros::SetLabel setLabelSrv;
- setLabelSrv.request.node_id = !cmdEvent->value1().isStr()?cmdEvent->value1().toInt():0;
- setLabelSrv.request.node_label = cmdEvent->value1().isStr()?cmdEvent->value1().toStr():"";
+ setLabelSrv.request.node_label = cmdEvent->value1().toStr();
+ setLabelSrv.request.node_id = cmdEvent->value2().isUndef()?0:cmdEvent->value2().toInt();
if(!ros::service::call("set_label", setLabelSrv))
{
ROS_ERROR("Can't call \"set_label\" service");