1from typing
import Tuple, List
3 from ANNarchy.intern.SpecificPopulation
import SpecificPopulation
6 from ANNarchy.core.SpecificPopulation
import SpecificPopulation
9class JointControl(SpecificPopulation):
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.
14 def __init__(self, geometry: Tuple |
None = ..., neuron=..., ip_address: str = ..., port: int = ..., copied: bool = ..., name: str |
None = ...) ->
None:
15 '''Init the JointControl population.
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.
32 def port(self, value) -> None: ...
34 """Connect the population to the gRPC socket. Need to be called once after compile."""
37class JointReadout(SpecificPopulation):
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.
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.
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.
61 def port(self, value) -> 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)