Public Member Functions | |
def | __init__ (self, ns, ActionSpec) |
Constructs an ActionClient and opens connections to an ActionServer. More... | |
def | cancel_all_goals (self) |
Cancels all goals currently running on the action server. More... | |
def | cancel_goals_at_and_before_time (self, time) |
Cancels all goals prior to a given timestamp. More... | |
def | send_goal (self, goal, transition_cb=None, feedback_cb=None) |
Sends a goal to the action server. More... | |
def | stop (self) |
Stop the action client. More... | |
def | wait_for_action_server_to_start (self, timeout=rospy.Duration(0.0)) |
[Deprecated] Use wait_for_server More... | |
def | wait_for_server (self, timeout=rospy.Duration(0.0)) |
Waits for the ActionServer to connect to this client. More... | |
Public Attributes | |
ActionFeedback | |
ActionGoal | |
ActionResult | |
ActionSpec | |
feedback_sub | |
last_status_msg | |
manager | |
ns | |
pub_cancel | |
pub_goal | |
pub_queue_size | |
result_sub | |
status_sub | |
sub_queue_size | |
Private Member Functions | |
def | _feedback_cb (self, msg) |
def | _result_cb (self, msg) |
def | _status_cb (self, msg) |
Definition at line 498 of file action_client.py.
def actionlib.action_client.ActionClient.__init__ | ( | self, | |
ns, | |||
ActionSpec | |||
) |
Constructs an ActionClient and opens connections to an ActionServer.
ns | The namespace in which to access the action. For example, the "goal" topic should occur under ns/goal |
ActionSpec | The *Action message type. The ActionClient will grab the other message types from this type. |
Definition at line 506 of file action_client.py.
|
private |
Definition at line 640 of file action_client.py.
|
private |
Definition at line 637 of file action_client.py.
|
private |
Definition at line 633 of file action_client.py.
def actionlib.action_client.ActionClient.cancel_all_goals | ( | self | ) |
Cancels all goals currently running on the action server.
Preempts all goals running on the action server at the point that the cancel message is serviced by the action server.
Definition at line 566 of file action_client.py.
def actionlib.action_client.ActionClient.cancel_goals_at_and_before_time | ( | self, | |
time | |||
) |
Cancels all goals prior to a given timestamp.
This preempts all goals running on the action server for which the time stamp is earlier than the specified time stamp this message is serviced by the ActionServer.
Definition at line 576 of file action_client.py.
def actionlib.action_client.ActionClient.send_goal | ( | self, | |
goal, | |||
transition_cb = None , |
|||
feedback_cb = None |
|||
) |
Sends a goal to the action server.
goal | An instance of the *Goal message. |
transition_cb | Callback that gets called on every client state transition for the sent goal. It should take in a ClientGoalHandle as an argument. |
feedback_cb | Callback that gets called every time feedback is received for the sent goal. It takes two parameters: a ClientGoalHandle and an instance of the *Feedback message. |
Definition at line 559 of file action_client.py.
def actionlib.action_client.ActionClient.stop | ( | self | ) |
Stop the action client.
Definition at line 538 of file action_client.py.
def actionlib.action_client.ActionClient.wait_for_action_server_to_start | ( | self, | |
timeout = rospy.Duration(0.0) |
|||
) |
[Deprecated] Use wait_for_server
Definition at line 581 of file action_client.py.
def actionlib.action_client.ActionClient.wait_for_server | ( | self, | |
timeout = rospy.Duration(0.0) |
|||
) |
Waits for the ActionServer to connect to this client.
Often, it can take a second for the action server & client to negotiate a connection, thus, risking the first few goals to be dropped. This call lets the user wait until the network connection to the server is negotiated
Definition at line 589 of file action_client.py.
actionlib.action_client.ActionClient.ActionFeedback |
Definition at line 516 of file action_client.py.
actionlib.action_client.ActionClient.ActionGoal |
Definition at line 514 of file action_client.py.
actionlib.action_client.ActionClient.ActionResult |
Definition at line 515 of file action_client.py.
actionlib.action_client.ActionClient.ActionSpec |
Definition at line 513 of file action_client.py.
actionlib.action_client.ActionClient.feedback_sub |
Definition at line 535 of file action_client.py.
actionlib.action_client.ActionClient.last_status_msg |
Definition at line 508 of file action_client.py.
actionlib.action_client.ActionClient.manager |
Definition at line 526 of file action_client.py.
actionlib.action_client.ActionClient.ns |
Definition at line 507 of file action_client.py.
actionlib.action_client.ActionClient.pub_cancel |
Definition at line 524 of file action_client.py.
actionlib.action_client.ActionClient.pub_goal |
Definition at line 523 of file action_client.py.
actionlib.action_client.ActionClient.pub_queue_size |
Definition at line 520 of file action_client.py.
actionlib.action_client.ActionClient.result_sub |
Definition at line 534 of file action_client.py.
actionlib.action_client.ActionClient.status_sub |
Definition at line 533 of file action_client.py.
actionlib.action_client.ActionClient.sub_queue_size |
Definition at line 530 of file action_client.py.