helper.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 ##
00003 # Copyright (C) 2013 TopCoder Inc., All Rights Reserved.
00004 #
00005 # @author KennyAlive
00006 # @version 1.0
00007 #
00008 
00009 import time, math
00010 
00011 # Time the test wait for gui loading
00012 GUI_WAIT_TIME = 25.0
00013 
00014 # Default pause time for short actions
00015 DEFAULT_PAUSE = 2.5
00016 
00017 # The topic's parent name
00018 TOPIC_NAME = '/taskboard/TaskboardPanelA'
00019 
00020 # The service's parent name
00021 SERVICE_PARENT = '/taskboard'
00022 
00023 # Available services
00024 SERVICE_MANIPULATE_POWER_COVER   = SERVICE_PARENT + '/manipulate_power_cover'
00025 SERVICE_MANIPULATE_POWER_SWITCH  = SERVICE_PARENT + '/manipulate_power_switch'
00026 SERVICE_MANIPULATE_ROCKER_SWITCH = SERVICE_PARENT + '/manipulate_rocker_switch_a01'
00027 SERVICE_MANIPULATE_NUMPAD        = SERVICE_PARENT + '/manipulate_numpad'
00028 SERVICE_MANIPULATE_SAFE_TOGGLE   = SERVICE_PARENT + '/manipulate_safe_toggle'
00029 
00030 def deg2rad(degrees):
00031     return math.pi * degrees / 180
00032 
00033 def wait(pause = DEFAULT_PAUSE):
00034     time.sleep(pause)


gazebo_taskboard
Author(s): TCSASSEMBLER
autogenerated on Thu Jan 2 2014 11:32:30