Check kinematics of the top baselines

This commit is contained in:
Michel Breyer
2021-09-11 12:00:52 +02:00
parent 7e6eb53fa7
commit 0203f93d7e
4 changed files with 29 additions and 19 deletions

View File

@@ -20,7 +20,6 @@ class GraspController:
def __init__(self, policy):
self.policy = policy
self.load_parameters()
self.lookup_transforms()
self.init_service_proxies()
self.init_robot_connection()
self.init_moveit()
@@ -33,10 +32,6 @@ class GraspController:
self.depth_topic = rospy.get_param("~camera/depth_topic")
self.T_grasp_ee = Transform.from_list(rospy.get_param("~ee_grasp_offset")).inv()
def lookup_transforms(self):
tf.init()
self.T_ee_cam = tf.lookup(self.ee_frame, self.cam_frame)
def init_service_proxies(self):
self.reset_env = rospy.ServiceProxy("reset", Reset)
self.switch_controller = rospy.ServiceProxy(
@@ -52,6 +47,7 @@ class GraspController:
rospy.sleep(1.0) # wait for connections to be established
# msg = to_pose_stamped_msg(Transform.t([0.4, 0, 0.4]), self.base_frame)
# self.moveit.scene.add_box("table", msg, size=(0.5, 0.5, 0.02))
self.policy.moveit = self.moveit
def switch_to_cartesian_velocity_control(self):
req = SwitchControllerRequest()