To get GPS values in graph optimization, you need to set Optimizer/PriorsIgnored parameter to false and connect your
NavSatFix topic to /gps/fix input topic of rtabmap.
Example in a launch file:
Node(
package='rtabmap_slam', executable='rtabmap', output='screen',
parameters=[{
'Optimizer/PriorsIgnored':'false',
...}],
remappings=[
('gps/fix', '/my_gps_fix_topic'),
...],
arguments=['-d']),
The other GPS related parameter for loop closure detection described
in that wiki page is "Rtabmap/LoopGPS", which is enabled by default.
cheers,
Mathieu