Skip to content

Commit e5fe755

Browse files
committed
Make group optional on robot update
1 parent f61a3f3 commit e5fe755

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compas_fab/robots/robot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ def transformed_axes(self, configuration, group=None):
15991599
# drawing
16001600
# ==========================================================================
16011601

1602-
def update(self, configuration, group, visual=True, collision=True):
1602+
def update(self, configuration, group=None, visual=True, collision=True):
16031603
"""Update the robot's geometry.
16041604
16051605
Parameters
@@ -1616,9 +1616,12 @@ def update(self, configuration, group, visual=True, collision=True):
16161616
``True`` if the collision geometry should be also updated, otherwise ``False``.
16171617
Defaults to ``True``.
16181618
"""
1619+
group = group or self.main_group_name if self.semantics else None
1620+
16191621
if not len(configuration.joint_names):
16201622
configuration.joint_names = self.get_configurable_joint_names(group)
16211623
joint_state = dict(zip(configuration.joint_names, configuration.values))
1624+
16221625
self.artist.update(joint_state, visual, collision)
16231626

16241627
def draw_visual(self):

0 commit comments

Comments
 (0)