Skip to content

fix compile error #895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"vitest": "^3.0.2"
},
"dependencies": {
"@xmldom/xmldom": "^0.9.0",
"@xmldom/xmldom": "^0.9.8",
"cbor-js": "^0.1.0",
"eventemitter3": "^5.0.1",
"pngparse": "^2.0.0",
Expand Down Expand Up @@ -70,4 +70,4 @@
],
"types": "dist/RosLib.d.ts",
"author": "Robot Webtools Team <[email protected]> (https://robotwebtools.github.io)"
}
}
4 changes: 2 additions & 2 deletions src/urdf/UrdfModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Russell Toris - [email protected]
*/

import { DOMParser, MIME_TYPE } from '@xmldom/xmldom';
import { DOMParser, Element, MIME_TYPE } from '@xmldom/xmldom';
import UrdfMaterial from './UrdfMaterial.js';
import UrdfLink from './UrdfLink.js';
import UrdfJoint from './UrdfJoint.js';
Expand All @@ -18,7 +18,7 @@ export interface UrdfModelOptions {
/**
* The XML element to parse.
*/
xml?: Element;
xml: Element | null;
/**
* The XML element to parse as a string.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/urdf/UrdfTypes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Element } from '@xmldom/xmldom';

export enum UrdfType {
SPHERE = 0,
BOX = 1,
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/********** Utility Methods for parsing Joint **********/
import { Element, Node } from '@xmldom/xmldom';
import { Pose, Quaternion, Vector3 } from '../math/index.js';
import { UrdfAttrs } from './UrdfTypes.js';

Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfVisual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @author Russell Toris - [email protected]
*/

import { Element } from '@xmldom/xmldom';
import Pose from '../math/Pose.js';
import UrdfCylinder from './UrdfCylinder.js';
import UrdfBox from './UrdfBox.js';
Expand Down