Skip to content

Commit

Permalink
unit tests start upterm session if run with debug=True and python int…
Browse files Browse the repository at this point in the history
…erface import hsr gripper monitors in add functions
  • Loading branch information
ichumuh committed Jun 13, 2024
1 parent 1f360e3 commit df61a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
- name: start roscore
run: |
roscore &
- if: ${{ (runner.debug == '1') }}
name: Setup upterm session
uses: lhotari/action-upterm@v1
- name: casadi wrapper
run: |
roscd giskardpy
Expand Down
3 changes: 2 additions & 1 deletion src/giskardpy/python_interface/python_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from rospy import ServiceException
from shape_msgs.msg import SolidPrimitive

from giskardpy.monitors.hsr_gripper import OpenHsrGripper, CloseHsrGripper
from std_srvs.srv import Trigger, TriggerResponse, TriggerRequest

import giskard_msgs.msg as giskard_msgs
Expand Down Expand Up @@ -1688,6 +1687,7 @@ def add_open_hsr_gripper(self, start_condition: str = '', name: Optional[str] =
"""
The monitor will send a force to the HSR's gripper to open it.
"""
from giskardpy.monitors.hsr_gripper import OpenHsrGripper
name = name or OpenHsrGripper.__name__
return self.add_monitor(monitor_class=OpenHsrGripper.__name__,
name=name,
Expand All @@ -1697,6 +1697,7 @@ def add_close_hsr_gripper(self, start_condition: str = '', name: Optional[str] =
"""
The monitor will send a force to the HSR's gripper to close it.
"""
from giskardpy.monitors.hsr_gripper import CloseHsrGripper
name = name or CloseHsrGripper.__name__
return self.add_monitor(monitor_class=CloseHsrGripper.__name__,
name=name,
Expand Down

0 comments on commit df61a31

Please sign in to comment.