Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 """
00055 This file contains settings for robot configuration
00056
00057 """
00058
00059 class Ddict(dict):
00060 def __init__(self, default=None):
00061 self.default = default
00062
00063 def __getitem__(self, key):
00064 if not self.has_key(key):
00065 self[key] = self.default()
00066 return dict.__getitem__(self, key)
00067
00068
00069 component_list = ['torso','tray','arm','sdh','head']
00070
00071
00072 robot_config_pre = Ddict(dict)
00073
00074 robot_config_post = Ddict(dict)
00075
00076
00077
00078
00079
00080
00081 robot_config_need_no_action = ['DM','NC','CALCULATION']
00082
00083
00084
00085 robot_config_pre['navigation_no_object']['torso']='home'
00086 robot_config_pre['navigation_no_object']['tray']='down'
00087 robot_config_pre['navigation_no_object']['arm']='look_at_table-to-folded'
00088 robot_config_pre['navigation_no_object']['sdh']='home'
00089 robot_config_pre['navigation_no_object']['head']='front'
00090
00091 robot_config_post['navigation_no_object']['torso']='DM'
00092 robot_config_post['navigation_no_object']['tray']='NC'
00093 robot_config_post['navigation_no_object']['arm']='NC'
00094 robot_config_post['navigation_no_object']['sdh']='DM'
00095 robot_config_post['navigation_no_object']['head']='front'
00096
00097
00098
00099
00100 robot_config_pre['navigation_object_on_tray']['torso']='home'
00101 robot_config_pre['navigation_object_on_tray']['tray']='NC'
00102 robot_config_pre['navigation_object_on_tray']['arm']='folded'
00103 robot_config_pre['navigation_object_on_tray']['sdh']='DM'
00104 robot_config_pre['navigation_object_on_tray']['head']='front'
00105
00106 robot_config_post['navigation_object_on_tray']['torso']="DM"
00107 robot_config_post['navigation_object_on_tray']['tray']='NC'
00108 robot_config_post['navigation_object_on_tray']['arm']='NC'
00109 robot_config_post['navigation_object_on_tray']['sdh']='DM'
00110 robot_config_post['navigation_object_on_tray']['head']='front'
00111
00112
00113
00114
00115 robot_config_pre['navigation_object_in_sdh']['torso']='home'
00116 robot_config_pre['navigation_object_in_sdh']['tray']='down'
00117 robot_config_pre['navigation_object_in_sdh']['arm']='hold'
00118 robot_config_pre['navigation_object_in_sdh']['sdh']='NC'
00119 robot_config_pre['navigation_object_in_sdh']['head']='front'
00120
00121 robot_config_post['navigation_object_in_sdh']['torso']="DM"
00122 robot_config_post['navigation_object_in_sdh']['tray']='NC'
00123 robot_config_post['navigation_object_in_sdh']['arm']='NC'
00124 robot_config_post['navigation_object_in_sdh']['sdh']='NC'
00125 robot_config_post['navigation_object_in_sdh']['head']='front'
00126
00127
00128
00129
00130
00131
00132 robot_config_pre['navigation_object_on_tray_and_sdh']['torso']='home'
00133 robot_config_pre['navigation_object_on_tray_and_sdh']['tray']='NC'
00134 robot_config_pre['navigation_object_on_tray_and_sdh']['arm']='NC'
00135 robot_config_pre['navigation_object_on_tray_and_sdh']['sdh']='NC'
00136 robot_config_pre['navigation_object_on_tray_and_sdh']['head']='front'
00137
00138 robot_config_post['navigation_object_on_tray_and_sdh']['torso']="DM"
00139 robot_config_post['navigation_object_on_tray_and_sdh']['tray']='NC'
00140 robot_config_post['navigation_object_on_tray_and_sdh']['arm']='NC'
00141 robot_config_post['navigation_object_on_tray_and_sdh']['sdh']='NC'
00142 robot_config_post['navigation_object_on_tray_and_sdh']['head']='front'
00143
00144
00145
00146
00147 robot_config_pre['detection']['torso']='DM'
00148 robot_config_pre['detection']['tray']='down'
00149 robot_config_pre['detection']['arm']='folded'
00150 robot_config_pre['detection']['sdh']='cylclosed'
00151 robot_config_pre['detection']['head']='DM'
00152
00153 robot_config_post['detection']['torso']='home'
00154 robot_config_post['detection']['tray']='NC'
00155 robot_config_post['detection']['arm']='NC'
00156 robot_config_post['detection']['sdh']='cylclosed'
00157 robot_config_post['detection']['head']='front'
00158
00159
00160
00161 robot_config_pre['enviroment_update']['torso']='DM'
00162 robot_config_pre['enviroment_update']['tray']='down'
00163 robot_config_pre['enviroment_update']['arm']='folded'
00164 robot_config_pre['enviroment_update']['sdh']='DM'
00165 robot_config_pre['enviroment_update']['head']='DM'
00166
00167 robot_config_post['enviroment_update']['torso']='home'
00168 robot_config_post['enviroment_update']['tray']='NC'
00169 robot_config_post['enviroment_update']['arm']='NC'
00170 robot_config_post['enviroment_update']['sdh']='DM'
00171 robot_config_post['enviroment_update']['head']='front'
00172
00173
00174
00175
00176 robot_config_pre['grasp']['torso']='DM'
00177 robot_config_pre['grasp']['tray']='down'
00178 robot_config_pre['grasp']['arm']='folded-to-look_at_table'
00179 robot_config_pre['grasp']['sdh']='DM'
00180 robot_config_pre['grasp']['head']='back'
00181
00182 robot_config_post['grasp']['torso']='DM'
00183 robot_config_post['grasp']['tray']='NC'
00184 robot_config_post['grasp']['arm']='CALCULATION'
00185 robot_config_post['grasp']['sdh']='CALCULATION'
00186 robot_config_post['grasp']['head']='DM'
00187
00188
00189
00190 robot_config_pre['put_on_tray']['torso']='home'
00191 robot_config_pre['put_on_tray']['tray']='up'
00192 robot_config_pre['put_on_tray']['arm']='NC'
00193 robot_config_pre['put_on_tray']['sdh']='NC'
00194 robot_config_pre['put_on_tray']['head']='NC'
00195
00196 robot_config_post['put_on_tray']['torso']="home"
00197 robot_config_post['put_on_tray']['tray']='NC'
00198 robot_config_post['put_on_tray']['arm']='folded'
00199 robot_config_post['put_on_tray']['sdh']='home'
00200 robot_config_post['put_on_tray']['head']='front'
00201
00202
00203
00204
00205
00206