Getting UORB in nsh but not in agent side ROS2

I am trying to achieve a similar thing to you. Please see my post here which might be able to help you Px4_ros_com applications won't receive any data via micrortps. I am also trying to obtain GPS and sensor data on the ROS side from my flight controller but having no luck. Have you started the Micro RTPS client on your flight controller?