|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef YARP_DEV_BATTERYWRAPPER_H
20 #define YARP_DEV_BATTERYWRAPPER_H
46 #define DEFAULT_THREAD_PERIOD 0.02 //s
111 bool close()
override;
127 std::string m_streamingPortName;
128 std::string m_rpcPortName;
129 std::string m_quitPortName;
137 std::string m_sensorId;
140 bool m_enable_shutdown;
144 char m_log_buffer[1024];
157 void notify_message(std::string msg);
158 void emergency_shutdown(std::string msg);
159 void check_battery_status(
double battery_charge);
160 void stop_robot(std::string quit_port);
163 #endif // YARP_DEV_BATTERYWRAPPER_H
bool threadInit() override
Initialization method.
void threadRelease() override
Release method.
A base class for nested structures that can be searched.
contains the definition of a Vector type
batteryWrapper: Device that expose a battery sensor (using the IBattery interface) on the YARP networ...
Interface implemented by all device drivers.
bool detachAll() override
Detach the object (you must have first called attach).
A mini-server for network communication.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A container for a device driver.
An abstraction for a periodic thread.
An interface for reading from a network connection.
An abstraction for a time stamp and/or sequence number.
A generic battery interface.
Interface for an object that can wrap/attach to to another.
void run() override
Loop function.
bool attachAll(const yarp::dev::PolyDriverList &p) override
Attach to a list of objects.
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.