Unable to connect to rviz while using PX4 autopilot sitl

Hey Guys! i am working with PX4 Autopilot sitl, and its running on gazebo harmonic with XRCE agent for ros2 … while running rviz2 for visualisation of my sensor data… like camera and pose… I could not bridge my px4 sitl to my rviz2 tool. there is no tf data being published… i have checked many forums and sites to rectify the issue, but problem still persists… command i am using to check on tf data:

ros2 run tf2_tools view_frames

providing me the pdf for the (tf)transform tree data

resulted pdf showing no tf data received

please help! or guide me how can i troubleshoot further Thank You in Advance!

Hi, I’m not sure whether this is applicable to ur case but the messages from px4 are not in the same format for rviz2. Meaning they do not follow the formats of e.g. GeometryPoseStamped and therefore they can’t be directly visualized on rviz2. What I tried on my end was to convert these px4 messages to a suitable message format for visualization in rviz2 and at the same time publish the tfs by use the ros2 transform broadcasters.

1 Like