Skip to content

Commit

Permalink
[sphand_ros] Add reflectance_param to format_printed_prox_to_csv
Browse files Browse the repository at this point in the history
  • Loading branch information
pazeshun committed Feb 12, 2020
1 parent 36e4188 commit 811e482
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ def main():
# elif 'init_value' in line:
# init = yaml.load(line, Loader=yaml.SafeLoader)['init_value']
# print(init + diff)
print(diff)
print('{},'.format(diff), end='')
cnt = cnt + 1
elif cnt == 3:
if 'prop_const' in line:
# Old msg
print(yaml.load(line,
Loader=yaml.SafeLoader)['prop_const'])
cnt = 0
elif 'reflectance_param' in line:
# New msg
print(yaml.load(line,
Loader=yaml.SafeLoader)['reflectance_param'])
cnt = 0
line = f.readline()
f.close()
Expand Down

0 comments on commit 811e482

Please sign in to comment.