64 using aligator::context::ConstVectorRef;
66 bp::docstring_options module_docstring_options(
true,
true,
true);
68 bp::scope().attr(
"__version__") = ALIGATOR_VERSION;
69#ifdef ALIGATOR_MULTITHREADING
71 "Get the number of available threads.");
73 "Get the current number of threads.");
75 (
"num_threads"_a,
"dynamic"_a =
true));
77 eigenpy::enableEigenPy();
79 eigenpy::OptionalConverter<ConstVectorRef, std::optional>::registration();
80 eigenpy::detail::NoneToPython<std::nullopt_t>::registration();
82 bp::import(
"warnings");
83 bp::import(
"proxsuite_nlp");
86 "has_pinocchio_features",
87 +[]()
constexpr ->
bool {
89#ifdef ALIGATOR_WITH_PINOCCHIO
95 "Whether Aligator (and its Python bindings) were compiled with support "
109 bp::scope dynamics = get_namespace(
"dynamics");
110 exposeContinuousDynamics();
112 exposeExplicitIntegrators();
121#ifdef ALIGATOR_WITH_PINOCCHIO
122 exposePinocchioFeatures();
125#ifdef ALIGATOR_WITH_CROCODDYL_COMPAT
127 bp::scope croc_ns = get_namespace(
"croc");
128 exposeCrocoddylCompat();