GUI camera stream viewer headless and non headless options

HI there !! I am trying to use rviz to view a camera stream while a slam model is running. The slam model I am using is ORB-SLAM 3 and I’m using a ros2 environment to start a camera and slam node. When I run rviz on my laptop it can not see the topics being published from my camera and slam node. I also tried using rviz directly on the Pi but because of its limited GUI rviz aborts. I’m also using gscam to start the camera stream. What typical methods work with the pi to set up a headless environment?

May I confirm which system version you are currently using —Linux, Ubuntu, or another distribution?

ubuntu 24.04