pinocchio
4.1.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Toggle main menu visibility
Loading...
Searching...
No Matches
constraint-data-base.hpp
1
//
2
// Copyright (c) 2025 INRIA
3
//
4
5
#pragma once
6
7
#include <boost/python.hpp>
8
#include <eigenpy/exception.hpp>
9
#include <eigenpy/eigen-to-python.hpp>
10
11
#include "pinocchio/constraints.hpp"
12
#include "pinocchio/bindings/python/fwd.hpp"
13
14
namespace
pinocchio
15
{
16
namespace
python
17
{
18
namespace
bp = boost::python;
19
20
template
<
class
Constra
int
DataDerived>
21
struct
ConstraintDataBasePythonVisitor
22
:
public
bp::def_visitor<ConstraintDataBasePythonVisitor<ConstraintDataDerived>>
23
{
24
typedef
ConstraintDataDerived Self;
25
26
public
:
27
template
<
class
PyClass>
28
void
visit(PyClass & cl)
const
29
{
30
cl.def(
"classname"
, &Self::classname)
31
.staticmethod(
"classname"
)
32
.def(
"shortname"
, &Self::shortname,
"Short name of the class."
)
33
#ifndef PINOCCHIO_PYTHON_SKIP_COMPARISON_OPERATIONS
34
.def(bp::self == bp::self)
35
.def(bp::self != bp::self)
36
#endif
37
;
38
}
39
};
40
}
// namespace python
41
}
// namespace pinocchio
pinocchio
Main pinocchio namespace.
Definition
treeview.dox:11
pinocchio::python::ConstraintDataBasePythonVisitor
Definition
constraint-data-base.hpp:23
include
pinocchio
bindings
python
algorithm
constraints
constraint-data-base.hpp
Generated by
1.17.0