Go to the documentation of this file.
28 #include <Eigen/Geometry>
32 #include <RobotAPI/interface/core/PoseBase.h>
46 ArmarXEigenFormat(Eigen::StreamPrecision, Eigen::DontAlignCols,
" ",
"\n",
"",
"");
52 class Vector2 :
virtual public Vector2Base
56 Vector2(
const Eigen::Vector2f&);
59 void operator=(
const Eigen::Vector2f& ves);
61 virtual Eigen::Vector2f
toEigen()
const;
71 clone(
const Ice::Current& = Ice::emptyCurrent)
const override
76 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
79 getType(
const Ice::Current& = Ice::emptyCurrent)
const override
85 validate(
const Ice::Current& = Ice::emptyCurrent)
override
93 stream <<
"Vector2: " << std::endl << rhs.
output() << std::endl;
98 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
99 const ::Ice::Current& = Ice::emptyCurrent)
const override;
100 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
101 const ::Ice::Current& = Ice::emptyCurrent)
override;
116 Vector3(
const Eigen::Vector3f&);
120 void operator=(
const Eigen::Vector3f& vec);
122 virtual Eigen::Vector3f
toEigen()
const;
128 return this->
clone();
132 clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
137 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
140 getType(
const Ice::Current& = Ice::emptyCurrent)
const override
146 validate(
const Ice::Current& = Ice::emptyCurrent)
override
154 stream <<
"Vector3: " << std::endl << rhs.
output() << std::endl;
159 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
160 const ::Ice::Current& = Ice::emptyCurrent)
const override;
161 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
162 const ::Ice::Current& = Ice::emptyCurrent)
override;
193 return this->
clone();
197 clone(
const Ice::Current& = Ice::emptyCurrent)
const override
202 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
205 getType(
const Ice::Current& = Ice::emptyCurrent)
const override
211 validate(
const Ice::Current& = Ice::emptyCurrent)
override
219 stream <<
"Quaternion: " << std::endl << rhs.
output() << std::endl;
224 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
225 const ::Ice::Current& = Ice::emptyCurrent)
const override;
226 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
227 const ::Ice::Current& = Ice::emptyCurrent)
override;
242 class Pose :
virtual public PoseBase
250 Pose(
const armarx::Vector3BasePtr pos,
const armarx::QuaternionBasePtr ori);
260 return this->
clone();
264 clone(
const Ice::Current& = Ice::emptyCurrent)
const override
266 return new Pose(*
this);
269 std::string
output(
const Ice::Current& = Ice::emptyCurrent)
const override;
272 getType(
const Ice::Current& = Ice::emptyCurrent)
const override
278 validate(
const Ice::Current& = Ice::emptyCurrent)
override
286 stream <<
"Pose: " << std::endl << rhs.
output() << std::endl;
291 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
292 const ::Ice::Current& = Ice::emptyCurrent)
const override;
293 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
294 const ::Ice::Current& = Ice::emptyCurrent)
override;
311 void fromIce(
const Vector3BasePtr& ice, Eigen::Vector3f& vector);
315 void fromIce(
const QuaternionBasePtr& ice,
319 Eigen::Vector3f
fromIce(
const Vector3BasePtr& position);
323 void toIce(Vector3BasePtr& ice,
const Eigen::Vector3f& vector);
340 extern template class ::IceInternal::Handle<::armarx::Pose>;
341 extern template class ::IceInternal::Handle<::armarx::Vector2>;
342 extern template class ::IceInternal::Handle<::armarx::Vector3>;
343 extern template class ::IceInternal::Handle<::armarx::Quaternion>;
VariantDataClassPtr clone(const Ice::Current &=Ice::emptyCurrent) const override
VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
const VariantTypeId Float
VariantDataClassPtr clone(const Ice::Current &=Ice::emptyCurrent) const override
VariantTypeId getType(const Ice::Current &=Ice::emptyCurrent) const override
Eigen::Quaternionf toEigenQuaternion() const
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
VariantTypeId getType(const Ice::Current &=Ice::emptyCurrent) const override
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
void operator=(const Eigen::Vector3f &vec)
friend std::ostream & operator<<(std::ostream &stream, const Quaternion &rhs)
Ice::ObjectPtr ice_clone() const override
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
const VariantTypeId Vector3
void operator=(const Eigen::Vector2f &ves)
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
const VariantTypeId Vector2
bool validate(const Ice::Current &=Ice::emptyCurrent) override
bool validate(const Ice::Current &=Ice::emptyCurrent) override
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
friend std::ostream & operator<<(std::ostream &stream, const Vector2 &rhs)
VariantTypeId getType(const Ice::Current &=Ice::emptyCurrent) const override
const VariantTypeId Quaternion
Pose & operator=(const Pose &)=default
const Eigen::IOFormat ArmarXEigenFormat(Eigen::StreamPrecision, Eigen::DontAlignCols, " ", "\n", "", "")
Eigen::Matrix3f slerp(float, const Eigen::Matrix3f &)
void toIce(std::map< IceKeyT, IceValueT > &iceMap, const boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
VariantTypeId getType(const Ice::Current &=Ice::emptyCurrent) const override
friend std::ostream & operator<<(std::ostream &stream, const Pose &rhs)
virtual Eigen::Matrix4f toEigen() const
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
bool validate(const Ice::Current &=Ice::emptyCurrent) override
Quaternion< float, 0 > Quaternionf
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Ice::ObjectPtr ice_clone() const override
Eigen::Matrix3f toEigen() const
void fromIce(const std::map< IceKeyT, IceValueT > &iceMap, boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
MatrixXX< 3, 3, float > Matrix3f
MatrixXX< 4, 4, float > Matrix4f
bool validate(const Ice::Current &=Ice::emptyCurrent) override
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override
virtual Eigen::Vector3f toEigen() const
friend std::ostream & operator<<(std::ostream &stream, const Vector3 &rhs)
VariantDataClassPtr clone(const Ice::Current &=Ice::emptyCurrent) const override
virtual Eigen::Vector2f toEigen() const
void ice_postUnmarshal() override
Ice::ObjectPtr ice_clone() const override
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override
std::shared_ptr< Object > ObjectPtr
Quaternion()
Construct an identity quaternion.
std::string output(const Ice::Current &=Ice::emptyCurrent) const override
Ice::ObjectPtr ice_clone() const override
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 serialize(const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override