Skip to content
Snippets Groups Projects
Commit 9717236e authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Commented test (to be updated to new laserscanutils api)

parent 967f9716
No related branches found
No related tags found
No related merge requests found
...@@ -106,11 +106,11 @@ IF(faramotics_FOUND) ...@@ -106,11 +106,11 @@ IF(faramotics_FOUND)
${pose_state_time_LIBRARIES} ${pose_state_time_LIBRARIES}
${faramotics_LIBRARIES} ${faramotics_LIBRARIES}
${PROJECT_NAME}) ${PROJECT_NAME})
ADD_EXECUTABLE(test_autodiff test_autodiff.cpp) # ADD_EXECUTABLE(test_autodiff test_autodiff.cpp)
TARGET_LINK_LIBRARIES(test_autodiff # TARGET_LINK_LIBRARIES(test_autodiff
${pose_state_time_LIBRARIES} # ${pose_state_time_LIBRARIES}
${faramotics_LIBRARIES} # ${faramotics_LIBRARIES}
${PROJECT_NAME}) # ${PROJECT_NAME})
IF(Suitesparse_FOUND) IF(Suitesparse_FOUND)
ADD_EXECUTABLE(test_iQR_wolf2 solver/test_iQR_wolf2.cpp) ADD_EXECUTABLE(test_iQR_wolf2 solver/test_iQR_wolf2.cpp)
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
//Wolf includes //Wolf includes
#include "wolf_manager.h" #include "wolf_manager.h"
#include "sensor_laser_2D.h" #include "sensor_laser_2D.h"
#include "processor_laser_2D.h"
#include "ceres_wrapper/ceres_manager.h" #include "ceres_wrapper/ceres_manager.h"
//C includes for sleep, time and main args //C includes for sleep, time and main args
...@@ -144,12 +143,8 @@ int main(int argc, char** argv) ...@@ -144,12 +143,8 @@ int main(int argc, char** argv)
// ceres_options.minimizer_progress_to_stdout = false; // ceres_options.minimizer_progress_to_stdout = false;
// ceres_options.line_search_direction_type = ceres::LBFGS; // ceres_options.line_search_direction_type = ceres::LBFGS;
// ceres_options.max_num_iterations = 100; // ceres_options.max_num_iterations = 100;
ceres::Problem::Options problem_options; CeresManager* ceres_manager_ceres = new CeresManager(wolf_manager_ceres->getProblemPtr(), false);
problem_options.cost_function_ownership = ceres::DO_NOT_TAKE_OWNERSHIP; CeresManager* ceres_manager_wolf = new CeresManager(wolf_manager_wolf->getProblemPtr(), true);
problem_options.loss_function_ownership = ceres::TAKE_OWNERSHIP;//ceres::DO_NOT_TAKE_OWNERSHIP;
problem_options.local_parameterization_ownership = ceres::DO_NOT_TAKE_OWNERSHIP;
CeresManager* ceres_manager_ceres = new CeresManager(wolf_manager_ceres->getProblemPtr(), problem_options, false);
CeresManager* ceres_manager_wolf = new CeresManager(wolf_manager_wolf->getProblemPtr(), problem_options, true);
std::ofstream log_file, landmark_file; //output file std::ofstream log_file, landmark_file; //output file
//std::cout << "START TRAJECTORY..." << std::endl; //std::cout << "START TRAJECTORY..." << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment