Go to the documentation of this file. 1 #ifndef CNOID_POSITION_TAG_H
2 #define CNOID_POSITION_TAG_H
6 #include "exportdecl.h"
15 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
25 return position_.translation();
27 template<
typename Derived>
29 position_.translation() = p.template cast<Isometry3::Scalar>();
35 position_.linear().setIdentity();
41 template<
class Scalar,
int Mode,
int Options>
42 void setPosition(
const Eigen::Transform<Scalar, 3, Mode, Options>& p) {
43 position_ = p.template cast<Isometry3::Scalar>();
47 Isometry3::ConstLinearPart
rotation()
const {
return position_.linear(); }
49 template<
typename Derived>
51 position_.linear() = R.template cast<Isometry3::Scalar>();
void clearAttitude()
Definition: PositionTag.h:34
Definition: ValueTree.h:253
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
Listing * write(Mapping *mapping, const std::string &key, const Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:145
Definition: PositionTag.h:12
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
Isometry3::ConstTranslationPart translation() const
Definition: PositionTag.h:24
bool read(const Mapping *mapping, const std::string &key, Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:43
const Isometry3 & position() const
Definition: PositionTag.h:39
bool hasAttitude() const
Definition: PositionTag.h:32
Definition: Referenced.h:103
Definition: AbstractSceneLoader.h:11
Isometry3::ConstLinearPart rotation() const
Definition: PositionTag.h:47
Definition: Referenced.h:54
void setRotation(const Eigen::MatrixBase< Derived > &R)
Definition: PositionTag.h:50
void setPosition(const Eigen::Transform< Scalar, 3, Mode, Options > &p)
Definition: PositionTag.h:42
void setTranslation(const Eigen::MatrixBase< Derived > &p)
Definition: PositionTag.h:28
ref_ptr< PositionTag > PositionTagPtr
Definition: PositionTag.h:63