Skip to content

Commit

Permalink
use new style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Medvedev committed Oct 27, 2013
1 parent ea1cd9f commit 3c3f7cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/teleop.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
import vis


class HeadMover:
class HeadMover(object):
def __init__(self):
self._head = baxter_interface.Head()
self.pan_angle = 0
Expand All @@ -79,7 +79,7 @@ def parse_joy(self, joypad):
self.set_pose()


class ImageStatus:
class ImageStatus(object):
def __init__(self):
self.images = {
'indifferent': self._get_image('gerty_indifferent.png'),
Expand All @@ -106,7 +106,7 @@ def set_image(self, img_name):
self.pub.publish(self.images[img_name])


class LimbMover:
class LimbMover(object):
def __init__(self, limb):
self.limb = limb
self.interface = baxter_interface.Limb(limb)
Expand Down Expand Up @@ -152,7 +152,7 @@ def _update_thread(self):
rospy.loginfo("Stopped %s" % self.limb)


class IKSolver:
class IKSolver(object):
def __init__(self, limb):
self.limb = limb
ns = "/sdk/robot/limb/" + self.limb + "/solve_ik_position"
Expand Down Expand Up @@ -204,7 +204,7 @@ def solve(self):
return False


class Teleop:
class Teleop(object):

hydra_msg_lock = threading.Lock()
enabled = False # We wait until the user presses a button
Expand Down
2 changes: 1 addition & 1 deletion src/vis/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from visualization_msgs.msg import Marker


class Vis:
class Vis(object):
def __init__(self):
self.pub = rospy.Publisher(
'/visualization_marker', Marker)
Expand Down

0 comments on commit 3c3f7cc

Please sign in to comment.