Browse Source

Radio Btn Selection added

feature/d435i_testrig
Mohamed Fazil 2 years ago
parent
commit
c7af808725
6 changed files with 9717 additions and 3634 deletions
  1. +6
    -0
      stretch_camera_testrig/.idea/vcs.xml
  2. +41
    -0
      stretch_camera_testrig/.idea/workspace.xml
  3. +9599
    -3599
      stretch_camera_testrig/data/results/testrig_errors_data_202203091216.yaml
  4. +59
    -23
      stretch_camera_testrig/data/results/testrig_results_202203091216.yaml
  5. +3
    -3
      stretch_camera_testrig/nodes/testrig_analyze_data.py
  6. +9
    -9
      stretch_camera_testrig/nodes/testrig_dashboard.py

+ 6
- 0
stretch_camera_testrig/.idea/vcs.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

+ 41
- 0
stretch_camera_testrig/.idea/workspace.xml View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="8154f261-5024-4ad3-94b0-67914c52580a" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/nodes/testrig_analyze_data.py" beforeDir="false" afterPath="$PROJECT_DIR$/nodes/testrig_analyze_data.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/nodes/testrig_dashboard.py" beforeDir="false" afterPath="$PROJECT_DIR$/nodes/testrig_dashboard.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="267BfFMYq4KkadjfcEp1PtbnkKk" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="8154f261-5024-4ad3-94b0-67914c52580a" name="Changes" comment="" />
<created>1646764847826</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1646764847826</updated>
</task>
<servers />
</component>
</project>

+ 9599
- 3599
stretch_camera_testrig/data/results/testrig_errors_data_202203091216.yaml
File diff suppressed because it is too large
View File


+ 59
- 23
stretch_camera_testrig/data/results/testrig_results_202203091216.yaml View File

@ -1,29 +1,65 @@
Realsense Details: ''
capture_id: '202203091216'
lighting_condition: {brightness: null, temperature: null}
null_frames: {base_left_marker_pose: 0, base_right_marker_pose: 0, shoulder_marker_pose: 0,
wrist_inside_marker_pose: 0, wrist_top_marker_pose: 0}
lighting_condition:
brightness: null
temperature: null
null_frames:
base_left_marker_pose: 0
base_right_marker_pose: 0
shoulder_marker_pose: 0
wrist_inside_marker_pose: 0
wrist_top_marker_pose: 0
number_samples: 600
performance_metrics:
angle_rotation_error:
base_left_marker_pose: {maximum: 3.1258228069143574, mean: 3.090495677559066,
median: 3.0898352426275784, rmse: 3.090518944468393}
base_right_marker_pose: {maximum: 3.141583905313619, mean: 3.13170178989854, median: 3.1330645842886318,
rmse: 3.131710155183963}
shoulder_marker_pose: {maximum: 3.117145749446174, mean: 3.07786045902488, median: 3.0775851890028987,
rmse: 3.077881724110398}
wrist_inside_marker_pose: {maximum: 3.141327402355638, mean: 3.1058216452255563,
median: 3.1062270425421623, rmse: 3.1058908098530496}
wrist_top_marker_pose: {maximum: 3.141473924121154, mean: 3.1082500276239067,
median: 3.112768283406675, rmse: 3.1083324817414675}
base_left_marker_pose:
maximum: 3.1258228069143574
mean: 3.090495677559066
median: 3.0898352426275784
rmse: 3.090518944468393
base_right_marker_pose:
maximum: 3.141583905313619
mean: 3.13170178989854
median: 3.1330645842886318
rmse: 3.131710155183963
shoulder_marker_pose:
maximum: 3.117145749446174
mean: 3.07786045902488
median: 3.0775851890028987
rmse: 3.077881724110398
wrist_inside_marker_pose:
maximum: 3.141327402355638
mean: 3.1058216452255563
median: 3.1062270425421623
rmse: 3.1058908098530496
wrist_top_marker_pose:
maximum: 3.141473924121154
mean: 3.1082500276239067
median: 3.112768283406675
rmse: 3.1083324817414675
euclidean_error:
base_left_marker_pose: {maximum: 0.5790332362367818, mean: 0.5786669509096053,
median: 0.5786675250115955, rmse: 0.5786669620339555}
base_right_marker_pose: {maximum: 0.5775522418555454, mean: 0.5768582518676268,
median: 0.5768797683076176, rmse: 0.5768583085342299}
shoulder_marker_pose: {maximum: 0.5841755924455108, mean: 0.583766495075335, median: 0.5837691236193006,
rmse: 0.5837665124825672}
wrist_inside_marker_pose: {maximum: 0.5809248639389007, mean: 0.5804067895137061,
median: 0.5804198165198842, rmse: 0.5804068348609547}
wrist_top_marker_pose: {maximum: 0.5824827029263467, mean: 0.5817229397175923,
median: 0.5817343124317399, rmse: 0.5817230226763274}
base_left_marker_pose:
maximum: 0.5790332362367818
mean: 0.5786669509096053
median: 0.5786675250115955
rmse: 0.5786669620339555
base_right_marker_pose:
maximum: 0.5775522418555454
mean: 0.5768582518676268
median: 0.5768797683076176
rmse: 0.5768583085342299
shoulder_marker_pose:
maximum: 0.5841755924455108
mean: 0.583766495075335
median: 0.5837691236193006
rmse: 0.5837665124825672
wrist_inside_marker_pose:
maximum: 0.5809248639389007
mean: 0.5804067895137061
median: 0.5804198165198842
rmse: 0.5804068348609547
wrist_top_marker_pose:
maximum: 0.5824827029263467
mean: 0.5817229397175923
median: 0.5817343124317399
rmse: 0.5817230226763274

