|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef PRIORITYCARRIER_INC
10 #define PRIORITYCARRIER_INC
24 #define STIMUL_THRESHOLD 1.0
25 #define WITH_PRIORITY_DEBUG
52 #ifdef WITH_PRIORITY_DEBUG
69 #endif //WITH_PRIORITY_DEBUG
81 #ifdef WITH_PRIORITY_DEBUG
83 #endif //WITH_PRIORITY_DEBUG
87 #ifdef WITH_PRIORITY_DEBUG
89 #endif //WITH_PRIORITY_DEBUG
105 getPeers().
remove(portName,
this);
118 return "priority_carrier";
160 if(property.check(
"ex")) {
191 std::string portName;
198 #ifdef WITH_PRIORITY_DEBUG
201 #endif //WITH_PRIORITY_DEBUG
204 #endif // PRIORITYCARRIER_INC
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.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
bool isResting(double priority)
contains the definition of a Vector type
bool threadInit() override
Initialization method.
bool recalculate(double t)
Class PriorityGroup.
void getCarrierParams(yarp::os::Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
A starter class for implementing simple modifying carriers.
virtual bool acceptIncomingData(yarp::os::ConnectionReader &reader, PriorityCarrier *source)
contains the definition of a Matrix type
virtual ~PriorityCarrier()
bool configure(yarp::os::ConnectionState &proto) override
Give carrier a shot at looking at how the connection is set up.
yarp::os::BufferedPort< yarp::sig::Vector > debugPort
void setCarrierParams(const yarp::os::Property ¶ms) override
Configure carrier from port administrative commands.
Bottle & findGroup(const std::string &key) const override
Gets a list corresponding to a given keyword.
std::string toString() const override
Get name of carrier.
Allow priority-based message selection.
~PriorityDebugThread() override
bool acceptIncomingData(yarp::os::ConnectionReader &reader) override
Determine whether incoming data should be accepted.
void remove(const std::string &key, typename PR::peer_type *entity)
An abstraction for a periodic thread.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
An interface for reading from a network connection.
PriorityDebugThread(PriorityCarrier *carrier)
Class PriorityDebugThread.
The basic state of a connection - route, streams in use, etc.
double getActualInput(double t)
yarp::os::Bottle excitation
double getActualStimulation(double t)
void threadRelease() override
Release method.
std::string debugPortName
Manager for priority-aware inputs to a given port.
Carrier * create() const override
Factory method.
PriorityCarrier * pcarrier
void run() override
Loop function.
A single value (typically within a Bottle).
A class for storing options and configuration information.
double temporalStimulation