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

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

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

        return MachineResponse(self.helper.help())
예제 #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())
예제 #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())
예제 #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))
예제 #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))
예제 #8
0
    def welcome(self, m=None):
        """Provide useful info when the app starts.
        """

        return MachineResponse(self.helper.welcome())