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
traits
Definition: chartTesting.h:28
double time_
Time event was generated.
Definition: Event.h:38
GTSAM_UNSTABLE_EXPORT bool equals(const Event &other, double tol=1e-9) const
Definition: Event.cpp:32
Space-time event.
const G double tol
Definition: Group.h:86
#define abs(x)
Definition: datatypes.h:17


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:12