#include <event.hh>
Private Types | |
typedef SignalBase< int > * | Trigger_t |
typedef std::vector< Trigger_t > | Triggers_t |
Private Member Functions | |
void | addSignal (const std::string &signal) |
bool & | check (bool &ret, const int &time) |
DYNAMIC_GRAPH_ENTITY_DECL () | |
Event (const std::string &name) | |
virtual std::string | getDocString () const |
Header documentation of the python class. More... | |
std::string | getSignalsByName () const |
void | repeat (const int &nbIterations) |
~Event () | |
Private Attributes | |
Signal< bool, int > | checkSOUT |
SignalPtr< bool, int > | conditionSIN |
bool | lastVal_ |
int | repeatAfterNIterations_ |
int | timeSinceUp_ |
Triggers_t | triggers |
Additional Inherited Members | |
Public Types inherited from dynamicgraph::Entity | |
typedef std::map< const std::string, command::Command *> | CommandMap_t |
typedef std::map< std::string, SignalBase< int > *> | SignalMap |
Public Member Functions inherited from dynamicgraph::Entity | |
virtual void | display (std::ostream &os) const |
std::ostream & | displaySignalList (std::ostream &os) const |
Entity (const std::string &name) | |
virtual const std::string & | getClassName () const |
const std::string & | getCommandList () const |
LoggerVerbosity | getLoggerVerbosityLevel () |
LoggerVerbosity | getLoggerVerbosityLevel () |
const std::string & | getName () const |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
CommandMap_t | getNewStyleCommandMap () |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
SignalMap | getSignalMap () const |
double | getStreamPrintPeriod () |
double | getStreamPrintPeriod () |
double | getTimeSample () |
double | getTimeSample () |
bool | hasSignal (const std::string &signame) const |
Logger & | logger () |
Logger const & | logger () const |
Logger & | logger () |
Logger const & | logger () const |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
bool | setStreamPrintPeriod (double t) |
bool | setStreamPrintPeriod (double t) |
bool | setTimeSample (double t) |
bool | setTimeSample (double t) |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~Entity () |
Protected Member Functions inherited from dynamicgraph::Entity | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityDeregistration () |
void | entityRegistration () |
void | signalDeregistration (const std::string &name) |
void | signalRegistration (const SignalArray< int > &signals) |
Protected Attributes inherited from dynamicgraph::Entity | |
CommandMap_t | commandMap |
Logger | logger_ |
std::string | name |
SignalMap | signalMap |
This entity detects changes in value of an input boolean signal
The input signal is
The output signal is
Output value is true if value of input signal changes with respect to the previous evaluation.
Method addSignal stores signals that are recomputed each time the output signal is recomputed and the value is true. One typical use case of this feature consists in plugging the output signal to a ROS topic using dynamicgraph::RosPublish entity (see dynamic_graph_bridge) and to call addSignal with the trigger signal of the RosPublish entity as the input. Thus each time the output signal changes value, the new value is published to the ROS topic.
If command setOnlyUp is called with true as input, signals are recomputed only if the output value switches from false to true.
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
inlineprivatevirtual |
Header documentation of the python class.
Reimplemented from dynamicgraph::Entity.
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |