.. _program_listing_file__tmp_ws_src_tuw_msgs_tuw_geometry_msgs_include_tuw_geometry_msgs_quaternion.hpp: Program Listing for File quaternion.hpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/tuw_msgs/tuw_geometry_msgs/include/tuw_geometry_msgs/quaternion.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef TUW_GEOMETRY_MSGS__QUATERNION_HPP_ #define TUW_GEOMETRY_MSGS__QUATERNION_HPP_ #include namespace tuw_geometry_msgs { struct Quaternion : public geometry_msgs::msg::Quaternion { Quaternion() {this->x = 0., this->y = 0., this->z = 0., this->w = 1.;} Quaternion(double x, double y, double z, double w) { this->x = x, this->y = y, this->z = z, this->w = w; } }; } // namespace tuw_geometry_msgs #endif // TUW_GEOMETRY_MSGS__QUATERNION_HPP_