def run(self, rospy, hostname): # initialize the connection and create subscribers Setter.init(self,(1206,1207)) rospy.Subscriber('/'+hostname+'/cmd_vel', Twist, self.callback) rospy.Subscriber('/'+hostname+'/cmd_vel_left', Float64, self.set_left) rospy.Subscriber('/'+hostname+'/cmd_vel_right', Float64, self.set_right)
def run(self, rospy, hostname): # intializes the mp connection and runs a subscriber for setting the arm position. Setter.init(self, 1077) rospy.Subscriber('/' + hostname + '/set_arm_pos', Float32, self.callback)
def init(self): Setter.init(self, (1206, 1207))
def init(self): Setter.init(self, 1080)