Browse Source

Ros launch button

feature/d435i_testrig
Mohamed Fazil 2 years ago
parent
commit
305c341088
10 changed files with 3642 additions and 44 deletions
  1. +0
    -3
      stretch_camera_testrig/.idea/.gitignore
  2. +0
    -6
      stretch_camera_testrig/.idea/inspectionProfiles/profiles_settings.xml
  3. +0
    -4
      stretch_camera_testrig/.idea/misc.xml
  4. +0
    -8
      stretch_camera_testrig/.idea/modules.xml
  5. +0
    -8
      stretch_camera_testrig/.idea/stretch_camera_testrig.iml
  6. +0
    -6
      stretch_camera_testrig/.idea/vcs.xml
  7. +3600
    -0
      stretch_camera_testrig/data/results/testrig_errors_data_202203091216.yaml
  8. +29
    -0
      stretch_camera_testrig/data/results/testrig_results_202203091216.yaml
  9. +2
    -5
      stretch_camera_testrig/nodes/testrig_analyze_data.py
  10. +11
    -4
      stretch_camera_testrig/nodes/testrig_dashboard.py

+ 0
- 3
stretch_camera_testrig/.idea/.gitignore View File

@ -1,3 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml

+ 0
- 6
stretch_camera_testrig/.idea/inspectionProfiles/profiles_settings.xml View File

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

+ 0
- 4
stretch_camera_testrig/.idea/misc.xml View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" />
</project>

+ 0
- 8
stretch_camera_testrig/.idea/modules.xml View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/stretch_camera_testrig.iml" filepath="$PROJECT_DIR$/.idea/stretch_camera_testrig.iml" />
</modules>
</component>
</project>

+ 0
- 8
stretch_camera_testrig/.idea/stretch_camera_testrig.iml View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

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

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

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


+ 29
- 0
stretch_camera_testrig/data/results/testrig_results_202203091216.yaml View File

@ -0,0 +1,29 @@
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}
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}
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}

+ 2
- 5
stretch_camera_testrig/nodes/testrig_analyze_data.py View File

@ -52,18 +52,15 @@ class TestRig_Analyze:
capture_date = self.data_filename.split('_')[-1]
capture_date = capture_date.split('.')[0]
self.data_capture_date = capture_date
self.test_results_dict = {'capture_id': self.data_capture_date,
'camera_serial': self.realsense_details['serial'],
'firmware': self.realsense_details['firmware'],
'usb':self.realsense_details['usb'],
'number_samples': None,
'null_frames': {},
'lighting_condition': {
'temperature': None,
'brightness': None,
},
'performance_metrics': {}
'performance_metrics': {},
'Realsense Details': self.realsense_details
}
def get_performance_metric(self, error_data_dict):

+ 11
- 4
stretch_camera_testrig/nodes/testrig_dashboard.py View File

@ -3,6 +3,7 @@ from Tkinter import *
from testrig_analyze_data import TestRig_Analyze
import os
import yaml
from subprocess import Popen, PIPE
import numpy as np
from tabulate import tabulate
import math
@ -173,11 +174,17 @@ class TestRig_dashboard():
y2 += 30
x2 = 0
def radiobutton_sel(self):
print('Radio Log')
def run_new_test(self):
print('Run New Test')
ros_log = None
try:
ros_log = Popen("roslaunch stretch_camera_testrig testrig_collect_data.launch", shell=True, bufsize=64, stdin=PIPE, stdout=PIPE,
close_fds=True).stdout.read()
except:
None
print(ros_log)
def radiobutton_sel(self):
print('Radio Button')
def update_nominal_poses(self):
self.log('Updated new Nominal Poses File.')

Loading…
Cancel
Save