sot-core
4.11.8
Hierarchical task solver plug-in for dynamic-graph.
|
Go to the documentation of this file.
10 #ifndef SOT_CORE_BINARYOP_HH
11 #define SOT_CORE_BINARYOP_HH
18 #include <dynamic-graph/linear-algebra.h>
21 #include <dynamic-graph/all-signals.h>
22 #include <dynamic-graph/entity.h>
29 #include <boost/function.hpp>
39 template <
typename Operator>
42 typedef typename Operator::Tin1 Tin1;
43 typedef typename Operator::Tin2 Tin2;
44 typedef typename Operator::Tout Tout;
65 op.addSpecificCommands(*
this, commandMap);
71 SignalPtr<Tin1, int>
SIN1;
73 SignalTimeDependent<Tout, int>
SOUT;
77 const Tin1 &x1 =
SIN1(time);
78 const Tin2 &x2 =
SIN2(time);
86 #endif // #ifndef SOT_CORE_BINARYOP_HH
BinaryOp(const std::string &name)
Definition: binary-op.hh:55
Definition: abstract-sot-external-interface.hh:17
SignalPtr< Tin2, int > SIN2
Definition: binary-op.hh:72
static std::string getTypeIn1Name(void)
Definition: binary-op.hh:48
std::string getDocString() const
Definition: binary-op.hh:53
Definition: binary-op.hh:40
virtual ~BinaryOp(void)
Definition: binary-op.hh:68
static std::string getTypeOutName(void)
Definition: binary-op.hh:50
virtual const std::string & getClassName() const
Definition: binary-op.hh:52
static const std::string CLASS_NAME
Definition: binary-op.hh:51
static std::string getTypeIn2Name(void)
Definition: binary-op.hh:49
SignalTimeDependent< Tout, int > SOUT
Definition: binary-op.hh:73
SignalPtr< Tin1, int > SIN1
Definition: binary-op.hh:68
Tout & computeOperation(Tout &res, int time)
Definition: binary-op.hh:76