Browse Source

Global Variables bug update

feature/d435i_testrig
Mohamed Fazil 2 years ago
parent
commit
32d328a80d
4 changed files with 46885 additions and 6 deletions
  1. +12752
    -0
      stretch_camera_testrig/data/testrig_collected_data_202202161622.yaml
  2. +34128
    -0
      stretch_camera_testrig/data/testrig_collected_data_202202161924.yaml
  3. +4
    -5
      stretch_camera_testrig/nodes/collect_head_calibration_data.py
  4. +1
    -1
      stretch_camera_testrig/nodes/test_basic.py

+ 12752
- 0
stretch_camera_testrig/data/testrig_collected_data_202202161622.yaml
File diff suppressed because it is too large
View File


+ 34128
- 0
stretch_camera_testrig/data/testrig_collected_data_202202161924.yaml
File diff suppressed because it is too large
View File


+ 4
- 5
stretch_camera_testrig/nodes/collect_head_calibration_data.py View File

@ -694,9 +694,7 @@ class CollectHeadCalibrationDataNode:
t = time.localtime()
capture_date = str(t.tm_year) + str(t.tm_mon).zfill(2) + str(t.tm_mday).zfill(2) + str(t.tm_hour).zfill(2) + str(t.tm_min).zfill(2)
temp_loc = '/home/hello-robot/catkin_ws/src/stretch_ros/stretch_camera_testrig/data/' #Change it
filename = temp_loc + 'testrig_collected_data_' + capture_date + '.yaml'
filename = self.testrig_data_path + 'testrig_collected_data_' + capture_date + '.yaml'
rospy.loginfo('Saving calibration_data to a YAML file named {0}'.format(filename))
fid = open(filename, 'w')
@ -801,9 +799,10 @@ class CollectHeadCalibrationDataNode:
rate = rospy.Rate(self.rate)
self.testrig_data_path = '/home/hello-robot/catkin_ws/src/stretch_ros/stretch_camera_testrig/data/' #Change it
self.testrig_data_collect(number_of_samples=self.number_of_testrig_samples)
def get_testrig_metrics(self):
return None
if __name__ == '__main__':
parser = ap.ArgumentParser(description='Collect head calibration data.')

+ 1
- 1
stretch_camera_testrig/nodes/test_basic.py View File

@ -32,7 +32,7 @@ if __name__ == '__main__':
try:
node = CollectHeadCalibrationDataNode(test_rig=True)
node.number_of_testrig_samples = 200
node.number_of_testrig_samples = 500
node.main(collect_check_data)
except rospy.ROSInterruptException:
pass

Loading…
Cancel
Save