Classes | |
class | VoiceCommandControl |
Functions | |
def | create_command_dict |
def | create_robot_commands |
def | send_command |
def | send_robot_command |
def | text2int |
Variables | |
tuple | vcc = VoiceCommandControl() |
def voice_command.create_command_dict | ( | command_arr, | |
prefix = '' |
|||
) |
create a dictonary that maps command word to a publisher that will get an empty message when the command is received
Definition at line 147 of file voice_command.py.
def voice_command.create_robot_commands | ( | commands, | |
robots | |||
) |
with the list of commands and the list of robots make the robot array so we can publish to specific robots
Definition at line 158 of file voice_command.py.
def voice_command.send_command | ( | cmd, | |
cmd_dict | |||
) |
publish an Empty message on the cmd if defined in the dictonary of command topics or just return that we don't have a defined command
Definition at line 112 of file voice_command.py.
def voice_command.send_robot_command | ( | robot_number, | |
cmd, | |||
robot_list | |||
) |
publish the command on the specific robot If all is selected it will publish it on every robot on the list otherwise it is based on which robot number is defined
Definition at line 123 of file voice_command.py.
def voice_command.text2int | ( | textnum | ) |
simple text number represnetation to integer value
Definition at line 169 of file voice_command.py.
tuple voice_command::vcc = VoiceCommandControl() |
Definition at line 183 of file voice_command.py.