Struct robot_interfaces::BindTipForceIfExists¶
-
template<typename Types, typename = int>
struct BindTipForceIfExists @bind Add Python bindings for Types::Observaton::tip_force if it exists.
Uses black SFINAE magic to add bindings for “tip_force” if it exists. Further the pickle functions differ due to this, so handle this here as well.
Usage:
This is based on https://stackoverflow.com/a/16000226, see there for an explanation how/why this works.BindTipForceIfExists<Types>::bind(pybind_class);