signal-wrapper.cc
Go to the documentation of this file.
1 // Copyright (c) 2018, Joseph Mirabel
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 
5 
7 #include <dynamic-graph/factory.h>
8 
9 namespace dynamicgraph {
10 namespace python {
12  const SignalArray<int>& signals) {
14 }
15 
16 void PythonSignalContainer::rmSignal(const std::string& name) {
18 }
19 
21  "PythonSignalContainer");
22 
23 template <class T, class Time>
24 bool SignalWrapper<T, Time>::checkCallable(pyobject c, std::string& error) {
25  if (PyCallable_Check(c.ptr()) == 0) {
26  error = boost::python::extract<std::string>(c.attr("__str__")());
27  error += " is not callable";
28  return false;
29  }
30  return true;
31 }
32 
33 template class SignalWrapper<bool, int>;
34 template class SignalWrapper<int, int>;
35 template class SignalWrapper<float, int>;
36 template class SignalWrapper<double, int>;
37 template class SignalWrapper<Vector, int>;
38 } // namespace python
39 } // namespace dynamicgraph
void signalRegistration(const SignalArray< int > &signals)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(PythonSignalContainer, "PythonSignalContainer")
void rmSignal(const std::string &name)
static bool checkCallable(pyobject c, std::string &error)
void signalDeregistration(const std::string &name)
void signalRegistration(const SignalArray< int > &signals)


dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:55:50