Go to the documentation of this file.
3 #include <SimoxUtility/math/compare/value_in_limits_of.h>
7 #include <ArmarXGui/interface/RemoteGuiInterface.h>
41 template <
typename W
idgetT,
typename Derived>
49 widget_->defaultValue = Derived::defaultValue();
56 return *
dynamic_cast<WidgetT*
>(
widget_.get());
60 template <
typename W
idgetT,
typename Derived>
68 return ValueVariant();
72 template <
typename W
idgetT,
typename ValueT,
typename Derived>
86 Derived& this_ = *
static_cast<Derived*
>(
this);
92 template <
typename Derived,
typename Type>
98 Derived& this_ = *
static_cast<Derived*
>(
this);
110 std::enable_if_t<simox::meta::are_arithmetic_v<Type, T>, Derived&>
114 <<
VAROUT(
v) <<
" : " << GetTypeString<T>();
119 std::enable_if_t<simox::meta::are_arithmetic_v<Type, T>, Derived&>
122 ARMARX_CHECK(simox::math::value_in_limits_of_type<Type>(
v.at(0)))
123 <<
VAROUT(
v.at(0)) <<
" : " << GetTypeString<T>();
124 return min(
static_cast<Type>(
v.at(0)));
130 Derived& this_ = *
static_cast<Derived*
>(
this);
142 std::enable_if_t<simox::meta::are_arithmetic_v<Type, T>, Derived&>
146 <<
VAROUT(
v) <<
" : " << GetTypeString<T>();
151 std::enable_if_t<simox::meta::are_arithmetic_v<Type, T>, Derived&>
154 ARMARX_CHECK(simox::math::value_in_limits_of_type<Type>(
v.at(0)))
155 <<
VAROUT(
v.at(0)) <<
" : " << GetTypeString<T>();
156 return max(
static_cast<Type>(
v.at(0)));
159 template <
class T0,
class T1>
163 Derived& this_ = *
static_cast<Derived*
>(
this);
165 return this_.
max(
hi);
169 template <
typename Derived>
177 Derived& this_ = *
static_cast<Derived*
>(
this);
191 Derived& this_ = *
static_cast<Derived*
>(
this);
202 template <
class T0,
class T1>
206 Derived& this_ = *
static_cast<Derived*
>(
this);
208 return this_.max(
hi);
212 template <
typename Derived>
218 Derived& this_ = *
static_cast<Derived*
>(
this);
224 template <
typename Derived>
230 Derived& this_ = *
static_cast<Derived*
>(
this);
Vector3f toIceF(Eigen::Vector3f v)
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
std::enable_if_t< simox::meta::are_arithmetic_v< Type, T >, Derived & > max(T v)
Derived & minmax(T0 lo, T1 hi)
Derived & value(ValueT const &value)
Derived & label(std::string const &label)
static ValueVariant defaultValue()
ValueVariant makeValue(bool value)
std::enable_if_t< simox::meta::are_arithmetic_v< Type, T >, Derived & > min(std::array< T, 1 > v)
Derived & minmax(T0 lo, T1 hi)
double v(double t, double v0, double a0, double j)
static ValueVariant defaultValue()
std::enable_if_t< simox::meta::are_arithmetic_v< Type, T >, Derived & > min(T v)
Derived & max(std::array< Type, 1 > v)
std::enable_if_t< simox::meta::are_arithmetic_v< Type, T >, Derived & > max(std::array< T, 1 > v)
Derived & min(std::array< Type, 1 > v)