/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:163:1: error: reference to ‘Vector3’ is ambiguous
163 | Vector3 obsToCamera(
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:175:1: error: reference to ‘Vector3’ is ambiguous
175 | Vector3 cameraToWorld(
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:196:1: error: reference to ‘Vector3’ is ambiguous
196 | Vector3 worldToCamera(
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp: In member function ‘bool facebook::cp::{anonymous}::SceneFlowSmoothnessLoss::operator()(const T* const*, T*) const’:
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:338:5: error: reference to ‘Vector3’ is ambiguous
338 | Vector3 pointCam0 = obsToCamera(obs0, params0);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:338:14: error: expected primary-expression before ‘>’ token
338 | Vector3 pointCam0 = obsToCamera(obs0, params0);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:338:16: error: ‘pointCam0’ was not declared in this scope
338 | Vector3 pointCam0 = obsToCamera(obs0, params0);
| ^~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:341:5: error: reference to ‘Vector3’ is ambiguous
341 | Vector3 pointCam1 = obsToCamera(obs1, params1);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:341:14: error: expected primary-expression before ‘>’ token
341 | Vector3 pointCam1 = obsToCamera(obs1, params1);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:341:16: error: ‘pointCam1’ was not declared in this scope
341 | Vector3 pointCam1 = obsToCamera(obs1, params1);
| ^~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:344:5: error: reference to ‘Vector3’ is ambiguous
344 | Vector3 pointCam2 = obsToCamera(obs2, params2);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:344:14: error: expected primary-expression before ‘>’ token
344 | Vector3 pointCam2 = obsToCamera(obs2, params2);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:344:16: error: ‘pointCam2’ was not declared in this scope
344 | Vector3 pointCam2 = obsToCamera(obs2, params2);
| ^~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:347:5: error: reference to ‘Vector2’ is ambiguous
347 | Vector2 focal0, focal1, focal2;
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector2 = Eigen::Matrix<Type, 2, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:540:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
540 | EIGEN_MAKE_TYPEDEFS(2, 2)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:31:7: note: ‘template using Vector2 = Eigen::Matrix<Type, 2, 1>’
31 | using Vector2 = Matrix<T, 2, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:347:14: error: expected primary-expression before ‘>’ token
347 | Vector2 focal0, focal1, focal2;
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:347:16: error: ‘focal0’ was not declared in this scope
347 | Vector2 focal0, focal1, focal2;
| ^~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:347:24: error: ‘focal1’ was not declared in this scope
347 | Vector2 focal0, focal1, focal2;
| ^~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:347:32: error: ‘focal2’ was not declared in this scope
347 | Vector2 focal0, focal1, focal2;
| ^~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:362:18: error: template argument 1 is invalid
362 | Map<Vector3> smoothLoss(residuals);
| ^~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:369:7: error: reference to ‘Vector3’ is ambiguous
369 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:369:16: error: expected primary-expression before ‘>’ token
369 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:369:18: error: ‘pointWorld0’ was not declared in this scope
369 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:370:7: error: reference to ‘Vector3’ is ambiguous
370 | Vector3 pointWorld1 = cameraToWorld(pointCam1, focal1, params1.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:370:16: error: expected primary-expression before ‘>’ token
370 | Vector3 pointWorld1 = cameraToWorld(pointCam1, focal1, params1.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:370:18: error: ‘pointWorld1’ was not declared in this scope
370 | Vector3 pointWorld1 = cameraToWorld(pointCam1, focal1, params1.pose);
| ^~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:371:7: error: reference to ‘Vector3’ is ambiguous
371 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:371:16: error: expected primary-expression before ‘>’ token
371 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:371:18: error: ‘pointWorld2’ was not declared in this scope
371 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:375:7: error: reference to ‘Vector3’ is ambiguous
375 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:375:16: error: expected primary-expression before ‘>’ token
375 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:375:18: error: ‘pointWorld0’ was not declared in this scope
375 | Vector3 pointWorld0 = cameraToWorld(pointCam0, focal0, params0.pose);
| ^~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:376:7: error: reference to ‘Vector3’ is ambiguous
376 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:376:16: error: expected primary-expression before ‘>’ token
376 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:376:18: error: ‘pointWorld2’ was not declared in this scope
376 | Vector3 pointWorld2 = cameraToWorld(pointCam2, focal2, params2.pose);
| ^~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:378:7: error: reference to ‘Vector3’ is ambiguous
378 | Vector3 pointCam0To1 = worldToCamera(pointWorld0, focal1, params1.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:378:16: error: expected primary-expression before ‘>’ token
378 | Vector3 pointCam0To1 = worldToCamera(pointWorld0, focal1, params1.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:378:18: error: ‘pointCam0To1’ was not declared in this scope
378 | Vector3 pointCam0To1 = worldToCamera(pointWorld0, focal1, params1.pose);
| ^~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:379:7: error: reference to ‘Vector3’ is ambiguous
379 | Vector3 pointCam2To1 = worldToCamera(pointWorld2, focal1, params1.pose);
| ^~~~~~~
In file included from /home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/Core:295,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/core/ParamsBase.h:8,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.h:7,
from /home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:3:
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:524:7: note: candidates are: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
524 | using Vector##SizeSuffix = Matrix<Type, Size, 1>;
| ^~~~~~
/home/nadeem/anaconda3/envs/depth/include/eigen3/Eigen/src/Core/Matrix.h:541:1: note: in expansion of macro ‘EIGEN_MAKE_TYPEDEFS’
541 | EIGEN_MAKE_TYPEDEFS(3, 3)
| ^~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:34:7: note: ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
34 | using Vector3 = Matrix<T, 3, 1>;
| ^~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:379:16: error: expected primary-expression before ‘>’ token
379 | Vector3 pointCam2To1 = worldToCamera(pointWorld2, focal1, params1.pose);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:379:18: error: ‘pointCam2To1’ was not declared in this scope
379 | Vector3 pointCam2To1 = worldToCamera(pointWorld2, focal1, params1.pose);
| ^~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:381:18: error: request for member ‘x’ in ‘smoothLoss’, which is of non-class type ‘int’
381 | smoothLoss.x() =
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:384:18: error: request for member ‘y’ in ‘smoothLoss’, which is of non-class type ‘int’
384 | smoothLoss.y() =
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:394:20: error: request for member ‘z’ in ‘smoothLoss’, which is of non-class type ‘int’
394 | smoothLoss.z() = repro0To1Disp + repro2To1Disp - disp1 * 2.0;
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:403:22: error: request for member ‘z’ in ‘smoothLoss’, which is of non-class type ‘int’
403 | smoothLoss.z() = (maxDepth / minDepth - 1.0);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:405:22: error: request for member ‘z’ in ‘smoothLoss’, which is of non-class type ‘int’
405 | smoothLoss.z() = log(minDepth / maxDepth);
| ^
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp: In instantiation of ‘bool facebook::cp::{anonymous}::SceneFlowSmoothnessLoss::operator()(const T const, T) const [with T = double]’:
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:93:25: required from ‘bool ceres::DynamicAutoDiffCostFunction<CostFunctor, Stride>::Evaluate(const double const, double, double) const [with CostFunctor = facebook::cp::{anonymous}::SceneFlowSmoothnessLoss; int Stride = 4]’
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:85:16: required from here
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:362:32: error: invalid conversion from ‘double’ to ‘int’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
362 | Map<Vector3> smoothLoss(residuals);
| ^~~~~~~~~
| |
| double*
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp: In instantiation of ‘bool facebook::cp::{anonymous}::SceneFlowSmoothnessLoss::operator()(const T* const*, T*) const [with T = ceres::Jet<double, 4>]’:
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:203:23: required from ‘bool ceres::DynamicAutoDiffCostFunction<CostFunctor, Stride>::Evaluate(const double* const*, double*, double**) const [with CostFunctor = facebook::cp::{anonymous}::SceneFlowSmoothnessLoss; int Stride = 4]’
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:85:16: required from here
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:362:32: error: invalid conversion from ‘ceres::Jet<double, 4>’ to ‘int’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
362 | Map<Vector3> smoothLoss(residuals);
| ^~~~~~~~~
| |
| ceres::Jet<double, 4>
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp: In instantiation of ‘bool facebook::cp::{anonymous}::StaticSceneCost::operator()(const T* const*, T*) const [with T = double]’:
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:93:25: required from ‘bool ceres::DynamicAutoDiffCostFunction<CostFunctor, Stride>::Evaluate(const double* const*, double*, double**) const [with CostFunctor = facebook::cp::{anonymous}::StaticSceneCost; int Stride = 4]’
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:85:16: required from here
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:259:39: error: ‘obsToCamera’ was not declared in this scope
259 | Vector3 pointCam0 = obsToCamera(obs0, params0);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:261:22: error: ‘cameraToWorld’ was not declared in this scope
261 | cameraToWorld(pointCam0, focal0, params0.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:263:39: error: ‘obsToCamera’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
263 | Vector3 pointCam1 = obsToCamera(obs1, params1);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:270:45: error: ‘cameraToWorld’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
270 | Vector3 pointWorld1 = cameraToWorld(pointCam1, focal1, params1.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:281:24: error: ‘worldToCamera’ was not declared in this scope
281 | worldToCamera(pointWorld0, focal1, params1.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp: In instantiation of ‘bool facebook::cp::{anonymous}::StaticSceneCost::operator()(const T const, T*) const [with T = ceres::Jet<double, 4>]’:
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:203:23: required from ‘bool ceres::DynamicAutoDiffCostFunction<CostFunctor, Stride>::Evaluate(const double* const*, double*, double**) const [with CostFunctor = facebook::cp::{anonymous}::StaticSceneCost; int Stride = 4]’
/home/nadeem/anaconda3/envs/depth/include/ceres/dynamic_autodiff_cost_function.h:85:16: required from here
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:259:39: error: ‘obsToCamera’ was not declared in this scope
259 | Vector3 pointCam0 = obsToCamera(*obs0, params0);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:261:22: error: ‘cameraToWorld’ was not declared in this scope
261 | cameraToWorld(pointCam0, focal0, params0.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:263:39: error: ‘obsToCamera’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
263 | Vector3 pointCam1 = obsToCamera(*obs1, params1);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:270:45: error: ‘cameraToWorld’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-fpermissive-fpermissive]8;;]
270 | Vector3 pointWorld1 = cameraToWorld(pointCam1, focal1, params1.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/PoseOptimizer.cpp:281:24: error: ‘worldToCamera’ was not declared in this scope
281 | worldToCamera(pointWorld0, focal1, params1.pose);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/build'
make[1]: Leaving directory '/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/build'
make: Leaving directory '/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/build'
make[2]: *** [CMakeFiles/lib_cvd.dir/build.make:216: CMakeFiles/lib_cvd.dir/PoseOptimizer.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/lib_cvd.dir/all] Error 2
make: *** [/home/nadeem/Downloads/robust_cvd/lib/cvd2/lib/build/Makefile:91: all] Error 2
Process finished with exit code 2