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
gtsam_unstable
slam
TOAFactor.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
3
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
4
* Atlanta, Georgia 30332-0415
5
* All Rights Reserved
6
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8
* See LICENSE for the license information
9
10
* -------------------------------------------------------------------------- */
11
20
#pragma once
21
22
#include <
gtsam/nonlinear/ExpressionFactor.h
>
23
#include <
gtsam_unstable/geometry/Event.h
>
24
25
namespace
gtsam
{
26
28
class
TOAFactor
:
public
ExpressionFactor
<double> {
29
typedef
Expression<double>
Double_
;
30
31
public
:
40
TOAFactor
(
const
Expression<Event>
& eventExpression,
41
const
Expression<Point3>
& sensorExpression,
double
toaMeasurement,
42
const
SharedNoiseModel
&
model
,
double
speed = 330)
43
:
ExpressionFactor
<double>(
44
model
, toaMeasurement,
45
Double_
(
TimeOfArrival
(speed), eventExpression, sensorExpression)) {}
46
55
TOAFactor
(
const
Expression<Event>
& eventExpression,
const
Point3
& sensor,
56
double
toaMeasurement,
const
SharedNoiseModel
&
model
,
57
double
speed = 330)
58
:
TOAFactor
(eventExpression,
Expression
<
Point3
>(sensor), toaMeasurement,
59
model
, speed) {}
60
61
static
void
InsertEvent
(
Key
key
,
const
Event
& event,
62
std::shared_ptr<Values>
values
) {
63
values
->insert(
key
, event);
64
}
65
};
66
67
}
// namespace gtsam
gtsam::TOAFactor::TOAFactor
TOAFactor(const Expression< Event > &eventExpression, const Expression< Point3 > &sensorExpression, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
Definition:
TOAFactor.h:40
different_sigmas::values
HybridValues values
Definition:
testHybridBayesNet.cpp:247
gtsam::TimeOfArrival
Time of arrival to given sensor.
Definition:
Event.h:87
gtsam::Expression< double >
gtsam::TOAFactor
A "Time of Arrival" factor - so little code seems hardly worth it :-)
Definition:
TOAFactor.h:28
gtsam::SharedNoiseModel
noiseModel::Base::shared_ptr SharedNoiseModel
Definition:
NoiseModel.h:762
Event.h
Space-time event.
gtsam::Event
Definition:
Event.h:37
model
noiseModel::Diagonal::shared_ptr model
Definition:
doc/Code/Pose2SLAMExample.cpp:7
key
const gtsam::Symbol key('X', 0)
gtsam::TOAFactor::Double_
Expression< double > Double_
Definition:
TOAFactor.h:29
gtsam
traits
Definition:
SFMdata.h:40
ExpressionFactor.h
gtsam::Point3
Vector3 Point3
Definition:
Point3.h:38
gtsam::TOAFactor::TOAFactor
TOAFactor(const Expression< Event > &eventExpression, const Point3 &sensor, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
Definition:
TOAFactor.h:55
gtsam::TOAFactor::InsertEvent
static void InsertEvent(Key key, const Event &event, std::shared_ptr< Values > values)
Definition:
TOAFactor.h:61
gtsam::Key
std::uint64_t Key
Integer nonlinear key type.
Definition:
types.h:97
gtsam::ExpressionFactor
Definition:
Expression.h:36
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:08:33