Deautoify 2019 vision a bit more
Change-Id: I45c74565c08059ae14fcba3dd4084ba134a21db8
diff --git a/y2019/vision/target_geometry.cc b/y2019/vision/target_geometry.cc
index 1c1fb99..7c8eeb4 100644
--- a/y2019/vision/target_geometry.cc
+++ b/y2019/vision/target_geometry.cc
@@ -45,7 +45,7 @@
return out;
}
-std::array<Vector<2>, 8> Target::toPointList() const {
+std::array<Vector<2>, 8> Target::ToPointList() const {
return std::array<Vector<2>, 8>{{right.top, right.inside, right.bottom,
right.outside, left.top, left.inside,
left.bottom, left.outside}};
@@ -153,12 +153,13 @@
Problem problem;
- auto target_value = target.toPointList();
- auto template_value = target_template_.toPointList();
+ ::std::array<aos::vision::Vector<2>, 8> target_value = target.ToPointList();
+ ::std::array<aos::vision::Vector<2>, 8> template_value =
+ target_template_.ToPointList();
for (size_t i = 0; i < 8; ++i) {
- auto a = template_value[i];
- auto b = target_value[i];
+ aos::vision::Vector<2> a = template_value[i];
+ aos::vision::Vector<2> b = target_value[i];
problem.AddResidualBlock(
new NumericDiffCostFunction<RuntimeCostFunctor, CENTRAL, 2, 4>(