Skip to main content

Robot Bridge Manager Python Package

Overview

This Python package automatically generates a .yaml file specifying a ROS Gazebo bridge. It does so by parsing a URDF (XML) file and looking for custom <bridge> tags within it.

Installation

pip install .

Usage

Defining Bridge Components in URDF

To use this tool, you need to embed <bridge> tags within your URDF file. Each <bridge> tag should define a single ROS-Gazebo bridge.

Example <bridge> tag:

<bridge
  ros_topic="/my_robot/cmd_vel"
  gz_topic="/model/my_robot/cmd_vel"
  ros_type="geometry_msgs/msg/Twist"
  gz_type="gz.msgs.Twist"
  direction="ros_to_gz"
/>

Attributes:

  • ros_topic: The ROS 2 topic name.
  • gz_topic: The Gazebo topic name.
  • ros_type: The ROS 2 message type (e.g., geometry_msgs/msg/Twist).
  • gz_type: The Gazebo message type.
  • direction: The direction of the bridge. Can be ros_to_gz, gz_to_ros, or bidirectional.

Generating the Bridge YAML

Once your URDF file contains the necessary <bridge> tags, you can use the urdf-bridge-builder command-line tool to generate the bridge.yaml file.

urdf-bridge-builder generate path/to/your_robot.urdf --output bridge.yaml
  • path/to/your_robot.urdf: The path to your URDF file.
  • --output bridge.yaml (optional): Specifies the output file name for the generated YAML. If not provided, it defaults to bridge.yaml in the current directory.

Example: If my_robot.urdf contains:

<robot name="my_robot">
  <link name="base_link"/>
  <bridge ros_topic="/joint_states" gz_topic="/model/my_robot/joint_states" ros_type="sensor_msgs/msg/JointState" gz_type="gz.msgs.Model" direction="gz_to_ros"/>
  <bridge ros_topic="/cmd_vel" gz_topic="/model/my_robot/cmd_vel" ros_type="geometry_msgs/msg/Twist" gz_type="gz.msgs.Twist" direction="ros_to_gz"/>
</robot>

Running urdf-bridge-builder generate my_robot.urdf will create bridge.yaml:

- ros_topic: /joint_states
  gz_topic: /model/my_robot/joint_states
  ros_type: sensor_msgs/msg/JointState
  gz_type: gz.msgs.Model
  direction: gz_to_ros
- ros_topic: /cmd_vel
  gz_topic: /model/my_robot/cmd_vel
  ros_type: geometry_msgs/msg/Twist
  gz_type: gz.msgs.Twist
  direction: ros_to_gz

This bridge.yaml file can then be used with ros_gz_bridge.

Development

Running Tests

To run the unit tests, ensure you have pytest installed and run it from the project root:

pip install pytest
pytest urdf-bridge-builder/src/tests/

Metadata

Release files for urdf-bridge-builder 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urdf-bridge-builder 0.1.6
File Size Uploaded Provenance Actions
urdf_bridge_builder-0.1.6.tar.gz 15.0 kB With provenance Details for urdf_bridge_builder-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urdf-bridge-builder 0.1.6
File Interpreter ABI Platform Actions
urdf_bridge_builder-0.1.6-py3-none-any.whl Python 3 none any Details for urdf_bridge_builder-0.1.6-py3-none-any.whl

Total release size: 32.4 kB

Release files / urdf_bridge_builder-0.1.6.tar.gz

Download URL urdf_bridge_builder-0.1.6.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3783e1fb83f321a010cf4487b262c384228132c6f643478b2d2006e809bee514
BLAKE2b-256 checksum
How to use checksums
6ede75d7794f0aded07b52ad98bf0c448372dfd360591f71addf11cde410927f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.

Transparency log

Release files / urdf_bridge_builder-0.1.6-py3-none-any.whl

Download URL urdf_bridge_builder-0.1.6-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c412139983fd50fc7bf9d2e022188e23402709a85ca00589d87e312aa1511779
BLAKE2b-256 checksum
How to use checksums
3aff8432e5a30ddb7ef3d9449bbe43102c2870eb2a4da87f705a825bf2a7861d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.

Transparency log

Security for urdf-bridge-builder 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for urdf_bridge_builder-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page