actuator_key.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 
6 
7 """ Contains a class that holds diagram informations
8 .. module:: node
9 """
10 
11 import converter.node as node
12 import converter.xar_types as xar_types
13 
14 
16  """ Stores informations about ActuatorKey in the xar format
17  """
18 
19  def __init__(self, attrs):
20  super(ActuatorKey, self).__init__("ActuatorKey")
21 
22  # Attributes
23  self.frame = attrs.getValue('frame')
24  self.value = attrs.getValue('value')
25  self.smooth = attrs.getValue('smooth')
26  self.symmetrical = attrs.getValue('symmetrical')
27 
28  # Elements
29  self.tangents = []
30 
31  self._function_map = {'Tangent': ActuatorKey.attach_tangent}
32 
33  def attach_tangent(self, attrs):
34  self.tangents.append(xar_types.tangent(attrs.getValue("side"),
35  attrs.getValue("interpType"),
36  attrs.getValue("abscissaParam"),
37  attrs.getValue("ordinateParam")))
38 
39  def beacon(self):
40  return "Key"
converter.node.actuator_key.ActuatorKey.__init__
def __init__(self, attrs)
Definition: actuator_key.py:19
converter.node
Definition: xarconverter/converter/node/__init__.py:1
converter.xar_types
Definition: xar_types.py:1
converter.xar_types.tangent
Definition: xar_types.py:72
converter.node.actuator_key.ActuatorKey
Definition: actuator_key.py:15
converter.node.Node._function_map
_function_map
Definition: xarconverter/converter/node/__init__.py:25
converter.node.actuator_key.ActuatorKey.tangents
tangents
Definition: actuator_key.py:29
converter.node.actuator_key.ActuatorKey.beacon
def beacon(self)
Definition: actuator_key.py:39
converter.node.actuator_key.ActuatorKey.frame
frame
Definition: actuator_key.py:23
converter.node.actuator_key.ActuatorKey.symmetrical
symmetrical
Definition: actuator_key.py:26
converter.node.actuator_key.ActuatorKey.attach_tangent
def attach_tangent(self, attrs)
Definition: actuator_key.py:33
converter.node.actuator_key.ActuatorKey.value
value
Definition: actuator_key.py:24
converter.node.Node
Definition: xarconverter/converter/node/__init__.py:12
converter.node.actuator_key.ActuatorKey.smooth
smooth
Definition: actuator_key.py:25


naoqi_libqicore
Author(s): Aldebaran
autogenerated on Wed Sep 14 2022 02:22:41