Skip to content

Commit

Permalink
fixed method naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Dec 20, 2021
1 parent cab0dd0 commit e6ca595
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gtsam/inference/DotWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void DotWriter::ConnectVariableFactor(Key key, size_t i, ostream* os) {
<< "factor" << i << ";\n";
}

void DotWriter::ProcessFactor(size_t i, const KeyVector& keys,
void DotWriter::processFactor(size_t i, const KeyVector& keys,
const boost::optional<Vector2>& position,
ostream* os) const {
if (plotFactorPoints) {
Expand Down Expand Up @@ -90,4 +90,4 @@ void DotWriter::ProcessFactor(size_t i, const KeyVector& keys,
}
}

} // namespace gtsam
} // namespace gtsam
2 changes: 1 addition & 1 deletion gtsam/inference/DotWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct GTSAM_EXPORT DotWriter {
static void ConnectVariableFactor(Key key, size_t i, std::ostream* os);

/// Draw a single factor, specified by its index i and its variable keys.
void ProcessFactor(size_t i, const KeyVector& keys,
void processFactor(size_t i, const KeyVector& keys,
const boost::optional<Vector2>& position,
std::ostream* os) const;
};
Expand Down
2 changes: 1 addition & 1 deletion gtsam/inference/FactorGraph-inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void FactorGraph<FACTOR>::dot(std::ostream& os, const DotWriter& writer,
const auto& factor = at(i);
if (factor) {
const KeyVector& factorKeys = factor->keys();
writer.ProcessFactor(i, factorKeys, boost::none, &os);
writer.processFactor(i, factorKeys, boost::none, &os);
}
}

Expand Down
4 changes: 2 additions & 2 deletions gtsam/nonlinear/NonlinearFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ void NonlinearFactorGraph::dot(std::ostream& os, const Values& values,
// Create factors and variable connections
size_t i = 0;
for (const KeyVector& factorKeys : structure) {
writer.ProcessFactor(i++, factorKeys, boost::none, &os);
writer.processFactor(i++, factorKeys, boost::none, &os);
}
} else {
// Create factors and variable connections
for (size_t i = 0; i < size(); ++i) {
const NonlinearFactor::shared_ptr& factor = at(i);
if (factor) {
const KeyVector& factorKeys = factor->keys();
writer.ProcessFactor(i, factorKeys, writer.factorPos(min, i), &os);
writer.processFactor(i, factorKeys, writer.factorPos(min, i), &os);
}
}
}
Expand Down

0 comments on commit e6ca595

Please sign in to comment.