30 port_data_out.
close();
35 if (!port_data_out.
open(std::string(
"/") + module_name +
"/all_joints_data_out:o"));
62 if (driver && driver->ienc_ll)
72 if (driver && driver->ipid_ll)
82 if (driver && driver->ipid_ll)
92 if (driver && driver->imotenc_ll)
112 for (
int ix=0;ix<size;ix++)
117 for (
int ix=0;ix<size;ix++)
122 for (
int ix=0;ix<size;ix++)
127 for (
int ix=0;ix<size;ix++)
132 for (
int ix=0;ix<size;ix++)
138 this->port_data_out.
write();
bool threadInit() override
Initialization method.
void run() override
Loop function.
BroadcastingThread(std::string module_name, robotDriver *p, action_class *a, double period=0.001)
std::deque< action_frame > action_frames_vector
virtual bool getEncoders(double *encs)=0
Read the position of all axes.
virtual bool getMotorEncoders(double *encs)=0
Read the position of all motor encoders.
virtual bool getPidOutputs(const PidControlTypeEnum &pidtype, double *outs)=0
Get the output of the controllers (e.g.
virtual bool getPidErrors(const PidControlTypeEnum &pidtype, double *errs)=0
Get the error of all joints.
A simple collection of objects that can be described and transmitted in a portable way.
void addFloat64(yarp::conf::float64_t x)
Places a 64-bit floating point number in the bottle, at the end of the list.
void clear()
Empties the bottle of any objects it contains.
void addInt32(std::int32_t x)
Places a 32-bit integer in the bottle, at the end of the list.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void interrupt() override
Interrupt any current reads or writes attached to the port.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::BufferedPort::write.
double now()
Return the current time in seconds, relative to an arbitrary starting point.