Robot Skills Messaging (Controlcommand)
Skill Messaging (ControlCommand) Example
Robot skills are multithreaded, which means they run at the same time in separate threads. Using ControlCommand(), one robot skill can send a command to another robot skill. For example, a speech recognition skill can instruct a camera device to begin face tracking.
Skills can also send commands to each other programmatically. In this example, speech is detected and events are passed between skills to produce the desired robot behavior. This type of interaction can also be recursive if needed. To send commands, use the ControlCommand() script method. This command is available in the programming script interfaces of supported robot skills, allowing one skill that supports scripting to instruct another skill to perform an action.
Renaming a Robot Skill
Because ControlCommand() references robot skills by name, you can rename a robot skill when necessary. To do this, right-click the robot skill title bar, select Rename, and enter a new name.
Read more about using ControlCommand() in script programming: