Example #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)
Example #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)
Example #3
0
 def set_right(self,cmd_msg):
     # callback to set the right wheel
     vel = cmd_msg.data
     Setter.callback(self,[0,vel])
Example #4
0
 def set_left(self,cmd_msg):
     # callback to set the left wheel
     vel = cmd_msg.data
     Setter.callback(self,[vel,0])
Example #5
0
 def callback(self, cmd_msg):
     # differential drive callback. 
     vel = twist_to_vel(cmd_msg)
     Setter.callback(self,vel)
Example #6
0
 def set_right(self, cmd_msg):
     vel = cmd_msg.data
     Setter.callback(self, [0, vel])
Example #7
0
 def set_left(self, cmd_msg):
     vel = cmd_msg.data
     Setter.callback(self, [vel, 0])
Example #8
0
 def callback(self, cmd_msg):
     vel = twist_to_vel(cmd_msg)
     Setter.callback(self, vel)