Skip to content

Commit

Permalink
small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ichumuh committed Feb 6, 2018
1 parent e8d61aa commit 8cb2f1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/giskardpy/giskardpy_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def state_cb(self, data):
self.state = data

def set_default_goals(self):
self.cartesian_controller.set_goal(self.robot.get_eef_position_quaternion())
for eef in self.robot.end_effectors:
self.cartesian_controller.set_goal({eef: self.robot.link_fk_quaternion(eef)})

def transformPose(self, target_frame, pose, time=None):
transform = self.tfBuffer.lookup_transform(target_frame,
Expand Down Expand Up @@ -235,6 +236,7 @@ def plot_trajectory(self, tj):

robot_description = rospy.get_param('robot_description')
# r = PR2(urdf_str=robot_description, default_joint_velocity=1)
r = Boxy(urdf_str=robot_description, default_joint_velocity=1)
# r = Boxy(urdf_str=robot_description, default_joint_velocity=1)
r = DonBot(urdf_str=robot_description, default_joint_velocity=1)
ros_controller = RosController(r, '/donbot/commands')
rospy.spin()

0 comments on commit 8cb2f1c

Please sign in to comment.