Removed extraneous set_target_position function

This commit is contained in:
Patrick Goebel 2015-12-15 06:48:07 -08:00
parent dfebe5af8b
commit dc0a18b8b0

View File

@ -74,7 +74,7 @@ class Servo(Joint):
# Where to we want the servo positioned
self.desired = self.neutral + radians(rospy.get_param(n + "init_position", 0))
# Where is the servo positioned now
self.position = 0.0
@ -125,9 +125,6 @@ class Servo(Joint):
def get_current_position(self):
return self.device.servo_read(self.pin) - self.neutral
def set_target_position(self):
return self.device.servo_read(self.pin)
def relax_cb(self, req):
self.device.detach_servo(self.pin)