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:

BindTipForceIfExists<Types>::bind(pybind_class);
This is based on https://stackoverflow.com/a/16000226, see there for an explanation how/why this works.

Public Static Functions

static inline void bind(pybind11::class_<typename Types::Observation> &c)
static inline void bind(pybind11::class_<typename Types::Observation> &c)