8 typedef bp::return_value_policy<bp::reference_existing_object>
11 template <
typename Operator>
14 dg::python::exposeEntity<O_t, bp::bases<dg::Entity>,
15 dg::python::AddCommands>()
16 .def_readonly(
"sin", &O_t::SIN)
17 .def_readonly(
"sout", &O_t::SOUT);
20 template <
typename Operator>
23 dg::python::exposeEntity<O_t, bp::bases<dg::Entity>,
24 dg::python::AddCommands>()
25 .def_readonly(
"sin1", &O_t::SIN1)
26 .def_readonly(
"sin2", &O_t::SIN2)
27 .def_readonly(
"sout", &O_t::SOUT);
30 template <
typename Operator>
34 return dg::python::exposeEntity<O_t, bp::bases<dg::Entity>,
35 dg::python::AddCommands>()
36 .def_readonly(
"sout", &O_t::SOUT)
38 .add_property(
"n_sin", &B_t::getSignalNumber, &B_t::setSignalNumber,
39 "the number of input signal.")
41 .def(
"setSignalNumber", &B_t::setSignalNumber,
42 "set the number of input signal.", bp::arg(
"size"))
43 .def(
"getSignalNumber", &B_t::getSignalNumber,
44 "get the number of input signal.", bp::arg(
"size"));
47 template <
typename Operator>
49 static void run() { exposeVariadicOpBase<Operator>(); }
56 exposeVariadicOpBase<dgs::AdderVariadic<T> >().add_property(
57 "coeffs", +[](E_t &e) {
return e.op.coeffs; },
63 template <
typename Operator>
72 exposeUnaryOp<VectorSelecter>();
73 exposeUnaryOp<VectorComponent>();
74 exposeUnaryOp<MatrixSelector>();
75 exposeUnaryOp<MatrixColumnSelector>();
76 exposeUnaryOp<MatrixTranspose>();
77 exposeUnaryOp<Diagonalizer>();
82 exposeUnaryOp<Inverser<Matrix> >();
83 exposeUnaryOp<Inverser<MatrixHomogeneous> >();
84 exposeUnaryOp<Inverser<MatrixTwist> >();
85 exposeUnaryOp<Normalize>();
86 exposeUnaryOp<InverserRotation>();
87 exposeUnaryOp<InverserQuaternion>();
93 exposeUnaryOp<SkewSymToVector>();
94 exposeUnaryOp<PoseUThetaToMatrixHomo>();
95 exposeUnaryOp<MatrixHomoToPoseUTheta>();
96 exposeUnaryOp<MatrixHomoToSE3Vector>();
97 exposeUnaryOp<SE3VectorToMatrixHomo>();
98 exposeUnaryOp<PoseQuaternionToMatrixHomo>();
99 exposeUnaryOp<MatrixHomoToPoseQuaternion>();
100 exposeUnaryOp<MatrixHomoToPoseRollPitchYaw>();
101 exposeUnaryOp<PoseRollPitchYawToMatrixHomo>();
102 exposeUnaryOp<PoseRollPitchYawToPoseUTheta>();
103 exposeUnaryOp<HomoToMatrix>();
104 exposeUnaryOp<MatrixToHomo>();
105 exposeUnaryOp<HomoToTwist>();
106 exposeUnaryOp<HomoToRotation>();
107 exposeUnaryOp<MatrixHomoToPose>();
108 exposeUnaryOp<RPYToMatrix>();
109 exposeUnaryOp<MatrixToRPY>();
110 exposeUnaryOp<RPYToQuaternion>();
111 exposeUnaryOp<QuaternionToRPY>();
112 exposeUnaryOp<QuaternionToMatrix>();
113 exposeUnaryOp<MatrixToQuaternion>();
114 exposeUnaryOp<MatrixToUTheta>();
115 exposeUnaryOp<UThetaToQuaternion>();
119 exposeBinaryOp<Multiplier_double_vector>();
120 exposeBinaryOp<Multiplier_matrix_vector>();
121 exposeBinaryOp<Multiplier_matrixHomo_vector>();
122 exposeBinaryOp<Multiplier_matrixTwist_vector>();
125 exposeBinaryOp<Substraction<dynamicgraph::Matrix> >();
126 exposeBinaryOp<Substraction<dynamicgraph::Vector> >();
127 exposeBinaryOp<Substraction<double> >();
130 exposeBinaryOp<VectorStack>();
133 exposeBinaryOp<Composer>();
136 exposeBinaryOp<ConvolutionTemporal>();
139 exposeBinaryOp<Comparison<double> >();
140 exposeBinaryOp<MatrixComparison<Vector> >();
142 exposeBinaryOp<WeightedAdder<dynamicgraph::Matrix> >();
143 exposeBinaryOp<WeightedAdder<dynamicgraph::Vector> >();
144 exposeBinaryOp<WeightedAdder<double> >();
148 exposeVariadicOp<VectorMix>();
151 exposeVariadicOp<AdderVariadic<Matrix> >();
152 exposeVariadicOp<AdderVariadic<Vector> >();
153 exposeVariadicOp<AdderVariadic<double> >();
156 exposeVariadicOp<Multiplier<Matrix> >();
157 exposeVariadicOp<Multiplier<Vector> >();
158 exposeVariadicOp<Multiplier<MatrixRotation> >();
159 exposeVariadicOp<Multiplier<MatrixHomogeneous> >();
160 exposeVariadicOp<Multiplier<MatrixTwist> >();
161 exposeVariadicOp<Multiplier<VectorQuaternion> >();
162 exposeVariadicOp<Multiplier<double> >();
165 exposeVariadicOp<BoolOp<0> >();
166 exposeVariadicOp<BoolOp<1> >();
auto exposeVariadicOpBase()
BOOST_PYTHON_MODULE(wrap)
bp::return_value_policy< bp::reference_existing_object > reference_existing_object
const Eigen::IOFormat python(Eigen::FullPrecision, 0, ", ", ",\, "[", "]", "[", "]")