sot-core
4.11.8
Hierarchical task solver plug-in for dynamic-graph.
|
#include <sot/core/event.hh>
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.