/attention_manager/set_policy
#
Caution
This documentation page has been auto-generated.
It may be missing some details.
/attention_manager/set_policy
Quick Facts
- Category
- Message type
attention_manager/SetPolicy
Change the high-level attention behaviour of the robot. See attention_management for details.
Quick snippets#
Call the service from command-line#
$ rosservice call /attention_manager/set_policy attention_manager/SetPolicy
# (tip: press Tab to complete the message prototype)
Call the service from a Python script#
#!/usr/bin/env python
import rospy
from attention_manager.srv import *
if __name__ == "__main__":
rospy.wait_for_service("/attention_manager/set_policy")
try:
proxy = rospy.ServiceProxy("/attention_manager/set_policy", SetPolicy)
response = proxy(args...) # check the attention_manager/SetPolicy message type for the expected arguments
rospy.loginfo(response)
except rospy.ServiceException as e:
rospy.logerror("Service call failed: %s" % e)