62 using aligator::context::ConstVectorRef;
64 bp::docstring_options module_docstring_options(
true,
true,
true);
66 bp::scope().attr(
"__version__") = ALIGATOR_VERSION;
67#ifdef ALIGATOR_MULTITHREADING
69 "Get the number of available threads.");
71 "Get the current number of threads.");
73 (
"num_threads"_a,
"dynamic"_a =
true));
75 eigenpy::enableEigenPy();
77 eigenpy::OptionalConverter<ConstVectorRef, std::optional>::registration();
78 eigenpy::detail::NoneToPython<std::nullopt_t>::registration();
80 bp::import(
"warnings");
81 bp::import(
"proxsuite_nlp");
84 "has_pinocchio_features",
85 +[]()
constexpr ->
bool {
87#ifdef ALIGATOR_WITH_PINOCCHIO
93 "Whether Aligator (and its Python bindings) were compiled with support "
107 bp::scope dynamics = get_namespace(
"dynamics");
108 exposeContinuousDynamics();
110 exposeExplicitIntegrators();
119#ifdef ALIGATOR_WITH_PINOCCHIO
120 exposePinocchioFeatures();
123#ifdef ALIGATOR_WITH_CROCODDYL_COMPAT
125 bp::scope croc_ns = get_namespace(
"croc");
126 exposeCrocoddylCompat();