Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
f
k
l
m
n
o
p
r
s
t
v
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
:
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
Enumerator
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
doc
Code
doc/Code/OdometryExample.cpp
Go to the documentation of this file.
1
// Create an empty nonlinear factor graph
2
NonlinearFactorGraph
graph
;
3
4
// Add a Gaussian prior on pose x_1
5
Pose2
priorMean
(0.0, 0.0, 0.0);
6
auto
priorNoise
= noiseModel::Diagonal::Sigmas(
Vector3
(0.3, 0.3, 0.1));
7
graph
.add(PriorFactor<Pose2>(1,
priorMean
,
priorNoise
));
8
9
// Add two odometry factors
10
Pose2
odometry
(2.0, 0.0, 0.0);
11
auto
odometryNoise
= noiseModel::Diagonal::Sigmas(
Vector3
(0.2, 0.2, 0.1));
12
graph
.add(BetweenFactor<Pose2>(1, 2,
odometry
,
odometryNoise
));
13
graph
.add(BetweenFactor<Pose2>(2, 3,
odometry
,
odometryNoise
));
priorMean
Pose2 priorMean(0.0, 0.0, 0.0)
gtsam::Vector3
Eigen::Vector3d Vector3
Definition:
Vector.h:44
odometry
Pose2 odometry(2.0, 0.0, 0.0)
priorNoise
auto priorNoise
Definition:
doc/Code/OdometryExample.cpp:6
odometryNoise
auto odometryNoise
Definition:
doc/Code/OdometryExample.cpp:11
graph
NonlinearFactorGraph graph
Definition:
doc/Code/OdometryExample.cpp:2
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:02:34