33 template<
typename Translation,
typename Rotation>
34 pose(
const Translation& t,
const Rotation& r) :
72 std::ostream&
operator<<(std::ostream&,
const pose&);
Eigen_affine3 transformation_from_world() const
Affine transformation from world space to pose coordinate system.
Definition: pose.cc:26
Eigen_affine3 transformation_to_world() const
Affine transformation from pose coordinate system to world space.
Definition: pose.cc:30
Eigen_vec3 euler_angles(std::ptrdiff_t a0=0, std::ptrdiff_t a1=1, std::ptrdiff_t a2=2) const
Definition: pose.cc:34
Eigen_quaternion orientation
Orientation quaternion. Must be kept normalized.
Definition: pose.h:18
static pose from_string(const std::string &)
Definition: pose.cc:58
pose()
Create identity pose.
Definition: pose.cc:12
Eigen_affine3 transformation_to(const pose &ps) const
Definition: pose.h:48
Eigen::Transform< Eigen_scalar, 3, Eigen::Affine > Eigen_affine3
Definition: eigen.h:37
void look_at(const Eigen_vec3 &)
Definition: pose.cc:69
Eigen_vec3 transform_to_world(const Eigen::Vector3f &p) const
Definition: pose.h:61
Position and orientation in space.
Definition: pose.h:15
Eigen::Quaternion< Eigen_scalar > Eigen_quaternion
Definition: eigen.h:45
void flip(const Eigen_vec3 &axis=Eigen_vec3::UnitY())
Definition: pose.cc:76
Eigen_vec3 position
Position vector.
Definition: pose.h:17
pose(const Translation &t, const Rotation &r)
Construct pose with given translation and rotation.
Definition: pose.h:34
Eigen_affine3 transformation_from(const pose &ps) const
Definition: pose.h:44
Eigen_vec3 transform_from_world(const Eigen::Vector3f &p) const
Definition: pose.h:57
std::string to_string() const
Definition: pose.cc:46
void invert_orientation()
Definition: pose.cc:81
Eigen_mat< 3, 1 > Eigen_vec3
Definition: eigen.h:25
std::ostream & operator<<(std::ostream &str, const time_span &span)
Definition: common.h:76