Event.cpp
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 
21 #include <iostream>
22 
23 namespace gtsam {
24 
25 /* ************************************************************************* */
26 void Event::print(const std::string& s) const {
27  std::cout << s << "{'time':" << time_
28  << ", 'location': " << location_.transpose() << "}";
29 }
30 
31 /* ************************************************************************* */
32 bool Event::equals(const Event& other, double tol) const {
33  return std::abs(time_ - other.time_) < tol &&
35 }
36 
37 /* ************************************************************************* */
38 
39 } // namespace gtsam
GTSAM_UNSTABLE_EXPORT void print(const std::string &s="") const
Definition: Event.cpp:26
Point3 location_
Location at time event was generated.
Definition: Event.h:39
RealScalar s
GTSAM_UNSTABLE_EXPORT bool equals(const Event &other, double tol=1e-9) const
Definition: Event.cpp:32
traits
Definition: chartTesting.h:28
double time_
Time event was generated.
Definition: Event.h:38
const G double tol
Definition: Group.h:83
#define abs(x)
Definition: datatypes.h:17


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:02