State_JPLQuatLocal.h
Go to the documentation of this file.
1 /*
2  * OpenVINS: An Open Platform for Visual-Inertial Research
3  * Copyright (C) 2018-2023 Patrick Geneva
4  * Copyright (C) 2018-2023 Guoquan Huang
5  * Copyright (C) 2018-2023 OpenVINS Contributors
6  * Copyright (C) 2018-2019 Kevin Eckenhoff
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef OV_INIT_CERES_JPLQUATLOCAL_H
23 #define OV_INIT_CERES_JPLQUATLOCAL_H
24 
25 #include <ceres/ceres.h>
26 
27 namespace ov_init {
28 
32 class State_JPLQuatLocal : public ceres::LocalParameterization {
33 public:
44  bool Plus(const double *x, const double *delta, double *x_plus_delta) const override;
45 
57  bool ComputeJacobian(const double *x, double *jacobian) const override;
58 
59  int GlobalSize() const override { return 4; };
60 
61  int LocalSize() const override { return 3; };
62 };
63 
64 } // namespace ov_init
65 
66 #endif // OV_INIT_CERES_JPLQUATLOCAL_H
ov_init::State_JPLQuatLocal::GlobalSize
int GlobalSize() const override
Definition: State_JPLQuatLocal.h:59
ov_init::State_JPLQuatLocal::Plus
bool Plus(const double *x, const double *delta, double *x_plus_delta) const override
State update function for a JPL quaternion representation.
Definition: State_JPLQuatLocal.cpp:28
ov_init::State_JPLQuatLocal::LocalSize
int LocalSize() const override
Definition: State_JPLQuatLocal.h:61
ov_init
State initialization code.
Definition: Factor_GenericPrior.h:27
ov_init::State_JPLQuatLocal
JPL quaternion CERES state parameterization.
Definition: State_JPLQuatLocal.h:32
ov_init::State_JPLQuatLocal::ComputeJacobian
bool ComputeJacobian(const double *x, double *jacobian) const override
Computes the jacobian in respect to the local parameterization.
Definition: State_JPLQuatLocal.cpp:51


ov_init
Author(s): Patrick Geneva , Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Dec 16 2024 03:06:51