Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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)"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the missing newline at EOF

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it

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