Go to the documentation of this file.
28 #include <ArmarXCore/interface/observers/Matrix.h>
50 template <
class BaseClass,
class VariantClass>
57 MatrixFloat(
int rows,
int cols,
const std::vector<float>& entries);
61 virtual Eigen::MatrixXf
toEigen()
const;
70 VariantDataClassPtr
clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
74 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
84 bool validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
95 stream <<
"MatrixFloat: " << std::endl << rhs.
output() << std::endl;
101 void serialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
const override;
102 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
override;
116 template <
class BaseClass,
class VariantClass>
123 MatrixDouble(
int rows,
int cols,
const std::vector<double>& entries);
127 virtual Eigen::MatrixXd
toEigen()
const;
132 return this->
clone();
134 VariantDataClassPtr
clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
138 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
148 bool validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
160 stream <<
"MatrixDouble: " << std::endl << rhs.
output() << std::endl;
166 void serialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
const override;
167 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer, 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
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