@ranchhandrobotics/babylon_ros 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -22
- package/dist/ros.js +1 -1
- package/dist/ros.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Babylon_ros is a Node.JS API for rendering [ROS 2](https://ros.org) based URDFs
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](https://ranch-hand-robotics.github.io/babylon_ros/
|
|
10
|
+
[](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.urdf)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -20,8 +20,8 @@ https://ranch-hand-robotics.github.io/babylon_ros/docs/urdf-viewer.html?urdf=YOU
|
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Example URLs:**
|
|
23
|
-
- **Mule Robot**: `https://ranch-hand-robotics.github.io/babylon_ros/
|
|
24
|
-
- **R2 Robot**: `https://ranch-hand-robotics.github.io/babylon_ros/
|
|
23
|
+
- **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.urdf`
|
|
24
|
+
- **R2 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/r2.urdf`
|
|
25
25
|
|
|
26
26
|
This makes it easy to embed live robot visualizations in any README by simply linking to the viewer with your URDF file URL.
|
|
27
27
|
|
|
@@ -53,29 +53,28 @@ Here’s a simple example which renders a the Test Page included in this package
|
|
|
53
53
|
<!DOCTYPE html>
|
|
54
54
|
<html lang="en">
|
|
55
55
|
<head>
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
<meta charset="UTF-8">
|
|
57
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
58
58
|
<style nonce="${nonce}">
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</style>
|
|
74
|
-
<title>URDF Preview</title>
|
|
59
|
+
html,
|
|
60
|
+
body {
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#renderCanvas {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
touch-action: none;
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
74
|
+
<title>URDF Preview</title>
|
|
75
75
|
</head>
|
|
76
76
|
<body>
|
|
77
77
|
<canvas id="renderCanvas" touch-action="none"></canvas>
|
|
78
|
-
<script src="../node_modules/babylonjs/babylon.js"></script>
|
|
79
78
|
<script src="./ros.js"></script>
|
|
80
79
|
<script>
|
|
81
80
|
|