From 92d54bce019fec13ae807be690d295cc7c493175 Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Wed, 26 Aug 2026 07:32:29 +0100 Subject: [PATCH] docs(ros2): global rename of "ROS2" into "ROS 2" (#28358) Signed-off-by: Beniamino Pozzan Co-authored-by: Hamish Willee --- docs/en/SUMMARY.md | 2 +- docs/en/_sidebar.md | 2 +- .../holybro_pixhawk_jetson_baseboard.md | 6 +-- docs/en/companion_computer/pixhawk_rpi.md | 4 +- .../computer_vision/collision_prevention.md | 2 +- docs/en/concept/flight_modes.md | 4 +- docs/en/debug/plotting_realtime_uorb_data.md | 10 ++--- docs/en/middleware/zenoh.md | 6 +-- docs/en/releases/1.15.md | 2 +- docs/en/releases/1.16.md | 2 +- docs/en/releases/main.md | 2 +- docs/en/ros2/index.md | 2 +- docs/en/ros2/offboard_control.md | 2 +- docs/en/ros2/px4_ros2_control_interface.md | 4 +- docs/en/ros2/px4_ros2_interface_lib.md | 2 +- docs/en/ros2/user_guide.md | 43 +++++++++---------- docs/en/test_and_ci/index.md | 2 +- docs/en/test_and_ci/integration_testing.md | 2 +- 18 files changed, 49 insertions(+), 50 deletions(-) diff --git a/docs/en/SUMMARY.md b/docs/en/SUMMARY.md index 248d5e781b1..69e3479f8ac 100644 --- a/docs/en/SUMMARY.md +++ b/docs/en/SUMMARY.md @@ -936,7 +936,7 @@ - [Continuous Integration](test_and_ci/continous_integration.md) - [Integration Testing](test_and_ci/integration_testing.md) - [MAVSDK Integration Testing](test_and_ci/integration_testing_mavsdk.md) - - [PX4 ROS2 Interface Library Integration Testing](test_and_ci/integration_testing_px4_ros2_interface.md) + - [PX4 ROS 2 Interface Library Integration Testing](test_and_ci/integration_testing_px4_ros2_interface.md) - [Docker Containers](test_and_ci/docker.md) - [Maintenance](test_and_ci/maintenance.md) - [Drone Apps & APIs](robotics/index.md) diff --git a/docs/en/_sidebar.md b/docs/en/_sidebar.md index 8a11da07b29..871b06c2450 100644 --- a/docs/en/_sidebar.md +++ b/docs/en/_sidebar.md @@ -938,7 +938,7 @@ - [Continuous Integration](/test_and_ci/continous_integration.md) - [Integration Testing](/test_and_ci/integration_testing.md) - [MAVSDK Integration Testing](/test_and_ci/integration_testing_mavsdk.md) - - [PX4 ROS2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md) + - [PX4 ROS 2 Interface Library Integration Testing](/test_and_ci/integration_testing_px4_ros2_interface.md) - [Docker Containers](/test_and_ci/docker.md) - [Maintenance](/test_and_ci/maintenance.md) - [Drone Apps & APIs](/robotics/index.md) diff --git a/docs/en/companion_computer/holybro_pixhawk_jetson_baseboard.md b/docs/en/companion_computer/holybro_pixhawk_jetson_baseboard.md index 9f3b5486838..f2287024dbd 100644 --- a/docs/en/companion_computer/holybro_pixhawk_jetson_baseboard.md +++ b/docs/en/companion_computer/holybro_pixhawk_jetson_baseboard.md @@ -1172,7 +1172,7 @@ INFO [uxrce_dds_client] init serial /dev/ttyS4 @ 921600 baud ### XRCE-DDS Agent & ROS 2 Setup -Follow the instruction in the ROS2 User guide to [Install ROS 2](../ros2/user_guide.md#install-ros-2) on the Jetson. +Follow the instruction in the ROS 2 User guide to [Install ROS 2](../ros2/user_guide.md#install-ros-2) on the Jetson. You don't have to install PX4 on the Jetson because we're not using the simulator, but you may wish to install the full desktop so you can use additional ROS 2 packages for further development: ```sh @@ -1293,11 +1293,11 @@ Jul 30 01:37:52 ubuntu MicroXRCEAgent[1616]: [1722317872.098168] info | Proxy Jul 30 01:37:52 ubuntu MicroXRCEAgent[1616]: [1722317872.098486] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x00000001, datawriter_id: 0x10A(5), publisher_id: 0x10A(3) ``` -You can now start your ROS2 nodes and continue the development. +You can now start your ROS 2 nodes and continue the development. ### ROS 2 Sensor Combined Tests -You can test the Client and agent by using the `sensor_combined` example in [Running an example (optional)](../ros2/user_guide.md#running-an-example-optional) (ROS2 User Guide). +You can test the Client and agent by using the `sensor_combined` example in [Running an example (optional)](../ros2/user_guide.md#running-an-example-optional) (ROS 2 User Guide). ::: tip [VSCode over SSH](https://code.visualstudio.com/docs/remote/ssh) enables faster development and application of changes to your ROS 2 code! diff --git a/docs/en/companion_computer/pixhawk_rpi.md b/docs/en/companion_computer/pixhawk_rpi.md index 69eb1d7c3cc..a5f959f9eae 100644 --- a/docs/en/companion_computer/pixhawk_rpi.md +++ b/docs/en/companion_computer/pixhawk_rpi.md @@ -235,7 +235,7 @@ MAVProxy on RPi should now connect to the Pixhawk, via RX/TX pins. You should be able to see this in the RPi terminal. We have now verified that our connection is wired up properly. -In the next section we'll set up the both Pixhawk and RPi to use uXRCE-DDS and ROS2 instead of MAVLink. +In the next section we'll set up the both Pixhawk and RPi to use uXRCE-DDS and ROS 2 instead of MAVLink. ## ROS 2 and uXRCE-DDS @@ -260,7 +260,7 @@ The configuration steps are: ``` [MAV_1_CONFIG=0](../advanced_config/parameter_reference.md#MAV_1_CONFIG) and [UXRCE_DDS_CFG=102](../advanced_config/parameter_reference.md#UXRCE_DDS_CFG) disable MAVLink on TELEM2 and enable the uXRCE-DDS client on TELEM2, respectively. - The `SER_TEL2_BAUD` rate sets the comms link data rate. + The `SER_TEL2_BAUD` rate sets the comms link data rate. You could similarly configure a connection to `TELEM1` using either `MAV_1_CONFIG` or `MAV_0_CONFIG`. ::: info diff --git a/docs/en/computer_vision/collision_prevention.md b/docs/en/computer_vision/collision_prevention.md index d25541a2b6d..00e306b98c3 100644 --- a/docs/en/computer_vision/collision_prevention.md +++ b/docs/en/computer_vision/collision_prevention.md @@ -321,7 +321,7 @@ the quaternion `q` is only used if the `orientation` is set to `ROTATION_CUSTOM` #### Companion Computers -Companion computers update the `obstacle_distance` topic using ROS2 or the [OBSTACLE_DISTANCE](https://mavlink.io/en/messages/common.html#OBSTACLE_DISTANCE) MAVLink message. +Companion computers update the `obstacle_distance` topic using ROS 2 or the [OBSTACLE_DISTANCE](https://mavlink.io/en/messages/common.html#OBSTACLE_DISTANCE) MAVLink message. diff --git a/docs/en/ros2/px4_ros2_interface_lib.md b/docs/en/ros2/px4_ros2_interface_lib.md index c304684f828..4d615f18097 100644 --- a/docs/en/ros2/px4_ros2_interface_lib.md +++ b/docs/en/ros2/px4_ros2_interface_lib.md @@ -53,4 +53,4 @@ To get started using the library within an existing ROS 2 workspace: When opening a pull request to PX4, CI runs the library integration tests. These test that mode registration, failsafes, and mode replacement, work as expected. -For more information see [PX4 ROS2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md). +For more information see [PX4 ROS 2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md). diff --git a/docs/en/ros2/user_guide.md b/docs/en/ros2/user_guide.md index 2d58ed06eda..182383e48f6 100644 --- a/docs/en/ros2/user_guide.md +++ b/docs/en/ros2/user_guide.md @@ -39,7 +39,7 @@ The generator uses the uORB message definitions in the source tree: [PX4-Autopil ROS 2 applications need to be built in a workspace that has the _same_ message definitions that were used to create the uXRCE-DDS client module in the PX4 Firmware. You can include these by cloning the interface package [PX4/px4_msgs](https://github.com/PX4/px4_msgs) into your ROS 2 workspace (branches in the repo correspond to the messages for different PX4 releases). -Starting from PX4 v1.16, in which [message versioning](../middleware/uorb.md#message-versioning) was introduced, ROS2 applications may use a different version of message definitions than those used to build PX4. +Starting from PX4 v1.16, in which [message versioning](../middleware/uorb.md#message-versioning) was introduced, ROS 2 applications may use a different version of message definitions than those used to build PX4. This requires the [ROS 2 Message Translation Node](../ros2/px4_ros2_msg_translation_node.md) to be running to ensure that messages can be converted and exchanged correctly. Note that the micro XRCE-DDS _agent_ itself has no dependency on client-side code. @@ -198,7 +198,6 @@ To create and build the workspace: ```sh git clone https://github.com/PX4/px4_msgs.git - ``` 4. Source the ROS 2 development environment into the current terminal and compile the workspace using `colcon`: @@ -417,7 +416,7 @@ To create and build the new workspace: ``` ::: info -The [ROS2 beginner tutorials](https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Creating-A-Workspace/Creating-A-Workspace.html#source-the-overlay) recommend that you _open a new terminal_ for running your executables. +The [ROS 2 beginner tutorials](https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Creating-A-Workspace/Creating-A-Workspace.html#source-the-overlay) recommend that you _open a new terminal_ for running your executables. ::: In a new terminal: @@ -463,7 +462,7 @@ accelerometer_integral_dt: 4739 -This example is built with PX4 and ROS2 versions that use the same message definitions. +This example is built with PX4 and ROS 2 versions that use the same message definitions. If you were to use incompatible [message versions](../middleware/uorb.md#message-versioning) you would need to install and run the [Message Translation Node](./px4_ros2_msg_translation_node.md) as well, before running the example: 1. Include the [Message Translation Node](../ros2/px4_ros2_msg_translation_node.md) into the example workspace or a separate workspace by running the following script: @@ -564,22 +563,22 @@ When the uXRCE-DDS client runs on a flight controller and the agent runs on a co For Gazebo simulations the GZBridge sets the PX4 time on every sim step (see [Change simulation speed](../sim_gazebo_gz/index.md#change-simulation-speed)). Note that this is different from the [simulation lockstep](../sim_gazebo_classic/index.md#lockstep) procedure adopted with Gazebo Classic. -ROS2 users have then two possibilities regarding the [time source](https://design.ros2.org/articles/clock_and_time.html) of their nodes. +ROS 2 users have then two possibilities regarding the [time source](https://design.ros2.org/articles/clock_and_time.html) of their nodes. -#### ROS2 nodes use the OS clock as time source +#### ROS 2 nodes use the OS clock as time source -This scenario, which is the one considered in this page and in the [offboard_control](./offboard_control.md) guide, is also the standard behaviour of the ROS2 nodes. +This scenario, which is the one considered in this page and in the [offboard_control](./offboard_control.md) guide, is also the standard behaviour of the ROS 2 nodes. The OS clock acts as time source and therefore it can be used only when the simulation real time factor is very close to one. -The time synchronizer of the uXRCE-DDS client then bridges the OS clock on the ROS2 side with the Gazebo clock on the PX4 side. +The time synchronizer of the uXRCE-DDS client then bridges the OS clock on the ROS 2 side with the Gazebo clock on the PX4 side. No further action is required by the user. -#### ROS2 nodes use the Gazebo clock as time source +#### ROS 2 nodes use the Gazebo clock as time source -In this scenario, ROS2 also uses the Gazebo `/clock` topic as time source. -This approach makes sense if the Gazebo simulation is running with real time factor different from one, or if ROS2 needs to directly interact with Gazebo. -On the ROS2 side, direct interaction with Gazebo is achieved by the [ros_gz_bridge](https://github.com/gazebosim/ros_gz) package of the [ros_gz](https://github.com/gazebosim/ros_gz) repository. +In this scenario, ROS 2 also uses the Gazebo `/clock` topic as time source. +This approach makes sense if the Gazebo simulation is running with real time factor different from one, or if ROS 2 needs to directly interact with Gazebo. +On the ROS 2 side, direct interaction with Gazebo is achieved by the [ros_gz_bridge](https://github.com/gazebosim/ros_gz) package of the [ros_gz](https://github.com/gazebosim/ros_gz) repository. -Use the following commands to install the correct ROS 2/gz interface packages (not just the bridge) for the ROS2 and Gazebo version(s) supported by PX4. +Use the following commands to install the correct ROS 2/gz interface packages (not just the bridge) for the ROS 2 and Gazebo version(s) supported by PX4. :::: tabs @@ -604,7 +603,7 @@ sudo apt install ros-humble-ros-gzharmonic :::: ::: info -The [repo](https://github.com/gazebosim/ros_gz#readme) and [package](https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge#readme) READMEs show the package versions that need to be installed depending on your ROS2 and Gazebo versions. +The [repo](https://github.com/gazebosim/ros_gz#readme) and [package](https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge#readme) READMEs show the package versions that need to be installed depending on your ROS 2 and Gazebo versions. ::: Once the packages are installed and sourced, the node `parameter_bridge` provides the bridging capabilities and can be used to create an unidirectional `/clock` bridge: @@ -613,10 +612,10 @@ Once the packages are installed and sourced, the node `parameter_bridge` provide ros2 run ros_gz_bridge parameter_bridge /clock@rosgraph_msgs/msg/Clock[gz.msgs.Clock ``` -At this point, every ROS2 node must be instructed to use the newly bridged `/clock` topic as time source instead of the OS one, this is done by setting the parameter `use_sim_time` (of _each_ node) to `true` (see [ROS clock and Time design](https://design.ros2.org/articles/clock_and_time.html)). +At this point, every ROS 2 node must be instructed to use the newly bridged `/clock` topic as time source instead of the OS one, this is done by setting the parameter `use_sim_time` (of _each_ node) to `true` (see [ROS clock and Time design](https://design.ros2.org/articles/clock_and_time.html)). -This concludes the modifications required on the ROS2 side. On the PX4 side, you are only required to stop the uXRCE-DDS time synchronization, setting the parameter [UXRCE_DDS_SYNCT](../advanced_config/parameter_reference.md#UXRCE_DDS_SYNCT) to `false`. -By doing so, Gazebo will act as main and only time source for both ROS2 and PX4. +This concludes the modifications required on the ROS 2 side. On the PX4 side, you are only required to stop the uXRCE-DDS time synchronization, setting the parameter [UXRCE_DDS_SYNCT](../advanced_config/parameter_reference.md#UXRCE_DDS_SYNCT) to `false`. +By doing so, Gazebo will act as main and only time source for both ROS 2 and PX4. ## ROS 2 Example Applications @@ -774,9 +773,9 @@ int main(int argc, char *argv[]) ### Offboard Control -[ROS 2 Offboard control example](../ros2/offboard_control.md) provides a complete C++ reference example of how to use [offboard control](../flight_modes/offboard.md) of PX4 with ROS2. +[ROS 2 Offboard control example](../ros2/offboard_control.md) provides a complete C++ reference example of how to use [offboard control](../flight_modes/offboard.md) of PX4 with ROS 2. -[Python ROS2 offboard examples with PX4](https://github.com/Jaeyoung-Lim/px4-offboard) (Jaeyoung-Lim/px4-offboard) provides a similar example for Python, and includes the scripts: +[Python ROS 2 offboard examples with PX4](https://github.com/Jaeyoung-Lim/px4-offboard) (Jaeyoung-Lim/px4-offboard) provides a similar example for Python, and includes the scripts: - `offboard_control.py`: Example of offboard position control using position setpoints - `visualizer.py`: Used for visualizing vehicle states in Rviz @@ -906,7 +905,7 @@ A complete _offboard control_ example using the VehicleCommand service is provid The example closely follows the _offboard control_ example described in [ROS 2 Offboard Control Example](../ros2/offboard_control.md) but uses the `VehicleCommand` service to request mode changes, vehicle arming and vehicle disarming. -First the ROS 2 application declares a service client of type `px4_msgs::srv::VehicleCommand` using `rclcpp::Client()` as shown (this is the same approach used for all ROS2 service clients): +First the ROS 2 application declares a service client of type `px4_msgs::srv::VehicleCommand` using `rclcpp::Client()` as shown (this is the same approach used for all ROS 2 service clients): ```cpp rclcpp::Client::SharedPtr vehicle_command_client_; @@ -1103,10 +1102,10 @@ If any are missing, they can be added separately: ### ros_gz_bridge not publishing on the \clock topic -If your [ROS2 nodes use the Gazebo clock as time source](../ros2/user_guide.md#ros2-nodes-use-the-gazebo-clock-as-time-source) but the `ros_gz_bridge` node doesn't publish anything on the `/clock` topic, you may have the wrong version installed. +If your [ROS 2 nodes use the Gazebo clock as time source](../ros2/user_guide.md#ros-2-nodes-use-the-gazebo-clock-as-time-source) but the `ros_gz_bridge` node doesn't publish anything on the `/clock` topic, you may have the wrong version installed. This might happen if you install ROS 2 Humble with the default "Ignition Fortress" packages, rather than using those for PX4, which uses "Gazebo Harmonic". -The following commands uninstall the default Ignition Fortress topics and install the correct bridge and other interface topics for **Gazebo Harmonic** with ROS2 **Humble**: +The following commands uninstall the default Ignition Fortress topics and install the correct bridge and other interface topics for **Gazebo Harmonic** with ROS 2 **Humble**: ```bash # Remove the wrong version (for Ignition Fortress) diff --git a/docs/en/test_and_ci/index.md b/docs/en/test_and_ci/index.md index 218f298936b..aa2ce82cdea 100644 --- a/docs/en/test_and_ci/index.md +++ b/docs/en/test_and_ci/index.md @@ -12,6 +12,6 @@ Test topics include: - [Continuous Integration (CI)](../test_and_ci/continous_integration.md) - [Integration Testing](../test_and_ci/integration_testing.md) - [MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md) - - [PX4 ROS2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md) + - [PX4 ROS 2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md) - [Docker](../test_and_ci/docker.md) - [Maintenance](../test_and_ci/maintenance.md) diff --git a/docs/en/test_and_ci/integration_testing.md b/docs/en/test_and_ci/integration_testing.md index d096704ba3f..2d5641ac8dd 100644 --- a/docs/en/test_and_ci/integration_testing.md +++ b/docs/en/test_and_ci/integration_testing.md @@ -6,4 +6,4 @@ The tests are run in [Continuous Integration (CI)](../test_and_ci/continous_inte - [MAVSDK Integration Testing](../test_and_ci/integration_testing_mavsdk.md) - MAVSDK-based test framework for PX4. _This is the recommended framework for writing new Integration tests_ -- [PX4 ROS2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md) - Integration Tests for the [PX4 ROS 2 Interface Library](../ros2/px4_ros2_interface_lib.md). +- [PX4 ROS 2 Interface Library Integration Testing](../test_and_ci/integration_testing_px4_ros2_interface.md) - Integration Tests for the [PX4 ROS 2 Interface Library](../ros2/px4_ros2_interface_lib.md).