18 #ifndef __tsid_python_traj_se3_hpp__ 19 #define __tsid_python_traj_se3_hpp__ 28 template <
typename TrajSE3>
30 :
public boost::python::def_visitor<
31 TrajectorySE3ConstantPythonVisitor<TrajSE3> > {
32 template <
class PyClass>
35 cl.def(bp::init<std::string>((bp::arg(
"name")),
36 "Default Constructor with name"))
37 .def(bp::init<std::string, pinocchio::SE3>(
38 (bp::arg(
"name"), bp::arg(
"reference")),
39 "Default Constructor with name and ref_vec"))
48 .def(
"has_trajectory_ended",
54 self.setReference(ref);
57 return self.computeNext();
61 self.getLastSample(sample);
64 return self.has_trajectory_ended();
67 return self.operator()(
time);
70 static void expose(
const std::string& class_name) {
71 std::string doc =
"Trajectory SE3 Constant info.";
72 bp::class_<TrajSE3>(class_name.c_str(), doc.c_str(), bp::no_init)
79 #endif // ifndef __tsid_python_traj_se3_hpp__
static void setReference(TrajSE3 &self, const pinocchio::SE3 &ref)
static void getLastSample(const TrajSE3 &self, trajectories::TrajectorySample &sample)
void def(const char *name, Func func)
static void expose(const std::string &class_name)
static trajectories::TrajectorySample getSample(TrajSE3 &self, double time)
static trajectories::TrajectorySample computeNext(TrajSE3 &self)
static bool has_trajectory_ended(const TrajSE3 &self)
void visit(PyClass &cl) const