21 const double max_output,
23 const double stiction_up_val,
24 const double stiction_down_val,
32 max_output(max_output),
34 stiction_up_val(stiction_up_val),
35 stiction_down_val(stiction_down_val),
43 if (!read_kp(reader)) {
46 if (!read_kd(reader)) {
49 if (!read_ki(reader)) {
52 if (!read_max_int(reader)) {
55 if (!read_scale(reader)) {
58 if (!read_max_output(reader)) {
61 if (!read_offset(reader)) {
64 if (!read_stiction_up_val(reader)) {
67 if (!read_stiction_down_val(reader)) {
70 if (!read_kff(reader)) {
95 if (!write_kp(writer)) {
98 if (!write_kd(writer)) {
101 if (!write_ki(writer)) {
104 if (!write_max_int(writer)) {
107 if (!write_scale(writer)) {
110 if (!write_max_output(writer)) {
113 if (!write_offset(writer)) {
116 if (!write_stiction_up_val(writer)) {
119 if (!write_stiction_down_val(writer)) {
122 if (!write_kff(writer)) {
138 if (!
write(writer)) {
double ki
integrative gain
double scale
scale for the pid output
double kp
proportional gain
double max_output
max output
double stiction_down_val
down stiction offset added to the pid output
double kff
feedforward gain
bool write(const yarp::os::idl::WireWriter &writer) const override
double stiction_up_val
up stiction offset added to the pid output
bool read(yarp::os::idl::WireReader &reader) override
double offset
pwm offset added to the pid output
double max_int
saturation threshold for the integrator
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::string toString() const
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
For streams capable of holding different kinds of content, check what they actually have.