docsby gkjohnson
Loading a robot
Data courtesy of NASA/JPL-Caltech
On this page

Methods

new URDFLoader(
	// The THREE.js LoadingManager.
	manager?: LoadingManager
)
loadAsync(
	// The path to the URDF within the package OR absolute
	urdfpath: string
): Promise<URDFRobot>
load(
	// The path to the URDF within the package OR absolute
	urdfpath: string,

	// Callback that is passed the model once loaded
	onComplete: ( robot: URDFRobot ) => void,

	// Called during loading
	onProgress?: () => void,

	// Called if an error occurs
	onError?: ( error: Error ) => void
): void
parse(
	// The URDF content to parse
	urdfContent: string | Document | Element
): URDFRobot