Monitors perception channels on the robot arms. More...
Monitors perception channels on the robot arms.
Important: rate must be the same for both data_capture and monitoring. Values are gathered timestep by timestep.
Usecase: apm = ArmPerceptionMonitor(0) for trajectory in trajectories: apm.start_data_capture() trajectory.run() trajectory.wait_for_completion() apm.stop_data_capture() mean_function, variance_function = apm.generate_model(...)
Definition at line 186 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor.__init__ | ( | self, | |
arm | |||
) |
Initializes internal variables.
arm | 0 if right, 1 if left |
percept_mon_list | list of perceptions to monitor; if None, do all |
Definition at line 193 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._data_spawn_thread | ( | self | ) | [private] |
Definition at line 569 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._dynamic_collision_classifying | ( | self | ) | [private] |
Definition at line 654 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._dynamic_collision_detection | ( | self | ) | [private] |
Definition at line 628 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._finish_collision | ( | self, | |
type = "Unlabled" , |
|||
coord = 0 |
|||
) | [private] |
Definition at line 716 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._gather_perception | ( | self | ) | [private] |
Definition at line 412 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._monitor_data_collector | ( | self | ) | [private] |
Definition at line 589 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._setup_collision_type | ( | self, | |
static_collision_type | |||
) | [private] |
Definition at line 544 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._static_collision_detection | ( | self | ) | [private] |
Definition at line 685 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor._trigger_collision | ( | self | ) | [private] |
Definition at line 710 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor.activate_sensing | ( | self, | |
tf_listener = None |
|||
) |
Initializes the listeners on the sensor topics.
This must be started before any data can be collected from the arms.
Definition at line 287 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor.begin_collision_detection | ( | self, | |
dynamic_detection = False , |
|||
callback = None , |
|||
static_collision_type = None , |
|||
debug = False |
|||
) |
Begin monitoring peception data to make sure it doesn't deviate from the model provided.
TODO DOCS
duration | If None, continue capturing until stop is called. Else, stop capturing after duration seconds have passed. |
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Initialize variables.
Definition at line 384 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Stop capturing perception data.
Store output data in datasets list for later statistics.
Definition at line 734 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor.process_signals | ( | self, | |
datasets | |||
) |
do processing of signals in current coord group sigs_proc contains a list of three signal sets each corresponds to a list of convolutions of the signals with a degree derivative of a gaussian with various scales
Definition at line 432 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
def pr2_overhead_grasping.perception_monitor.ArmPerceptionMonitor.start_data_capture | ( | self, | |
duration = None |
|||
) |
Begin capturing peception data for all of the listeners.
duration | If None, continue capturing until stop is called. Else, stop capturing after duration seconds have passed. |
Definition at line 396 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Stop capturing perception data.
Store output data in datasets list for later statistics.
Definition at line 419 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 710 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 716 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 384 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Classifiers #################.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 396 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 384 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 544 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 243 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 497 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 287 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.
Definition at line 194 of file pr2_overhead_grasping/src/pr2_overhead_grasping/perception_monitor.py.