/active_chatbot#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/active_chatbot Quick Facts

Category

Speech and language processing

Message type

chatbot_msgs/GetActiveChatbot

Returns the chatbot that is currently running on the robot.

Quick snippets#

Call the service from command-line#
$ rosservice call /active_chatbot chatbot_msgs/GetActiveChatbot
# (tip: press Tab to complete the message prototype)
Call the service from a Python script#
#!/usr/bin/env python

import rospy
from chatbot_msgs.srv import *


if __name__ == "__main__":

    rospy.wait_for_service("/active_chatbot")

    try:
        proxy = rospy.ServiceProxy("/active_chatbot", GetActiveChatbot)
        response = proxy(args...) # check the chatbot_msgs/GetActiveChatbot message type for the expected arguments
        rospy.loginfo(response)

    except rospy.ServiceException as e:
        rospy.logerror("Service call failed: %s" % e)