#include <plane3d.h>
|
static double | azimuth (const Eigen::Vector3d &v) |
|
static double | elevation (const Eigen::Vector3d &v) |
|
static Eigen::Matrix3d | rotation (const Eigen::Vector3d &v) |
|
static void | normalize (Eigen::Vector4d &coeffs) |
|
Definition at line 37 of file plane3d.h.
g2o::Plane3D::Plane3D |
( |
| ) |
|
|
inline |
Definition at line 42 of file plane3d.h.
void fromVector(const Eigen::Vector4d &coeffs_)
g2o::Plane3D::Plane3D |
( |
const Eigen::Vector4d & |
v | ) |
|
|
inline |
Definition at line 48 of file plane3d.h.
void fromVector(const Eigen::Vector4d &coeffs_)
static double g2o::Plane3D::azimuth |
( |
const Eigen::Vector3d & |
v | ) |
|
|
inlinestatic |
const Eigen::Vector4d& g2o::Plane3D::coeffs |
( |
| ) |
const |
|
inline |
double g2o::Plane3D::distance |
( |
| ) |
const |
|
inline |
static double g2o::Plane3D::elevation |
( |
const Eigen::Vector3d & |
v | ) |
|
|
inlinestatic |
void g2o::Plane3D::fromVector |
( |
const Eigen::Vector4d & |
coeffs_ | ) |
|
|
inline |
Eigen::Vector3d g2o::Plane3D::normal |
( |
| ) |
const |
|
inline |
static void g2o::Plane3D::normalize |
( |
Eigen::Vector4d & |
coeffs | ) |
|
|
inlinestatic |
Definition at line 112 of file plane3d.h.
113 double n=
coeffs.head<3>().norm();
const Eigen::Vector4d & coeffs() const
Eigen::Vector3d g2o::Plane3D::ominus |
( |
const Plane3D & |
plane | ) |
|
|
inline |
void g2o::Plane3D::oplus |
( |
const Eigen::Vector3d & |
v | ) |
|
|
inline |
Definition at line 87 of file plane3d.h.
References g2o::internal::normalize().
Referenced by main(), and PlaneSensor::sense().
90 double _elevation=v[1];
91 double s=sin(_elevation), c=cos(_elevation);
92 Eigen::Vector3d n (c*cos(_azimuth), c*sin(_azimuth), s) ;
static void normalize(Eigen::Vector4d &coeffs)
Eigen::Vector3d normal() const
static Eigen::Matrix3d rotation(const Eigen::Vector3d &v)
static Eigen::Matrix3d g2o::Plane3D::rotation |
( |
const Eigen::Vector3d & |
v | ) |
|
|
inlinestatic |
Definition at line 81 of file plane3d.h.
84 return (Eigen::AngleAxisd(_azimuth, Eigen::Vector3d::UnitZ())*Eigen::AngleAxisd(- _elevation, Eigen::Vector3d::UnitY())).toRotationMatrix();
static double elevation(const Eigen::Vector3d &v)
static double azimuth(const Eigen::Vector3d &v)
Eigen::Vector4d g2o::Plane3D::toVector |
( |
| ) |
const |
|
inline |
Plane3D operator* |
( |
const Eigen::Isometry3d & |
t, |
|
|
const Plane3D & |
plane |
|
) |
| |
|
friend |
Definition at line 120 of file plane3d.h.
121 Eigen::Vector4d v=plane._coeffs;
123 Eigen::Matrix3d R=t.rotation();
124 v2.head<3>() = R*v.head<3>();
125 v2(3)=v(3) - t.translation().dot(v2.head<3>());
Eigen::Vector4d g2o::Plane3D::_coeffs |
g2o::Plane3D::EIGEN_MAKE_ALIGNED_OPERATOR_NEW |
The documentation for this class was generated from the following file:
- /home/xuezhisd/CLionProjects/g2o/g2o/types/slam3d_addons/plane3d.h