Typedefs | Functions | Variables
testEvent.cpp File Reference

Unit tests for space time "Event". More...

#include <gtsam/base/numericalDerivative.h>
#include <gtsam/nonlinear/Expression.h>
#include <gtsam_unstable/geometry/Event.h>
#include <CppUnitLite/TestHarness.h>
Include dependency graph for testEvent.cpp:

Go to the source code of this file.

Typedefs

typedef Eigen::Matrix< double, 1, 1 > Vector1
 

Functions

int main ()
 
static const Point3 microphoneAt0 (0, 0, 0)
 
static SharedNoiseModel model (noiseModel::Isotropic::Sigma(1, 0.5 *ms))
 
 TEST (Event, Constructor)
 
 TEST (Event, Toa1)
 
 TEST (Event, Toa2)
 
 TEST (Event, Derivatives)
 
 TEST (Event, Expression)
 
 TEST (Event, Retract)
 

Variables

static const double cm = 1e-2
 
static const Event exampleEvent (timeOfEvent, 1, 0, 0)
 
static const double kSpeedOfSound = 340
 
static const TimeOfArrival kToa (kSpeedOfSound)
 
static const double ms = 1e-3
 
static const double timeOfEvent = 25
 

Detailed Description

Unit tests for space time "Event".

Author
Frank Dellaert
Jay Chakravarty
Date
December 2014

Definition in file testEvent.cpp.

Typedef Documentation

◆ Vector1

typedef Eigen::Matrix<double, 1, 1> Vector1

Definition at line 33 of file testEvent.cpp.

Function Documentation

◆ main()

int main ( void  )

Definition at line 99 of file testEvent.cpp.

◆ microphoneAt0()

static const Point3 microphoneAt0 ( ,
,
 
)
static

◆ model()

static SharedNoiseModel model ( noiseModel::Isotropic::Sigma(1, 0.5 *ms )
static

◆ TEST() [1/6]

TEST ( Event  ,
Constructor   
)

Definition at line 44 of file testEvent.cpp.

◆ TEST() [2/6]

TEST ( Event  ,
Toa1   
)

Definition at line 50 of file testEvent.cpp.

◆ TEST() [3/6]

TEST ( Event  ,
Toa2   
)

Definition at line 57 of file testEvent.cpp.

◆ TEST() [4/6]

TEST ( Event  ,
Derivatives   
)

Definition at line 63 of file testEvent.cpp.

◆ TEST() [5/6]

TEST ( Event  ,
Expression   
)

Definition at line 78 of file testEvent.cpp.

◆ TEST() [6/6]

TEST ( Event  ,
Retract   
)

Definition at line 91 of file testEvent.cpp.

Variable Documentation

◆ cm

const double cm = 1e-2
static

Definition at line 32 of file testEvent.cpp.

◆ exampleEvent

const Event exampleEvent(timeOfEvent, 1, 0, 0)
static

◆ kSpeedOfSound

const double kSpeedOfSound = 340
static

Definition at line 40 of file testEvent.cpp.

◆ kToa

const TimeOfArrival kToa(kSpeedOfSound)
static

◆ ms

const double ms = 1e-3
static

Definition at line 31 of file testEvent.cpp.

◆ timeOfEvent

const double timeOfEvent = 25
static

Definition at line 36 of file testEvent.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:55