Skip to content

Commit

Permalink
fix nanobind
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Jan 27, 2025
1 parent ef4d5df commit 5afcb69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ruckig/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <nanobind/nanobind.h>
#include <nanobind/stl/optional.h>
#include <nanobind/stl/string.h>
#include <nanobind/stl/vector.h>
#include <nanobind/operators.h>

Expand Down Expand Up @@ -82,7 +83,9 @@ limited by velocity, acceleration, and jerk constraints.";

nb::class_<InputParameter<DynamicDOFs>>(m, "InputParameter")
.def(nb::init<size_t>(), "dofs"_a)
#if defined WITH_CLOUD_CLIENT
.def(nb::init<size_t, size_t>(), "dofs"_a, "max_number_of_waypoints"_a)
#endif
.def_ro("degrees_of_freedom", &InputParameter<DynamicDOFs>::degrees_of_freedom)
.def_rw("current_position", &InputParameter<DynamicDOFs>::current_position)
.def_rw("current_velocity", &InputParameter<DynamicDOFs>::current_velocity)
Expand Down

0 comments on commit 5afcb69

Please sign in to comment.