interfaced with gsnet
This commit is contained in:
@@ -107,7 +107,7 @@ class GraspController:
|
||||
self.view_sphere = ViewHalfSphere(bbox, self.min_z_dist)
|
||||
self.policy.activate(bbox, self.view_sphere)
|
||||
timer = rospy.Timer(rospy.Duration(1.0 / self.control_rate), self.send_vel_cmd)
|
||||
r = rospy.Rate(self.policy_rate)
|
||||
r = rospy.Rate(self.control_rate)
|
||||
|
||||
if(self.policy.policy_type=="single_view"):
|
||||
while not self.policy.done:
|
||||
@@ -127,6 +127,9 @@ class GraspController:
|
||||
# Arrived
|
||||
moving_to_The_target = False
|
||||
r.sleep()
|
||||
# sleep 3s
|
||||
for i in range(self.control_rate*3):
|
||||
r.sleep()
|
||||
elif(self.policy.policy_type=="multi_view"):
|
||||
while not self.policy.done:
|
||||
depth_img, seg_image, pose, q = self.get_state()
|
||||
|
Reference in New Issue
Block a user