Skip to content

Commit e7ab683

Browse files
fix compile error (#895)
* fix compile error * update versions of dependency * update dependencies * update dependencies * only bump dependencies of which the older version is not working anymore * adapt to new verion of xmldom * add new line at EOF --------- Co-authored-by: Matthijs van der Burgh <[email protected]>
1 parent 7e87ca2 commit e7ab683

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"vitest": "^3.0.2"
3434
},
3535
"dependencies": {
36-
"@xmldom/xmldom": "^0.9.0",
36+
"@xmldom/xmldom": "^0.9.8",
3737
"cbor-js": "^0.1.0",
3838
"eventemitter3": "^5.0.1",
3939
"pngparse": "^2.0.0",

src/urdf/UrdfModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Russell Toris - [email protected]
55
*/
66

7-
import { DOMParser, MIME_TYPE } from '@xmldom/xmldom';
7+
import { DOMParser, Element, MIME_TYPE } from '@xmldom/xmldom';
88
import UrdfMaterial from './UrdfMaterial.js';
99
import UrdfLink from './UrdfLink.js';
1010
import UrdfJoint from './UrdfJoint.js';
@@ -18,7 +18,7 @@ export interface UrdfModelOptions {
1818
/**
1919
* The XML element to parse.
2020
*/
21-
xml?: Element;
21+
xml: Element | null;
2222
/**
2323
* The XML element to parse as a string.
2424
*/

src/urdf/UrdfTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Element } from '@xmldom/xmldom';
2+
13
export enum UrdfType {
24
SPHERE = 0,
35
BOX = 1,

src/urdf/UrdfUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/********** Utility Methods for parsing Joint **********/
2+
import { Element, Node } from '@xmldom/xmldom';
23
import { Pose, Quaternion, Vector3 } from '../math/index.js';
34
import { UrdfAttrs } from './UrdfTypes.js';
45

src/urdf/UrdfVisual.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @author Russell Toris - [email protected]
55
*/
66

7+
import { Element } from '@xmldom/xmldom';
78
import Pose from '../math/Pose.js';
89
import UrdfCylinder from './UrdfCylinder.js';
910
import UrdfBox from './UrdfBox.js';

0 commit comments

Comments
 (0)