pxmlw6n2f/Gazebo_Distributed_TCP/ign-math-migration.md

1.7 KiB

Migration from gazebo::math to ignition::math

libigntion-math is a dependency of Gazebo. See: http://ignitionrobotics.org/libraries/math

gazebo/common

KeyFrame.hh

  1. Deprecated public: void SetTranslation(const math::Vector3 &_trans)
    • Replacement public: void Translation(const ignition::math::Vector3d &_trans);
  2. Deprecated public: math::Vector3 GetTranslation() const
    • Replacement public: ignition::math::Vector3d Translation() const
  3. Deprecated public: void SetRotation(const math::Quaternion &_rot)
    • Replacement public: void Rotation(const ignition::math::Quaterniond &_rot)
  4. Deprecated public: math::Quaternion GetRotation() const
    • Replacement public: ignition::math::Quaterniond Rotation() const

gazebo/math

Angle.hh

  1. Added public: Angle(const ignition::math::Angle &_angle)
  2. Added public: ignition::math::Angle Ign() const
  3. Added public: Angle &operator=(const double &_angle)
  4. Added public: Angle &operator=(const ignition::math::Angle &_angle)

Box.hh

  1. Added public: Box(const ignition::math::Box &_box)
  2. Added public: ignition::math::Box Ign() const
  3. Added public: Box &operator=(const ignition::math::Box &_b)

Quaternion.hh

  1. Added public: Quaternion(const ignition::math::Quaterniond &_qt)
  2. Added public: ignition::math::Quaterniond Ign() const
  3. Added public: Quaternion &operator =(const ignition::math::Quaterniond &_v)

Vector3.hh

  1. Added public: Vector3(const ignition::math::Vector3d &_v)
  2. Added public: ignition::math::Vector3d Ign() const
  3. Added public: Vector3 &operator=(const ignition::math::Vector3d &_v)