optimize data_gen
This commit is contained in:
@@ -346,8 +346,6 @@ def select_obj(objects, stages, robot):
|
||||
ik_success, _ = robot.solve_ik(grasp_poses, ee_type='gripper', arm=arm, type='Simple')
|
||||
grasp_poses_canonical, grasp_poses = grasp_poses_canonical[ik_success], grasp_poses[ik_success]
|
||||
grasp_widths = grasp_widths[ik_success]
|
||||
print('%s, %s, Filtered grasp pose with isaac-sim IK: %d/%d' % (action, passive_obj_id, grasp_poses.shape[0],
|
||||
ik_success.shape[0]))
|
||||
|
||||
if len(grasp_poses) == 0:
|
||||
print(action, 'No grasp_gripper_pose can pass Isaac IK')
|
||||
|
||||
@@ -249,7 +249,7 @@ class IsaacSimRpcRobot(Robot):
|
||||
"""
|
||||
type = content["type"]
|
||||
arm_name = content.get('arm', "right")
|
||||
print(arm_name)
|
||||
#print(arm_name)
|
||||
if type == "matrix":
|
||||
if isinstance(content["matrix"], list):
|
||||
content["matrix"] = np.array(content["matrix"])
|
||||
|
||||
@@ -419,7 +419,5 @@ class Agent(BaseAgent):
|
||||
|
||||
task_info_saved = task_info.copy()
|
||||
self.robot.client.SendTaskStatus(success, fail_stage_step)
|
||||
if success:
|
||||
print(">>>>>>>>>>>>>>>> Success!!!!!!!!!!!!!!!!")
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user