Go to the documentation of this file.
4 #include <ArmarXGui/interface/RemoteGuiInterface.h>
8 #include <SimoxUtility/math/compare/value_in_limits_of.h>
38 template <
typename W
idgetT,
typename Derived>
46 widget_->defaultValue = Derived::defaultValue();
52 return *
dynamic_cast<WidgetT*
>(
widget_.get());
56 template <
typename W
idgetT,
typename Derived>
63 return ValueVariant();
67 template <
typename W
idgetT,
typename ValueT,
typename Derived>
79 Derived& this_ = *
static_cast<Derived*
>(
this);
85 template <
typename Derived,
typename Type>
90 Derived& this_ = *
static_cast<Derived*
>(
this);
94 Derived&
min(std::array<Type, 1>
v)
99 std::enable_if_t <simox::meta::are_arithmetic_v<Type, T>, Derived&>
103 <<
VAROUT(
v) <<
" : " << GetTypeString<T>();
107 std::enable_if_t <simox::meta::are_arithmetic_v<Type, T>, Derived&>
110 ARMARX_CHECK(simox::math::value_in_limits_of_type<Type>(
v.at(0)))
111 <<
VAROUT(
v.at(0)) <<
" : " << GetTypeString<T>();
112 return min(
static_cast<Type>(
v.at(0)));
118 Derived& this_ = *
static_cast<Derived*
>(
this);
122 Derived&
max(std::array<Type, 1>
v)
127 std::enable_if_t <simox::meta::are_arithmetic_v<Type, T>, Derived&>
131 <<
VAROUT(
v) <<
" : " << GetTypeString<T>();
135 std::enable_if_t <simox::meta::are_arithmetic_v<Type, T>, Derived&>
138 ARMARX_CHECK(simox::math::value_in_limits_of_type<Type>(
v.at(0)))
139 <<
VAROUT(
v.at(0)) <<
" : " << GetTypeString<T>();
140 return max(
static_cast<Type>(
v.at(0)));
143 template<
class T0,
class T1>
146 Derived& this_ = *
static_cast<Derived*
>(
this);
148 return this_.
max(
hi);
152 template <
typename Derived>
159 Derived& this_ = *
static_cast<Derived*
>(
this);
163 Derived&
min(std::array<Type, 1>
v)
170 Derived& this_ = *
static_cast<Derived*
>(
this);
174 Derived&
max(std::array<Type, 1>
v)
179 template<
class T0,
class T1>
182 Derived& this_ = *
static_cast<Derived*
>(
this);
184 return this_.max(
hi);
188 template <
typename Derived>
193 Derived& this_ = *
static_cast<Derived*
>(
this);
199 template <
typename Derived>
204 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)