removed unused typedefs
parent
ac9fcdcc1f
commit
7b6eaa4333
|
@ -46,7 +46,6 @@ static double rankTol = 1.0;
|
||||||
template<class CALIBRATION>
|
template<class CALIBRATION>
|
||||||
PinholeCamera<CALIBRATION> perturbCameraPoseAndCalibration(
|
PinholeCamera<CALIBRATION> perturbCameraPoseAndCalibration(
|
||||||
const PinholeCamera<CALIBRATION>& camera) {
|
const PinholeCamera<CALIBRATION>& camera) {
|
||||||
GTSAM_CONCEPT_MANIFOLD_TYPE(CALIBRATION)
|
|
||||||
Pose3 noise_pose = Pose3(Rot3::Ypr(-M_PI / 10, 0., -M_PI / 10),
|
Pose3 noise_pose = Pose3(Rot3::Ypr(-M_PI / 10, 0., -M_PI / 10),
|
||||||
Point3(0.5, 0.1, 0.3));
|
Point3(0.5, 0.1, 0.3));
|
||||||
Pose3 cameraPose = camera.pose();
|
Pose3 cameraPose = camera.pose();
|
||||||
|
|
|
@ -43,8 +43,6 @@ using namespace std;
|
||||||
using namespace gtsam;
|
using namespace gtsam;
|
||||||
|
|
||||||
int main(int argc, char** argv){
|
int main(int argc, char** argv){
|
||||||
|
|
||||||
typedef PinholePose<Cal3_S2> Camera;
|
|
||||||
typedef SmartProjectionPoseFactor<Cal3_S2> SmartFactor;
|
typedef SmartProjectionPoseFactor<Cal3_S2> SmartFactor;
|
||||||
|
|
||||||
Values initial_estimate;
|
Values initial_estimate;
|
||||||
|
|
|
@ -353,7 +353,6 @@ namespace gtsam { namespace partition {
|
||||||
void reduceGenericGraph(const GenericGraph3D& graph, const std::vector<size_t>& cameraKeys, const std::vector<size_t>& landmarkKeys,
|
void reduceGenericGraph(const GenericGraph3D& graph, const std::vector<size_t>& cameraKeys, const std::vector<size_t>& landmarkKeys,
|
||||||
const std::vector<int>& dictionary, GenericGraph3D& reducedGraph) {
|
const std::vector<int>& dictionary, GenericGraph3D& reducedGraph) {
|
||||||
|
|
||||||
typedef size_t CameraKey;
|
|
||||||
typedef size_t LandmarkKey;
|
typedef size_t LandmarkKey;
|
||||||
// get a mapping from each landmark to its connected cameras
|
// get a mapping from each landmark to its connected cameras
|
||||||
vector<vector<LandmarkKey> > cameraToLandmarks(dictionary.size());
|
vector<vector<LandmarkKey> > cameraToLandmarks(dictionary.size());
|
||||||
|
|
|
@ -243,7 +243,6 @@ TEST(ExpressionFactor, Shallow) {
|
||||||
|
|
||||||
// traceExecution of shallow tree
|
// traceExecution of shallow tree
|
||||||
typedef internal::UnaryExpression<Point2, Point3> Unary;
|
typedef internal::UnaryExpression<Point2, Point3> Unary;
|
||||||
typedef internal::BinaryExpression<Point3, Pose3, Point3> Binary;
|
|
||||||
size_t size = expression.traceSize();
|
size_t size = expression.traceSize();
|
||||||
internal::ExecutionTraceStorage traceStorage[size];
|
internal::ExecutionTraceStorage traceStorage[size];
|
||||||
internal::ExecutionTrace<Point2> trace;
|
internal::ExecutionTrace<Point2> trace;
|
||||||
|
|
Loading…
Reference in New Issue