Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def init(self):
     Setter.init(self, (1206, 1207))
Ejemplo n.º 4
0
 def init(self):
     Setter.init(self, 1080)