rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

Is it possibe to send the position data from rtab map to other programs ?

Open TheBricktop opened this issue 2 years ago • 3 comments

Id like to retrieve positional data from rtabmap using some sort of udp or osc protocol for my interactive installation. Is it currently possible? What should be done to achieve it?

TheBricktop avatar Jul 17 '22 18:07 TheBricktop

you can use a QUdpSocket class to achieve this...or create a class inheriting from UEventsHandler , register to UEventsHandler and listen to OdometryEvent like here

sumitsarkar1 avatar Jul 26 '22 17:07 sumitsarkar1

If you want to do it without ROS, you will have to implement and approach like @sumitsarkar1 .

Otherwise, if you use ROS, everything is published on topics.

matlabbe avatar Jul 27 '22 14:07 matlabbe

So basically id need to build rtabmap with additional feature, or You are suggesting using rtabmap as a library?

TheBricktop avatar Aug 03 '22 12:08 TheBricktop

Hi @TheBricktop did you find a solution to get pose information from rtabmap in realtime? We need the same functionality with rtabmap standalone version(non-ROS) and wonder if you used any of @sumitsarkar1 suggestions or something else. More details would be appreciated.

camasmie avatar Nov 25 '22 22:11 camasmie

this is a hack https://github.com/sumitsarkar1/rtabmap check the guilib folder....better to register to events and do it for Non ROS

sumitsarkar1 avatar Nov 26 '22 02:11 sumitsarkar1

So basically id need to build rtabmap with additional feature, or You are suggesting using rtabmap as a library?

That feature is ROS or ROS2 :) Otherwise, you can look at the threaded C++ example here where the data is shared using events. The idea is when you make a class inheriting from UEventsHandler, you can see all rtabmap events published.

matlabbe avatar Nov 27 '22 03:11 matlabbe