Exemple #1
0
    def stop(self, m=None):
        """The user has asked to exit the application.
        Example:
            Stop.
        """

        return MachineResponse(self.helper.stop())
Exemple #2
0
    def recite(self, m=None):
        """Speak out the latest image caption.
        Example:
            Tell what you saw.
        """

        return MachineResponse(self.helper.recite())
Exemple #3
0
    def help(self, m=None):
        """The user has asked for help using the application.
        Example:
            Help.
        """

        return MachineResponse(self.helper.help())
Exemple #4
0
    def caption(self, m=None):
        """Read an incoming image and process a caption asynchronously.
        Example:
            Look around you.
        """

        return MachineResponse(self.helper.caption())
Exemple #5
0
    def where(self, m=None):
        """Check the robots map find the closest place.
        Example:
            Where place are you.
        """

        return MachineResponse(self.helper.where())
Exemple #6
0
    def learn(self, m=None):
        """Learn the robots position as the given name.
        Example:
            This location is my "Office".
        """

        return MachineResponse(self.helper.learn(m.input))
Exemple #7
0
    def navigate(self, m=None):
        """The user asked to navigate to a location.
        Example:
            Navigate to the "Office".
        """

        return MachineResponse(self.helper.navigate(m.input))
Exemple #8
0
    def welcome(self, m=None):
        """Provide useful info when the app starts.
        """

        return MachineResponse(self.helper.welcome())