RobotLabLTH / skiros2

A skill-based platform for ROS v.2
Other
163 stars 20 forks source link

GUI crashes when skill manager is restarted while a skill is running and a new skill is started afterwards #93

Open matthias-mayr opened 8 months ago

matthias-mayr commented 8 months ago

When restarting the skill manager while a skill is running, the GUI crashes when starting the first skill after the skill manager becomes online again:

Traceback (most recent call last):
  File "/home/matthias/Workspaces/skiros2_ws/build/skiros2_gui/skiros2_gui/core/skiros_widget.py", line 1331, in on_skill_exe_button_clicked
    if self._sli.agent.execute(execution_id=self._sli.agent.task):
  File "/home/matthias/Workspaces/skiros2_ws/build/skiros2_skill/skiros2_skill/ros/skill_manager_interface.py", line 42, in task
    return self.tasks[0]
IndexError: list index out of range