Babylon.JS abstractions for ROS 2
npm install @ranchhandrobotics/babylon_rosBabylon_ros is a Node.JS API for rendering ROS 2 based URDFs and Xacro in a web browser or Visual Studio Code compatible extension using the Babylon.js graphics engine.
The generic URDF viewer accepts any URDF or Xacro file via URL parameters:
```
https://ranch-hand-robotics.github.io/babylon_ros/docs/urdf-viewer.html?urdf=YOUR_URDF_URL
Example URLs:
- Mule Robot: https://ranch-hand-robotics.github.io/babylon_ros/urdf-viewer.html?urdf=https://raw.githubusercontent.com/Ranch-Hand-Robotics/babylon_ros/main/test/testdata/mule.urdfhttps://ranch-hand-robotics.github.io/babylon_ros/urdf-viewer.html?urdf=https://raw.githubusercontent.com/Ranch-Hand-Robotics/babylon_ros/main/test/testdata/r2.urdf
- R2 Robot:
This makes it easy to embed live robot visualizations in any README by simply linking to the viewer with your URDF file URL.
- π€ URDF and Xacro Object Model: Loads and validates URDF and Xacro files into an object model you can access
- π Web Rendering Interface: Access your robot's visualization from any device with a web browser
- πΈ Screenshot API: Capture clean screenshots of your robot scenes without UI elements as base64 PNG images
- π Progress Tracking: Monitor mesh/asset loading progress with callback API for custom progress bars
`bash`
npm install --save @ranchhandrobotics/babylon_ros
Hereβs a simple example which renders a the Test Page included in this package:
`html
``
If you find that you are hitting the same issue as someone else, please give a :+1: or comment on an existing issue.
Please provide as much details as possible, including an isolated reproduction of the issue or a pointer to an online repository.