Functions | |
| def | get_number |
| get number from command line. | |
| def | init_ft_client |
| def | pose_cb |
Variables | |
| tuple | cam = dr.dragonfly2(camera_name) |
| string | camera_name = 'remote_head' |
| dictionary | current_pose_d = {'mechanism': {}, 'hand': {}} |
| tuple | f = get_number('Enter the spring scale reading', dtype = float) |
| string | fname = 'ft_log_' |
| tuple | ft = ft_client.read(fresh=True, with_time_stamp=False) |
| tuple | ft_client = init_ft_client() |
| dictionary | ft_dict = {} |
| int | i = 0 |
| tuple | im = cam.get_frame() |
| list | measured_force_list = [] |
| string | nm = '%05d.png' |
| dictionary | pose_d = {'mechanism': {}, 'hand': {}} |
| list | spring_scale_list = [] |
| tuple | str = raw_input() |
| list | time_list = [] |
| string | topic_name = '/checkerdetector/ObjectDetection' |
| def collect_data.get_number | ( | prompt, | |
| dtype | |||
| ) |
get number from command line.
Check if the number is of the appropriate dataype.
| dtype | - int, float etc. |
Definition at line 43 of file collect_data.py.
| def collect_data.init_ft_client | ( | ) |
Definition at line 34 of file collect_data.py.
| def collect_data.pose_cb | ( | data, | |
| d | |||
| ) |
Definition at line 19 of file collect_data.py.
| tuple collect_data::cam = dr.dragonfly2(camera_name) |
Definition at line 77 of file collect_data.py.
| string collect_data::camera_name = 'remote_head' |
Definition at line 76 of file collect_data.py.
| dictionary collect_data::current_pose_d = {'mechanism': {}, 'hand': {}} |
Definition at line 63 of file collect_data.py.
| tuple collect_data::f = get_number('Enter the spring scale reading', dtype = float) |
Definition at line 105 of file collect_data.py.
| string collect_data::fname = 'ft_log_' |
Definition at line 114 of file collect_data.py.
| tuple collect_data::ft = ft_client.read(fresh=True, with_time_stamp=False) |
Definition at line 92 of file collect_data.py.
| tuple collect_data::ft_client = init_ft_client() |
Definition at line 61 of file collect_data.py.
| dictionary collect_data::ft_dict = {} |
Definition at line 111 of file collect_data.py.
| int collect_data::i = 0 |
Definition at line 87 of file collect_data.py.
| tuple collect_data::im = cam.get_frame() |
Definition at line 81 of file collect_data.py.
Definition at line 83 of file collect_data.py.
| string collect_data::nm = '%05d.png' |
Definition at line 97 of file collect_data.py.
| dictionary collect_data::pose_d = {'mechanism': {}, 'hand': {}} |
Definition at line 67 of file collect_data.py.
Definition at line 84 of file collect_data.py.
| tuple collect_data::str = raw_input() |
Definition at line 90 of file collect_data.py.
Definition at line 85 of file collect_data.py.
| string collect_data::topic_name = '/checkerdetector/ObjectDetection' |
Definition at line 71 of file collect_data.py.