|
| | FakeBattery () |
| |
| | FakeBattery (const FakeBattery &)=delete |
| |
| | FakeBattery (FakeBattery &&)=delete |
| |
| FakeBattery & | operator= (const FakeBattery &)=delete |
| |
| FakeBattery & | operator= (FakeBattery &&)=delete |
| |
| | ~FakeBattery () override=default |
| |
| bool | open (yarp::os::Searchable &config) override |
| | Open the DeviceDriver. More...
|
| |
| bool | close () override |
| | Close the DeviceDriver. More...
|
| |
| void | run () override |
| | Loop function. More...
|
| |
| bool | getBatteryVoltage (double &voltage) override |
| | Get the instantaneous voltage measurement. More...
|
| |
| bool | getBatteryCurrent (double ¤t) override |
| | Get the instantaneous current measurement. More...
|
| |
| bool | getBatteryCharge (double &charge) override |
| | get the battery status of charge More...
|
| |
| bool | getBatteryStatus (Battery_status &status) override |
| | get the battery status More...
|
| |
| bool | getBatteryInfo (std::string &info) override |
| | get the battery hardware characteristics (e.g. More...
|
| |
| bool | getBatteryTemperature (double &temperature) override |
| | get the battery temperature More...
|
| |
| void | setBatteryVoltage (const double voltage) override |
| |
| void | setBatteryCurrent (const double current) override |
| |
| void | setBatteryCharge (const double charge) override |
| |
| void | setBatteryStatus (const yarp::dev::IBattery::Battery_status status) override |
| |
| void | setBatteryInfo (const std::string &info) override |
| |
| void | setBatteryTemperature (const double temperature) override |
| |
| double | getBatteryVoltage () override |
| |
| double | getBatteryCurrent () override |
| |
| double | getBatteryCharge () override |
| |
| Battery_status | getBatteryStatus () override |
| |
| std::string | getBatteryStatusString () override |
| |
| std::string | getBatteryInfo () override |
| |
| double | getBatteryTemperature () override |
| |
| | PeriodicThread (double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No, PeriodicThreadClock clockAccuracy=PeriodicThreadClock::Relative) |
| | Constructor. More...
|
| |
| | PeriodicThread (double period, PeriodicThreadClock clockAccuracy) |
| | Constructor. More...
|
| |
| virtual | ~PeriodicThread () |
| |
| bool | start () |
| | Call this to start the thread. More...
|
| |
| void | step () |
| | Call this to "step" the thread rather than starting it. More...
|
| |
| void | stop () |
| | Call this to stop the thread, this call blocks until the thread is terminated (and releaseThread() called). More...
|
| |
| void | askToStop () |
| | Stop the thread. More...
|
| |
| bool | isRunning () const |
| | Returns true when the thread is started, false otherwise. More...
|
| |
| bool | isSuspended () const |
| | Returns true when the thread is suspended, false otherwise. More...
|
| |
| bool | setPeriod (double period) |
| | Set the (new) period of the thread. More...
|
| |
| double | getPeriod () const |
| | Return the current period of the thread. More...
|
| |
| void | suspend () |
| | Suspend the thread, the thread keeps running by doLoop is never executed. More...
|
| |
| void | resume () |
| | Resume the thread if previously suspended. More...
|
| |
| void | resetStat () |
| | Reset thread statistics. More...
|
| |
| double | getEstimatedPeriod () const |
| | Return estimated period since last reset. More...
|
| |
| void | getEstimatedPeriod (double &av, double &std) const |
| | Return estimated period since last reset. More...
|
| |
| unsigned int | getIterations () const |
| | Return the number of iterations performed since last reset. More...
|
| |
| double | getEstimatedUsed () const |
| | Return the estimated duration of the run() function since last reset. More...
|
| |
| void | getEstimatedUsed (double &av, double &std) const |
| | Return estimated duration of the run() function since last reset. More...
|
| |
| int | setPriority (int priority, int policy=-1) |
| | Set the priority and scheduling policy of the thread, if the OS supports that. More...
|
| |
| int | getPriority () const |
| | Query the current priority of the thread, if the OS supports that. More...
|
| |
| int | getPolicy () const |
| | Query the current scheduling policy of the thread, if the OS supports that. More...
|
| |
| virtual | ~IBattery () |
| |
| virtual bool | getBatteryVoltage (double &voltage)=0 |
| | Get the instantaneous voltage measurement. More...
|
| |
| virtual bool | getBatteryCurrent (double ¤t)=0 |
| | Get the instantaneous current measurement. More...
|
| |
| virtual bool | getBatteryCharge (double &charge)=0 |
| | get the battery status of charge More...
|
| |
| virtual bool | getBatteryStatus (Battery_status &status)=0 |
| | get the battery status More...
|
| |
| virtual bool | getBatteryTemperature (double &temperature)=0 |
| | get the battery temperature More...
|
| |
| virtual bool | getBatteryInfo (std::string &battery_info)=0 |
| | get the battery hardware characteristics (e.g. More...
|
| |
| | DeviceDriver () |
| |
| | DeviceDriver (const DeviceDriver &other)=delete |
| |
| | DeviceDriver (DeviceDriver &&other) noexcept=delete |
| |
| DeviceDriver & | operator= (const DeviceDriver &other)=delete |
| |
| DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
| |
| | ~DeviceDriver () override |
| |
| bool | open (yarp::os::Searchable &config) override |
| | Open the DeviceDriver. More...
|
| |
| bool | close () override |
| | Close the DeviceDriver. More...
|
| |
| virtual std::string | id () const |
| | Return the id assigned to the PolyDriver. More...
|
| |
| virtual void | setId (const std::string &id) |
| | Set the id for this device. More...
|
| |
| template<class T > |
| bool | view (T *&x) |
| | Get an interface to the device driver. More...
|
| |
| virtual DeviceDriver * | getImplementation () |
| | Some drivers are bureaucrats, pointing at others. More...
|
| |
| virtual | ~IConfig () |
| | Destructor. More...
|
| |
| virtual bool | open (Searchable &config) |
| | Initialize the object. More...
|
| |
| virtual bool | close () |
| | Shut the object down. More...
|
| |
| virtual bool | configure (Searchable &config) |
| | Change online parameters. More...
|
| |
| | FakeBatteryService () |
| |
| virtual void | setBatteryVoltage (const double voltage) |
| |
| virtual void | setBatteryCurrent (const double current) |
| |
| virtual void | setBatteryCharge (const double charge) |
| |
| virtual void | setBatteryStatus (const yarp::dev::IBattery::Battery_status status) |
| |
| virtual void | setBatteryInfo (const std::string &info) |
| |
| virtual void | setBatteryTemperature (const double temperature) |
| |
| virtual double | getBatteryVoltage () |
| |
| virtual double | getBatteryCurrent () |
| |
| virtual double | getBatteryCharge () |
| |
| virtual yarp::dev::IBattery::Battery_status | getBatteryStatus () |
| |
| virtual std::string | getBatteryStatusString () |
| |
| virtual std::string | getBatteryInfo () |
| |
| virtual double | getBatteryTemperature () |
| |
| virtual std::vector< std::string > | help (const std::string &functionName="--all") |
| |
| bool | read (yarp::os::ConnectionReader &connection) override |
| | Read this object from a network connection. More...
|
| |
| yarp::os::WireLink & | yarp () |
| | Get YARP state associated with this object. More...
|
| |
| const yarp::os::WireLink & | yarp () const |
| | Get YARP state associated with this object (const version). More...
|
| |
| virtual | ~PortReader () |
| | Destructor. More...
|
| |
| virtual bool | read (ConnectionReader &reader)=0 |
| | Read this object from a network connection. More...
|
| |
| virtual Type | getReadType () const |
| |
fakeBattery: Documentation to be added
Definition at line 24 of file fakeBattery.h.