TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
pose.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_POSE_POSE_H_
2#define INCLUDE_TINYURDF_POSE_POSE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <iostream>
7#include "utils.h"
8#include "property_base.h"
9
13class Pose : public PropertyBase {
14 public:
15 Pose();
16 Pose(const Pose& rhs);
17 Pose& operator=(const Pose& rhs);
18 Pose& operator=(Pose&& rhs) noexcept;
19 bool isA(const char* name) override;
20 void print(std::ostream& os) override;
23 void setPosition(double x, double y, double z);
24 void setRotation(double x, double y, double z, double w);
25 void setRotation(double r, double p, double y);
26 void clear() override;
27 ~Pose();
28 private:
29 Vec3 position;
30 Rot3 rotation;
31};
32
33#endif // INCLUDE_TINYURDF_POSE_POSE_H_
Represents a pose, consisting of position and rotation.
Definition pose.h:13
Pose & operator=(const Pose &rhs)
Definition pose.cc:15
Rot3 getRotation()
Definition pose.cc:48
~Pose()
Definition pose.cc:75
void setRotation(double x, double y, double z, double w)
Definition pose.cc:58
bool isA(const char *name) override
Definition pose.cc:25
void setPosition(double x, double y, double z)
Definition pose.cc:53
Pose()
Definition pose.cc:3
void clear() override
Definition pose.cc:37
void print(std::ostream &os) override
Definition pose.cc:30
Pose & operator=(Pose &&rhs) noexcept
Vec3 getPosition()
Definition pose.cc:43
Definition property_base.h:9
Eigen::Matrix< double, 3, 1 > Vec3
Definition utils.h:14
Eigen::Quaternion< double > Rot3
Definition utils.h:15