Minor formatting
This commit is contained in:
parent
787dbb0e68
commit
305654a200
@ -76,18 +76,15 @@ class GraspController:
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
bbox = self.reset()
|
bbox = self.reset()
|
||||||
|
|
||||||
self.switch_to_cartesian_velocity_control()
|
self.switch_to_cartesian_velocity_control()
|
||||||
with Timer("search_time"):
|
with Timer("search_time"):
|
||||||
grasp = self.search_grasp(bbox)
|
grasp = self.search_grasp(bbox)
|
||||||
|
|
||||||
if grasp:
|
if grasp:
|
||||||
self.switch_to_joint_trajectory_control()
|
self.switch_to_joint_trajectory_control()
|
||||||
with Timer("grasp_time"):
|
with Timer("grasp_time"):
|
||||||
res = self.execute_grasp(grasp)
|
res = self.execute_grasp(grasp)
|
||||||
else:
|
else:
|
||||||
res = "aborted"
|
res = "aborted"
|
||||||
|
|
||||||
return self.collect_info(res)
|
return self.collect_info(res)
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user