File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,9 @@ export class URDFControls extends GUI {
144
144
'Grid'
145
145
) ;
146
146
147
- const minHeight = - 2 ;
148
- const maxHeight = 5 ;
149
- const stepSize = 0.1 ;
147
+ const minHeight = - 2.0 ;
148
+ const maxHeight = 5.0 ;
149
+ const stepSize = 0.001 ;
150
150
this . controls . scene . height = this . _sceneFolder . add (
151
151
sceneSettings ,
152
152
'Height' ,
@@ -196,11 +196,11 @@ export class URDFControls extends GUI {
196
196
const limitMax = Number ( joints [ name ] . limit . upper ) ;
197
197
198
198
// Skip joint if the limits are not defined
199
- if ( limitMin === 0 && limitMax === 0 ) {
199
+ if ( limitMin === 0.0 && limitMax === 0. 0) {
200
200
return ;
201
201
}
202
202
203
- const stepSize = ( limitMax - limitMin ) / 20 ;
203
+ const stepSize = ( limitMax - limitMin ) / 100.0 ;
204
204
const initValue = joints [ name ] . jointValue [ 0 ] ;
205
205
206
206
this . controls . joints [ name ] = this . _jointsFolder . add (
@@ -318,9 +318,9 @@ export class URDFControls extends GUI {
318
318
const angleStep = 0.01 ;
319
319
320
320
// Intensity limits and steps
321
- const minIntensity = 0 ;
322
- const maxIntensity = 10 ;
323
- const intensityStep = 0.1 ;
321
+ const minIntensity = 0.0 ;
322
+ const maxIntensity = 10.0 ;
323
+ const intensityStep = 0.01 ;
324
324
325
325
// Controls for directional light
326
326
this . controls . lights . directional = {
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export class URDFLayout extends PanelLayout {
209
209
this . _loader . robotModel . joints
210
210
) ;
211
211
Object . keys ( jointControl ) . forEach ( ( jointName : string ) => {
212
- jointControl [ jointName ] . onChange ( ( newValue = 0 ) => {
212
+ jointControl [ jointName ] . onChange ( ( newValue = 0.0 ) => {
213
213
this . _setJointValue ( jointName , newValue ) ;
214
214
} ) ;
215
215
} ) ;
You can’t perform that action at this time.
0 commit comments