ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
JointPopulation.pyi
1from typing import Tuple, List
2try:
3 from ANNarchy.intern.SpecificPopulation import SpecificPopulation
4
5except:
6 from ANNarchy.core.SpecificPopulation import SpecificPopulation
7
8
9class JointControl(SpecificPopulation):
10 """
11 ANNarchy population class to connect with the iCub joint control, e. g. arm or head.
12 Readout the angles from the ANNarchy Population and send it to the iCub.
13 """
14 def __init__(self, geometry: Tuple | None = ..., neuron=..., ip_address: str = ..., port: int = ..., copied: bool = ..., name: str | None = ...) -> None:
15 '''Init the JointControl population.
16
17 Args:
18 geometry (tuple, optional): ANNarchy population geometry. Defaults to None.
19 neuron (Neuron, optional): ANNarchy Neuron, being used in the population. Defaults to Neuron(equations="r = 0.0").
20 ip_address (str, optional): ip-address of the gRPC connection. Need to fit with the respective joint writer module. Defaults to "0.0.0.0".
21 port (int, optional): port of the gRPC connection. Need to fit with the respective joint reader module. Defaults to 50010.
22 copied (bool, optional): ANNarchy specific parameter. Defaults to False.
23 name (str, optional): individiual name for the population. Defaults to None.
24 '''
25 @property
26 def ip_address(self): ...
27 @ip_address.setter
28 def ip_address(self, value) -> None: ...
29 @property
30 def port(self): ...
31 @port.setter
32 def port(self, value) -> None: ...
33 def connect(self) -> None:
34 """Connect the population to the gRPC socket. Need to be called once after compile."""
35
36
37class JointReadout(SpecificPopulation):
38 """
39 ANNarchy population class to connect with the iCub joint readout, e. g. arm or head.
40 Readout the angles from the iCub and set it as population activation.
41 """
42 def __init__(self, geometry: Tuple | None = ..., joints: List | None = ..., encoded: bool = ..., ip_address: str = ..., port: int = ..., copied: bool = ..., name: str | None = ...) -> None:
43 '''Init the JointReadout population.
44
45 Args:
46 geometry (tuple, optional): ANNarchy population geometry. Defaults to None.
47 joints (list, optional): Specify the joints, which should be accessed. Defaults to None.
48 encoded (bool, optional): Specify if the joint angles should be encoded with a population coding. Defaults to False.
49 ip_address (str, optional): ip-address of the gRPC connection. Need to fit with the respective joint reader module. Defaults to "0.0.0.0".
50 port (int, optional): port of the gRPC connection. Need to fit with the respective joint reader module. Defaults to 50005.
51 copied (bool, optional): ANNarchy specific parameter. Defaults to False.
52 name (str, optional): individiual name for the population. Defaults to None.
53 '''
54 @property
55 def ip_address(self): ...
56 @ip_address.setter
57 def ip_address(self, value) -> None: ...
58 @property
59 def port(self): ...
60 @port.setter
61 def port(self, value) -> None: ...
62 @property
63 def joints(self): ...
64 @joints.setter
65 def joints(self, value) -> None: ...
66 @property
67 def encoded(self): ...
68 @encoded.setter
69 def encoded(self, value) -> None: ...
70 def connect(self) -> None:
71 """Connect the population to the gRPC socket. Need to be called once after compile."""
__init__(self, geometry=None, neuron=Neuron(equations="r = 0.0"), ip_address="0.0.0.0", port=50010, copied=False, name=None)
__init__(self, geometry=None, joints=None, encoded=False, ip_address="0.0.0.0", port=50005, copied=False, name=None)