Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
flexbe_core.proxy.proxy_action_client.ProxyActionClient Class Reference
Inheritance diagram for flexbe_core.proxy.proxy_action_client.ProxyActionClient:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, topics={}, wait_duration=10)
 
def cancel (self, topic)
 
def get_feedback (self, topic)
 
def get_result (self, topic)
 
def get_state (self, topic)
 
def has_feedback (self, topic)
 
def has_result (self, topic)
 
def is_active (self, topic)
 
def is_available (self, topic)
 
def remove_feedback (self, topic)
 
def remove_result (self, topic)
 
def send_goal (self, topic, goal)
 
def setupClient (self, topic, msg_type, wait_duration=10)
 

Private Member Functions

def _check_topic_available (self, topic, wait_duration=1)
 
def _done_callback (self, topic, terminal_state, result)
 
def _feedback_callback (self, topic, feedback)
 
def _print_wait_warning (self, topic)
 

Static Private Attributes

dictionary _clients = {}
 
dictionary _feedback = {}
 
dictionary _result = {}
 

Detailed Description

A proxy for calling actions.

Definition at line 9 of file proxy_action_client.py.

Constructor & Destructor Documentation

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.__init__ (   self,
  topics = {},
  wait_duration = 10 
)
Initializes the proxy with optionally a given set of clients.

@type topics: dictionary string - message class
@param topics: A dictionay containing a collection of topic - message type pairs.

@type wait_duration: int
@param wait_duration: Defines how long to wait for each client in the
    given set to become available (if it is not already available).

Definition at line 18 of file proxy_action_client.py.

Member Function Documentation

def flexbe_core.proxy.proxy_action_client.ProxyActionClient._check_topic_available (   self,
  topic,
  wait_duration = 1 
)
private
Checks whether a topic is available.

@type topic: string
@param topic: The topic of the action.

@type wait_duration: int
@param wait_duration: Defines how long to wait for the given client if it is not available right now.

Definition at line 168 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient._done_callback (   self,
  topic,
  terminal_state,
  result 
)
private

Definition at line 71 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient._feedback_callback (   self,
  topic,
  feedback 
)
private

Definition at line 74 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient._print_wait_warning (   self,
  topic 
)
private

Definition at line 200 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.cancel (   self,
  topic 
)
Cancels the current action call on the given action topic.

@type topic: string
@param topic: The topic of interest.

Definition at line 159 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.get_feedback (   self,
  topic 
)
Returns the latest feedback message of the given action call.

@type topic: string
@param topic: The topic of interest.

Definition at line 122 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.get_result (   self,
  topic 
)
Returns the result message of the given action call.

@type topic: string
@param topic: The topic of interest.

Definition at line 95 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.get_state (   self,
  topic 
)
Determines the current actionlib state of the given action topic.
A list of possible states is defined in actionlib_msgs/GoalStatus.

@type topic: string
@param topic: The topic of interest.

Definition at line 140 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.has_feedback (   self,
  topic 
)
Checks if the given action call has any feedback.

@type topic: string
@param topic: The topic of interest.

Definition at line 113 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.has_result (   self,
  topic 
)
Checks if the given action call already has a result.

@type topic: string
@param topic: The topic of interest.

Definition at line 86 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.is_active (   self,
  topic 
)
Determines if an action request is already being processed on the given topic.

@type topic: string
@param topic: The topic of interest.

Definition at line 150 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.is_available (   self,
  topic 
)
Checks if the client on the given action topic is available.

@type topic: string
@param topic: The topic of interest.

Definition at line 77 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.remove_feedback (   self,
  topic 
)
Removes the latest feedback message of the given action call.

@type topic: string
@param topic: The topic of interest.

Definition at line 131 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.remove_result (   self,
  topic 
)
Removes the latest result message of the given action call.

@type topic: string
@param topic: The topic of interest.

Definition at line 104 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.send_goal (   self,
  topic,
  goal 
)
Performs an action call on the given topic.

@type topic: string
@param topic: The topic to call.

@type goal: action goal
@param goal: The request to send to the action server.

Definition at line 49 of file proxy_action_client.py.

def flexbe_core.proxy.proxy_action_client.ProxyActionClient.setupClient (   self,
  topic,
  msg_type,
  wait_duration = 10 
)
Tries to set up an action client for calling it later.

@type topic: string
@param topic: The topic of the action to call.

@type msg_type: msg type
@param msg_type: The type of messages of this action client.

@type wait_duration: int
@param wait_duration: Defines how long to wait for the given client if it is not available right now.

Definition at line 32 of file proxy_action_client.py.

Member Data Documentation

dictionary flexbe_core.proxy.proxy_action_client.ProxyActionClient._clients = {}
staticprivate

Definition at line 13 of file proxy_action_client.py.

dictionary flexbe_core.proxy.proxy_action_client.ProxyActionClient._feedback = {}
staticprivate

Definition at line 16 of file proxy_action_client.py.

dictionary flexbe_core.proxy.proxy_action_client.ProxyActionClient._result = {}
staticprivate

Definition at line 15 of file proxy_action_client.py.


The documentation for this class was generated from the following file:


flexbe_core
Author(s): Philipp Schillinger
autogenerated on Sun Dec 13 2020 04:01:39