15 const double bemf_scale,
17 const double ktau_scale,
18 const double viscousPos,
19 const double viscousNeg,
20 const double coulombPos,
21 const double coulombNeg,
22 const double velocityThres) :
25 bemf_scale(bemf_scale),
27 ktau_scale(ktau_scale),
28 viscousPos(viscousPos),
29 viscousNeg(viscousNeg),
30 coulombPos(coulombPos),
31 coulombNeg(coulombNeg),
32 velocityThres(velocityThres)
39 if (!read_bemf(reader)) {
42 if (!read_bemf_scale(reader)) {
45 if (!read_ktau(reader)) {
48 if (!read_ktau_scale(reader)) {
51 if (!read_viscousPos(reader)) {
54 if (!read_viscousNeg(reader)) {
57 if (!read_coulombPos(reader)) {
60 if (!read_coulombNeg(reader)) {
63 if (!read_velocityThres(reader)) {
88 if (!write_bemf(writer)) {
91 if (!write_bemf_scale(writer)) {
94 if (!write_ktau(writer)) {
97 if (!write_ktau_scale(writer)) {
100 if (!write_viscousPos(writer)) {
103 if (!write_viscousNeg(writer)) {
106 if (!write_coulombPos(writer)) {
109 if (!write_coulombNeg(writer)) {
112 if (!write_velocityThres(writer)) {
128 if (!
write(writer)) {
yMotorTorqueParameters()=default
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string toString() const
bool read(yarp::os::idl::WireReader &reader) override
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