Exemple #1
0
 def callback(self, cmd_msg):
     pos = cmd_msg.data
     if (pos > 100):
         pos = 100
     elif (pos < 0):
         pos = 0
     Setter.callback(self, pos)
Exemple #2
0
 def callback(self, cmd_msg):
     # callback function - extends the setter.callback functionality
     # formats data to be passed to mindprobe
     pos = cmd_msg.data
     if (pos > 100):
         pos = 100
     elif (pos < 0):
         pos = 0
     Setter.callback(self, pos)
Exemple #3
0
 def set_right(self,cmd_msg):
     # callback to set the right wheel
     vel = cmd_msg.data
     Setter.callback(self,[0,vel])
Exemple #4
0
 def set_left(self,cmd_msg):
     # callback to set the left wheel
     vel = cmd_msg.data
     Setter.callback(self,[vel,0])
Exemple #5
0
 def callback(self, cmd_msg):
     # differential drive callback. 
     vel = twist_to_vel(cmd_msg)
     Setter.callback(self,vel)
Exemple #6
0
 def set_right(self, cmd_msg):
     vel = cmd_msg.data
     Setter.callback(self, [0, vel])
Exemple #7
0
 def set_left(self, cmd_msg):
     vel = cmd_msg.data
     Setter.callback(self, [vel, 0])
Exemple #8
0
 def callback(self, cmd_msg):
     vel = twist_to_vel(cmd_msg)
     Setter.callback(self, vel)