38 lines
878 B
C++
38 lines
878 B
C++
// # This represents an orientation with reference coordinate frame and timestamp.
|
|
|
|
// Header header
|
|
// Quaternion quaternion
|
|
|
|
#ifndef QUATERNION_STAMPED_H
|
|
#define QUATERNION_STAMPED_H
|
|
|
|
#include <std_msgs/Header.h>
|
|
#include <geometry_msgs/Quaternion.h>
|
|
|
|
namespace geometry_msgs
|
|
{
|
|
|
|
struct QuaternionStamped
|
|
{
|
|
std_msgs::Header header;
|
|
Quaternion quaternion;
|
|
// Constructor mặc định
|
|
QuaternionStamped() = default;
|
|
};
|
|
|
|
// constants requiring out of line definition
|
|
inline bool operator==(const geometry_msgs::QuaternionStamped &lhs, const geometry_msgs::QuaternionStamped &rhs)
|
|
{
|
|
return lhs.header == rhs.header &&
|
|
lhs.quaternion == rhs.quaternion;
|
|
}
|
|
|
|
inline bool operator!=(const geometry_msgs::QuaternionStamped &lhs, const geometry_msgs::QuaternionStamped &rhs)
|
|
{
|
|
return !(lhs == rhs);
|
|
}
|
|
|
|
} // namespace geometry_msgs
|
|
|
|
#endif // QUATERNION_STAMPED_H
|