We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb81ac commit 993e487Copy full SHA for 993e487
src/compas/robots/model/joint.py
@@ -317,11 +317,15 @@ def calculate_transformation(self, position):
317
def is_configurable(self):
318
"""Returns ``True`` if the joint can be configured, otherwise ``False``."""
319
return self.type != Joint.FIXED
320
+
321
+ def is_scalable(self):
322
+ """Returns ``True`` if the joint can be scaled, otherwise ``False``."""
323
+ return self.type in [Joint.PLANAR, Joint.PRISMATIC]
324
325
def scale(self, factor):
326
self.origin.scale(factor)
327
self.init_origin.point *= factor
- if self.type in [Joint.PLANAR, Joint.PRISMATIC]:
328
+ if self.is_scalable():
329
self.limit.scale(factor)
330
331
0 commit comments