Public Member Functions | Public Attributes
voice_command.VoiceCommandControl Class Reference

List of all members.

Public Member Functions

def __init__
def command

Public Attributes

 global_commands
 robot_commands
 serv

Detailed Description

Node to translate a voice/text command into a ROS message command
  This node takes in a list of robots prefixes, a list of global commands and topics, and a list of robot
  commands and topics. 
  
    When a global command is received in a request it publishes a blank message on that topic.

    When a robot command is received which means robot #, or all. It will publish a command on that topic
    with the robot prefex added to the namespace. 
    and example launch file to set this up is shown below.

      <node name="voice_commands" type="voice_command.py" pkg="ros_glass_tools">
        <rosparam param="global_commands">
          [ [stop, stop],[go, go] ]
       
        </rosparam>
        <rosparam param="robots">
          [a, b]
        </rosparam>
        <rosparam param="robot_commands">
          [
            [forward, forward],
            [backward, backward]
          ]
        </rosparam>
       </node>
    

Definition at line 19 of file voice_command.py.


Constructor & Destructor Documentation

Definition at line 49 of file voice_command.py.


Member Function Documentation

def voice_command.VoiceCommandControl.command (   self,
  request 
)
  Handle a service request at the moment handles requests of the following syntax for one word commands
  execute `command` -> Publish to the global command topic if defined
  all `command` -> Publsih the command on all robots topics if defined 
  robot # `command` -> Publsih the command on the # robot topics if robot exists and command defined
  Returns the warning message or success string

Definition at line 66 of file voice_command.py.


Member Data Documentation

Definition at line 49 of file voice_command.py.

Definition at line 49 of file voice_command.py.

Definition at line 49 of file voice_command.py.


The documentation for this class was generated from the following file:


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21