-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add python bindings for dynamical_systems module #238
Conversation
b76e830
to
02cfe34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good! Great to see all this work coming together.
py::class_<DefaultDynamicalSystem<JointState>, IDynamicalSystem<JointState>>(m, "JointDefaultDS").def(py::init<>()); | ||
py::class_<PointAttractor<JointState>, IDynamicalSystem<JointState>>(m, "JointPointAttractorDS").def(py::init<>()); | ||
|
||
m.def("create_joint_ds", [](DynamicalSystemFactory<CartesianState>::DYNAMICAL_SYSTEM type) -> py::object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of annoying to have to use the template argument DynamicalSystemFactory<CartesianState>::DYNAMICAL_SYSTEM
to access the type, but I realise it's not possible to just do DynamicalSystemFactory::DYNAMICAL_SYSTEM
. Since it's hidden on the python side it doesn't really matter anyway!
Co-authored-by: Enrico Eberhard <32450951+eeberhard@users.noreply.github.com>
Here it is finally, python bindings for the DS module!
It may be better to merge #236 first, and then I update this PR here before we merge it