... | @@ -6,6 +6,8 @@ Writer classes subscribe to a topic, the data is taken and formatted as a messag |
... | @@ -6,6 +6,8 @@ Writer classes subscribe to a topic, the data is taken and formatted as a messag |
|
|
|
|
|
## Creating A Writer
|
|
## Creating A Writer
|
|
|
|
|
|
|
|
Writer child classes are put in the `Controllers` directory and the classes that are in that directory should be used as reference when creating a new controller service.
|
|
|
|
|
|
### creating the class
|
|
### creating the class
|
|
To create a new function to send data to the HV Robot, the Writer class must be extended. the child class needs to have a `__init__()` function where the *subscriber* is defined and the probe name is passed to the parent constructor; and a `callback` function where the data is formatted to be passed to the robot over the probes.
|
|
To create a new function to send data to the HV Robot, the Writer class must be extended. the child class needs to have a `__init__()` function where the *subscriber* is defined and the probe name is passed to the parent constructor; and a `callback` function where the data is formatted to be passed to the robot over the probes.
|
|
|
|
|
... | | ... | |