From b4a811eb8b7f40d83956c095dcea41a2dadec401 Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Sun, 15 Mar 2026 15:29:53 +0000 Subject: [PATCH] docs(uxrce): fix instructions for syncing px4 msgs Signed-off-by: Beniamino Pozzan --- docs/en/middleware/uxrce_dds.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/en/middleware/uxrce_dds.md b/docs/en/middleware/uxrce_dds.md index d84444ce74..87b1f33013 100644 --- a/docs/en/middleware/uxrce_dds.md +++ b/docs/en/middleware/uxrce_dds.md @@ -387,11 +387,14 @@ Therefore, - If you're using a main or release version of PX4 you can get the message definitions by cloning the interface package [PX4/px4_msgs](https://github.com/PX4/px4_msgs) into your workspace. - If you're creating or modifying uORB messages you must manually update the messages in your workspace from your PX4 source tree. Generally this means that you would update [dds_topics.yaml](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/uxrce_dds_client/dds_topics.yaml), clone the interface package, and then manually synchronize it by copying the new/modified message definitions from [PX4-Autopilot/msg](https://github.com/PX4/PX4-Autopilot/tree/main/msg) to its `msg` folders. - Assuming that PX4-Autopilot is in your home directory `~`, while `px4_msgs` is in `~/px4_ros_com/src/`, then the command might be: + Assuming that PX4-Autopilot is in your home directory `~`, while `px4_msgs` is in `~/ros2_px4_ws/src/`, then the command might be: ```sh - rm ~/px4_ros_com/src/px4_msgs/msg/*.msg - cp ~/PX4-Autopilot/msg/*.msg ~/px4_ros_com/src/px4_msgs/msg/ + rm ~/ros2_px4_ws/src/px4_msgs/msg/*.msg + rm ~/ros2_px4_ws/src/px4_msgs/srv/*.srv + cp ~/PX4-Autopilot/msg/*.msg ~/ros2_px4_ws/src/px4_msgs/msg/ + cp ~/PX4-Autopilot/msg/versioned/*.msg ~/ros2_px4_ws/src/px4_msgs/msg/ + cp ~/PX4-Autopilot/srv/*.msg ~/ros2_px4_ws/src/px4_msgs/srv/ ``` ::: info