gtsam
inference
EdgeKey.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
19
#include <
gtsam/inference/EdgeKey.h
>
20
21
namespace
gtsam
{
22
23
EdgeKey::operator std::string()
const
{
24
return
"{"
+ std::to_string(i_) +
", "
+ std::to_string(j_) +
"}"
;
25
}
26
27
GTSAM_EXPORT std::ostream&
operator<<
(std::ostream&
os
,
const
EdgeKey
&
key
) {
28
os
<< (std::string)
key
;
29
return
os
;
30
}
31
32
void
EdgeKey::print
(
const
std::string&
s
)
const
{
33
std::cout <<
s
<< *
this
<< std::endl;
34
}
35
36
}
// namespace gtsam
s
RealScalar s
Definition:
level1_cplx_impl.h:126
gtsam::operator<<
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
Definition:
testGroup.cpp:109
gtsam::EdgeKey::print
void print(const std::string &s="") const
Prints the EdgeKey with an optional prefix string.
Definition:
EdgeKey.cpp:32
os
ofstream os("timeSchurFactors.csv")
key
const gtsam::Symbol key('X', 0)
gtsam::EdgeKey
Definition:
EdgeKey.h:25
gtsam
traits
Definition:
SFMdata.h:40
EdgeKey.h
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:14