Fix mustard scenes
This commit is contained in:
parent
c8ef408252
commit
59ce141072
@ -109,13 +109,12 @@ class SingleViewPolicy(Policy):
|
||||
self.vis.quality(self.task_frame, voxel_size, out.qual, 0.5)
|
||||
|
||||
grasps = select_grid(voxel_size, out, threshold=self.qual_threshold)
|
||||
grasps, scores = self.sort_grasps(grasps, q)
|
||||
grasps, _ = self.sort_grasps(grasps, q)
|
||||
|
||||
if len(grasps) > 0:
|
||||
smin, smax = np.min(scores), np.max(scores)
|
||||
self.best_grasp = grasps[0]
|
||||
self.vis.grasps(self.base_frame, grasps, scores, smin, smax)
|
||||
self.vis.best_grasp(self.base_frame, grasps[0], scores[0], smin, smax)
|
||||
self.vis.grasps(self.base_frame, grasps)
|
||||
self.vis.best_grasp(self.base_frame, self.best_grasp)
|
||||
|
||||
self.done = True
|
||||
|
||||
|
@ -2,5 +2,5 @@ center: [0.5, 0.1, 0.20]
|
||||
q: [0.0, -1.39, 0.0, -2.36, 0.0, 1.57, 0.79]
|
||||
objects:
|
||||
- object_id: 006_mustard_bottle
|
||||
xyz: [0.05, 0.1, 0.0]
|
||||
xyz: [0.0, 0.1, 0.0]
|
||||
rpy: [0, 0, -50]
|
@ -1,6 +1,6 @@
|
||||
center: [0.5, 0.0, 0.40]
|
||||
center: [0.5, 0.1, 0.40]
|
||||
q: [0.0, -1.39, 0.0, -2.36, 0.0, 1.57, 0.79]
|
||||
objects:
|
||||
- object_id: 006_mustard_bottle
|
||||
xyz: [0.05, 0.1, 0.0]
|
||||
rpy: [0, 0, -50]
|
||||
xyz: [0.0, 0.1, 0.0]
|
||||
rpy: [0, 0, 130]
|
Loading…
x
Reference in New Issue
Block a user