@@ -131,7 +131,7 @@ export class URDFLayout extends PanelLayout {
131
131
const joint = this . _robotModel . urdfObject . joints [ jointName ] ;
132
132
133
133
// Skip joints which should not be moved
134
- if ( joint . _jointType == 'fixed' ) {
134
+ if ( joint . _jointType === 'fixed' ) {
135
135
return ;
136
136
}
137
137
@@ -140,7 +140,7 @@ export class URDFLayout extends PanelLayout {
140
140
let limitMax = joint . limit . upper ;
141
141
142
142
// If the limits are not defined, set defaults to +/- 180 degrees
143
- if ( limitMin == 0 && limitMax == 0 ) {
143
+ if ( limitMin === 0 && limitMax = == 0 ) {
144
144
limitMin = - Math . PI ;
145
145
limitMax = + Math . PI ;
146
146
}
@@ -152,7 +152,7 @@ export class URDFLayout extends PanelLayout {
152
152
const initValue = joint . jointValue ;
153
153
154
154
// Object to be manipulated
155
- let jointObject = { [ jointName ] : initValue } ;
155
+ const jointObject = { [ jointName ] : initValue } ;
156
156
157
157
// Add slider to GUI
158
158
this . _gui . __folders [ 'Robot Joints' ]
@@ -165,7 +165,7 @@ export class URDFLayout extends PanelLayout {
165
165
*
166
166
* @param bgColor - The new background color as RGB array
167
167
*/
168
- setBGColor ( bgColor : any ) : void {
168
+ setBGColor ( bgColor : any [ ] ) : void {
169
169
this . _viewer . scene . background . r = bgColor [ 0 ] / 255 ;
170
170
this . _viewer . scene . background . g = bgColor [ 1 ] / 255 ;
171
171
this . _viewer . scene . background . b = bgColor [ 2 ] / 255 ;
@@ -178,7 +178,7 @@ export class URDFLayout extends PanelLayout {
178
178
const defaultColor = [ 240 , 240 , 240 ] ;
179
179
180
180
// Object to be manipulated
181
- let colorObject = { Background : defaultColor } ;
181
+ const colorObject = { Background : defaultColor } ;
182
182
183
183
// Add controller to GUI
184
184
this . _gui . __folders [ 'Scene' ]
0 commit comments