@operato/scene-urdf 10.0.0-beta.19 → 10.0.0-beta.22
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 +22 -25
- package/dist/templates/urdf.js +1 -1
- package/dist/templates/urdf.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @operato/scene-urdf
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Scene module for manipulating robot simulation through URDF format
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
npm i scene-urdf
|
|
7
|
-
```
|
|
5
|
+
<!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
|
|
8
6
|
|
|
9
|
-
##
|
|
7
|
+
## Components
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
- `RealObjectURDF`
|
|
10
|
+
- `URDFObject`
|
|
11
|
+
- `registerJointController`
|
|
12
|
+
- `createJointController`
|
|
13
|
+
- `listJointControllers`
|
|
14
|
+
- `SmoothingController`
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Linting and formatting
|
|
16
|
-
|
|
17
|
-
To scan the project for linting and formatting errors, run
|
|
16
|
+
## Install
|
|
18
17
|
|
|
19
18
|
```bash
|
|
20
|
-
|
|
19
|
+
yarn add @operato/scene-urdf
|
|
21
20
|
```
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
## Usage
|
|
24
23
|
|
|
25
|
-
```
|
|
26
|
-
|
|
24
|
+
```ts
|
|
25
|
+
import { RealObjectURDF, URDFObject, registerJointController, createJointController, listJointControllers } from '@operato/scene-urdf'
|
|
27
26
|
```
|
|
28
27
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
|
32
|
-
|
|
33
|
-
If you customize the configuration a lot, you can consider moving them to individual files.
|
|
34
|
-
|
|
35
|
-
## Local Demo with `web-dev-server`
|
|
28
|
+
## Build
|
|
36
29
|
|
|
37
30
|
```bash
|
|
38
|
-
|
|
31
|
+
yarn build
|
|
39
32
|
```
|
|
40
33
|
|
|
41
|
-
|
|
34
|
+
Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
|
|
35
|
+
|
|
36
|
+
_Version: 10.0.0-beta.19_
|
|
37
|
+
|
|
38
|
+
<!-- AUTOGEN_END -->
|
package/dist/templates/urdf.js
CHANGED
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
type: 'urdf',
|
|
4
4
|
description: 'urdf',
|
|
5
5
|
group: '3D',
|
|
6
|
-
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|
|
|
6
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
|
|
7
7
|
icon,
|
|
8
8
|
model: {
|
|
9
9
|
type: 'urdf',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urdf.js","sourceRoot":"","sources":["../../src/templates/urdf.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAElE,eAAe;IACb,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,IAAI;IACX,
|
|
1
|
+
{"version":3,"file":"urdf.js","sourceRoot":"","sources":["../../src/templates/urdf.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAElE,eAAe;IACb,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IACnB,KAAK,EAAE,IAAI;IACX,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,IAAI;KAChB;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/urdf.png', import.meta.url).href\n\nexport default {\n type: 'urdf',\n description: 'urdf',\n group: '3D',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'urdf',\n left: 10,\n top: 10,\n width: 200,\n height: 200,\n depth: 200,\n upAxis: 'z',\n unitScale: 1000\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/scene-urdf",
|
|
3
3
|
"description": "Scene module for manipulating robot simulation through URDF format",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "10.0.0-beta.
|
|
5
|
+
"version": "10.0.0-beta.22",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"prettier --write"
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f48e52f4f5fdc30ec06af9da7cf253f6e29cfb0e"
|
|
70
70
|
}
|