Hi,
For convenience, I took the example from the android function and made a standalone example (simplified with default parameters), see this
commit.
Usage:
//export cloud.ply
$ rtabmap-export test.db
//export mesh.ply
$ rtabmap-export --mesh test.db
//export mesh.obj
$ rtabmap-export --texture test.db
cheers,
Mathieu