Example #1
0
    def __init__(self, config_path):
        import pypot.robot

        from explauto.utils.tracker import OptiTracker
        from pypot.sensor.optibridge import OptiTrackClient
        opti = OptiTrackClient('193.50.110.222', 8989, ('l_hand', 'r_hand', 'wand'))
        opti.start()
        self.tracker = OptiTracker(opti)

        self.robot = pypot.robot.from_json(config_path)
Example #2
0
class PoppyRobot(object):
    def __init__(self, config_path):
        import pypot.robot

        from explauto.utils.tracker import OptiTracker
        from pypot.sensor.optibridge import OptiTrackClient
        opti = OptiTrackClient('193.50.110.222', 8989, ('l_hand', 'r_hand', 'wand'))
        opti.start()
        self.tracker = OptiTracker(opti)

        self.robot = pypot.robot.from_json(config_path)


    def get_position(self, tracked_object):
        return self.tracker.get_position(tracked_object)