Skip to content

Commit 36b5a10

Browse files
authored
Fix movement for undefined limits (#17)
* Fix movement for undefined limits
1 parent 1d76f10 commit 36b5a10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/layout.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ export class URDFLayout extends PanelLayout {
143143
if (limitMin === 0 && limitMax === 0) {
144144
limitMin = -Math.PI;
145145
limitMax = +Math.PI;
146+
this._robotModel.urdfObject.joints[jointName].limit.lower = limitMin;
147+
this._robotModel.urdfObject.joints[jointName].limit.upper = limitMax;
146148
}
147149

148150
// Step increments for slider

0 commit comments

Comments
 (0)