File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,15 @@ export class URDFLoadingManager extends LoadingManager {
49
49
super ( ) ;
50
50
this . _urdfLoader = new URDFLoader ( this ) ;
51
51
this . _xacroLoader = new XacroLoaderWithPath ( ) ;
52
+ this . setWorkingPath ( ) ;
52
53
}
53
54
54
55
/**
55
56
* Sets the path where the loaders will search for robot description files
56
57
*
57
58
* @param workingPath - The path to the robot files
58
59
*/
59
- setWorkingPath ( workingPath : string ) : void {
60
+ setWorkingPath ( workingPath = '' ) : void {
60
61
// To match '/this/format/path'
61
62
workingPath = workingPath [ 0 ] !== '/' ? '/' + workingPath : workingPath ;
62
63
workingPath =
@@ -79,7 +80,8 @@ export class URDFLoadingManager extends LoadingManager {
79
80
} ) ;
80
81
81
82
this . _xacroLoader . workingPath =
82
- PageConfig . getBaseUrl ( ) + '/files' + this . _workingPath ;
83
+ PageConfig . getBaseUrl ( ) + 'files' + this . _workingPath ;
84
+ console . debug ( '[Xacro]: Modify URL with prefix' , this . _xacroLoader . workingPath ) ;
83
85
}
84
86
85
87
/**
You can’t perform that action at this time.
0 commit comments