12#include <gtsam_unstable/dllexport.h>
33 const Vector3& initial_x_g = Z_3x1,
const Vector3& initial_x_a = Z_3x1) :
34 bRn_(initial_bRn), x_g_(initial_x_g), x_a_(initial_x_a) {
39 bRn_(other.bRn_), x_g_(other.x_g_), x_a_(other.x_a_) {
43 Vector3
b_g(
double g_e)
const {
44 Vector3 n_g(0, 0, g_e);
48 const Rot3& bRn()
const {
return bRn_; }
49 const Vector3& x_g()
const {
return x_g_; }
50 const Vector3& x_a()
const {
return x_a_; }
59 static Mechanization_bRn2 initializeVector(
const std::list<Vector>& U,
60 const std::list<Vector>& F,
const double g_e = 0,
bool flat=
false);
63 static Mechanization_bRn2 initialize(
const Matrix& U,
64 const Matrix& F,
const double g_e = 0,
bool flat=
false);
71 Mechanization_bRn2 correct(
const Vector9& dx)
const;
79 Mechanization_bRn2 integrate(
const Vector3& u,
const double dt)
const;
82 void print(
const std::string& s =
"")
const {
85 std::cout << s +
".x_g" << x_g_ << std::endl;
86 std::cout << s +
".x_a" << x_a_ << std::endl;
typedef and functions to augment Eigen's VectorXd
3D rotation represented as a rotation matrix or quaternion
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
void print(const std::string &s="") const
print
Definition: Rot3.cpp:34
Definition: Mechanization_bRn2.h:17
Mechanization_bRn2(const Mechanization_bRn2 &other)
Copy constructor.
Definition: Mechanization_bRn2.h:38
void print(const std::string &s="") const
print
Definition: Mechanization_bRn2.h:82
Vector3 b_g(double g_e) const
gravity in the body frame
Definition: Mechanization_bRn2.h:43
Mechanization_bRn2(const Rot3 &initial_bRn=Rot3(), const Vector3 &initial_x_g=Z_3x1, const Vector3 &initial_x_a=Z_3x1)
Constructor.
Definition: Mechanization_bRn2.h:32