+ 3
- 3
stretch_camera_testrig/nodes/testrig_analyze_data.py View File

@ -22,9 +22,9 @@ data_file = None
class TestRig_Analyze:
def __init__(self, data_filename=None):
self.data_directory = os.path.expanduser('~/catkin_ws/src/stretch_ros/stretch_camera_testrig/data')
self.nominal_poses_filename = os.path.expanduser(
'~/catkin_ws/src/stretch_ros/stretch_camera_testrig/config/testrig_marker_info.yaml')
self.ros_package_dir = os.path.expanduser('~/catkin_ws/src/stretch_ros/stretch_camera_testrig')
self.data_directory = self.ros_package_dir+'/data'
self.nominal_poses_filename = self.ros_package_dir+'/config/testrig_marker_info.yaml'
self.data_keys = ['base_left_marker_pose',
'base_right_marker_pose',
'wrist_inside_marker_pose',

+ 9
- 9
stretch_camera_testrig/nodes/testrig_dashboard.py View File

@ -13,11 +13,10 @@ import copy
class TestRig_dashboard():
def __init__(self):
self.data_directory = os.path.expanduser('~/catkin_ws/src/stretch_ros/stretch_camera_testrig/data')
self.nominal_poses_filename = os.path.expanduser(
'~/catkin_ws/src/stretch_ros/stretch_camera_testrig/config/testrig_marker_info.yaml')
self.nominal_poses_filename = os.path.expanduser(
'~/catkin_ws/src/stretch_ros/stretch_camera_testrig/config/testrig_marker_info.yaml')
self.ros_package_dir = os.path.expanduser('~/catkin_ws/src/stretch_ros/stretch_camera_testrig')
self.data_directory = self.ros_package_dir + '/data'
self.nominal_poses_filename = self.ros_package_dir + '/config/testrig_marker_info.yaml'
self.nominal_poses_filename = self.ros_package_dir + '/config/testrig_marker_info.yaml'
self.data_keys = ['base_left_marker_pose',
'base_right_marker_pose',
@ -73,11 +72,12 @@ class TestRig_dashboard():
self.update_nominal_poses_btn.place(x=x_off + 20, y=y_off + 280)
self.nominal_poses_radiobuttons = []
self.nominal_poses_selector_vars = []
self.radio_var = IntVar()
vi = 0
for key in self.data_keys:
self.nominal_poses_selector_vars.append(IntVar)
r = Radiobutton(self.window, text=key, value=0,
r = Radiobutton(self.window, text=key, value=vi, var=self.radio_var,
command=self.radiobutton_sel)
vi = vi + 1
self.nominal_poses_radiobuttons.append(r)
for i in range(len(self.nominal_poses_radiobuttons)):
self.nominal_poses_radiobuttons[i].place(x=x_off + 155, y=y_off + 150 + i * 20)
@ -184,7 +184,7 @@ class TestRig_dashboard():
print(ros_log)
def radiobutton_sel(self):
print('Radio Button')
print('selected {}'.format(self.data_keys[self.radio_var.get()]))
def update_nominal_poses(self):
self.log('Updated new Nominal Poses File.')

Loading…
Cancel
Save