6#ifndef YARP_YARPROBOTINTERFACE_MODULE_H
7#define YARP_YARPROBOTINTERFACE_MODULE_H
25 bool close()
override;
38 std::string
quit()
override;
39 inline std::string
bye()
override {
return quit(); }
40 inline std::string
exit()
override {
return quit(); }
44 Private *
const mPriv;
A base-class for standard YARP modules that supports ResourceFinder.
virtual bool attach(yarp::os::Port &source)
Make any input from a Port object go to the respond() method.
Helper class for finding config files and other external resources.
A port that is specialized as an RPC server.
std::string get_robot() override
Returns robot name.
std::string exit() override
Closes yarprobotinterface.
bool updateModule() override
Override this to do whatever your module needs to do.
std::string get_phase() override
Returns current phase.
double getPeriod() override
You can override this to control the approximate periodicity at which updateModule() is called by run...
std::string bye() override
Closes yarprobotinterface.
bool close() override
Close function.
bool attach(yarp::os::RpcServer &source) override
Make any input from an RpcServer object go to the respond() method.
bool configure(yarp::os::ResourceFinder &rf) override
Configure the module, pass a ResourceFinder object to the module.
int32_t get_level() override
Returns current level.
bool is_ready() override
Returns true if yarprobotinterface is ready (all startup actions performed and no interrupt called).
std::string quit() override
Closes yarprobotinterface.
bool interruptModule() override
Try to halt any ongoing operations by threads managed by the module.