Public Member Functions | |
def | __init__ |
def | record_pressures |
def | status_callback |
def | zero |
Public Attributes | |
l_grip_data | |
l_grip_press | |
r_grip_data | |
r_grip_press | |
status |
Definition at line 8 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.
def pr2_playpen.pressure_writer.PressureWriter.record_pressures | ( | self, | |
file_name, | |||
arm, | |||
time = 10: , |
|||
file_handle = open(file_name, 'w' , |
|||
self, | |||
zero, | |||
start = rospy.get_time()
#might be better to do some condition , |
|||
like, | |||
gripper, | |||
not, | |||
moving, | |||
or, | |||
when, | |||
arm, | |||
is, | |||
moved, | |||
to, | |||
side, | |||
while, | |||
not, | |||
self, | |||
status = = 'moving somewhere again':
print "saving data now ..."
self.r_grip_data.append(self.r_grip_press.get_pressure_readings())
self.l_grip_data.append(self.l_grip_press.get_pressure_readings())
rospy.sleep(0.05)
cPickle.dump(data, file_handle , |
|||
file_handle, | |||
close, | |||
def, | |||
print_pressures, | |||
self | |||
) |
Definition at line 22 of file pressure_writer.py.
def pr2_playpen.pressure_writer.PressureWriter.status_callback | ( | self, | |
data | |||
) |
Definition at line 42 of file pressure_writer.py.
def pr2_playpen.pressure_writer.PressureWriter.zero | ( | self | ) |
Definition at line 18 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.
Definition at line 10 of file pressure_writer.py.