How to Get the Gps Messages by RTPS

Modify the file

PX4-Autopilot\msg\tool\surtps_bridge_topics.yaml

Insert.

1
2
- msg: vehicle_global_position
send: true

Then rebuild the Autopilot.

Modify the file

1
px4_ros_com/templates/urtps_bridge_topics.yaml

Insert.

1
2
- msg: VehicleGlobalPosition
send: true

Then rebuild the px4_ros_com.

Finally, run the micrortps_agent.

The topic named ‘/fmu/vehicle_global_position/out’ was created.