rtabmap_viz reads the parameters from rtabmap's parameters. Look for errors when launching rtabmap_viz, maybe it is not able to read parameters from rtabmap node. Make sure to launch rtabmap_viz under same namespace than rtabmap node, or remap rtabmap node name when launching rtabmap_viz. For example, if rtabmap node is under rtabmap namepsace, the node would be /rtabmap/rtabmap, there are two ways to make rtabmap_viz correctly load parameters from rtabmap node:
ros2 run rtabmap_viz rtabmap_viz --ros-args -r __ns:=/rtabmap
or
ros2 run rtabmap_viz rtabmap_viz --ros-args -p rtabmap:=/rtabmap/rtabmap
When successful, you should see:
[INFO] [1739170224.540784821] [rtabmap_viz]: Reading parameters from the ROS server...
[INFO] [1739170224.560419869] [rtabmap_viz]: Parameters read = 386
[INFO] [1739170224.560463863] [rtabmap_viz]: Parameters successfully read.
otherwise, there would be this error:
[INFO] [1739170289.190882862] [rtabmap_viz]: Reading parameters from the ROS server...
[ERROR] [1739170294.192287629] [rtabmap_viz]: Can't call rtabmap parameters service, is the node running?
[INFO] [1739170294.192547597] [rtabmap_viz]: Parameters read = 0
cheers,
Mathieu