Re: Build project with example code but failed, Any help great appreciated!

Posted by matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Build-project-with-example-code-but-failed-Any-help-great-appreciated-tp545p556.html

Hello derwee,

I don't know if I understand correctly your problem. In ROS, you can call "set_label" service to set a label to a node:
$ rosservice call /rtabmap/set_label 0 "my_label"
(0 means latest node)

For the standalone, I've recently added the possibility to add labels from the GUI. See Detection menu -> "Label current location...". Labels are then shown in the 3D map view.

If you want to do your own functionality using voice commands to add a label, you can see the MainWindow::label() method. It posts a RtabmapEventCmd event to send the label to rtabmap thread.

If you are using the rtabmap object directly, you can call Rtabmap::labelLocation() method.

cheers