Go to the documentation of this file.
29 #include <ArmarXCore/interface/observers/Matrix.h>
50 template <
class BaseClass,
class VariantClass>
63 virtual Eigen::MatrixXf
toEigen()
const;
75 clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
81 output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
89 getType(
const Ice::Current&
c = Ice::emptyCurrent)
const override
95 validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
107 stream <<
"MatrixFloat: " << std::endl << rhs.
output() << std::endl;
113 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
114 const ::Ice::Current& = Ice::emptyCurrent)
const override;
115 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
116 const ::Ice::Current& = Ice::emptyCurrent)
override;
128 template <
class BaseClass,
class VariantClass>
141 virtual Eigen::MatrixXd
toEigen()
const;
147 return this->
clone();
151 clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
157 output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
165 getType(
const Ice::Current&
c = Ice::emptyCurrent)
const override
171 validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
183 stream <<
"MatrixDouble: " << std::endl << rhs.
output() << std::endl;
189 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
190 const ::Ice::Current& = Ice::emptyCurrent)
const override;
191 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
192 const ::Ice::Current& = Ice::emptyCurrent)
override;
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
VariantTypeId getType(const Ice::Current &c=Ice::emptyCurrent) const override
float & operator()(const int x, const int y)
std::vector< float > toVector() const
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
virtual Eigen::MatrixXf toEigen() const
virtual Eigen::MatrixXd toEigen() const
VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
constexpr auto entries(std::index_sequence< I... >) noexcept
Ice::ObjectPtr ice_clone() const override
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
VariantTypeId getType(const Ice::Current &c=Ice::emptyCurrent) const override
VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Ice::ObjectPtr ice_clone() const override
friend std::ostream & operator<<(std::ostream &stream, const MatrixDouble &rhs)
const VariantTypeId MatrixFloat
double & operator()(const int x, const int y)
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
std::string toJsonRowMajor()
std::shared_ptr< Object > ObjectPtr
std::string toJsonRowMajor()
friend std::ostream & operator<<(std::ostream &stream, const MatrixFloat &rhs)
double s(double t, double s0, double v0, double a0, double j)
This file offers overloads of toIce() and fromIce() functions for STL container types.
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
const VariantTypeId MatrixDouble
bool validate(const Ice::Current &c=Ice::emptyCurrent) override