Skip to content
Snippets Groups Projects
Commit e7db0ded authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Fixed examples

parent a43ae098
No related branches found
No related tags found
1 merge request!252Renamed Constraint to Factor and others
Pipeline #2656 passed
...@@ -100,6 +100,7 @@ option(_WOLF_TRACE "Enable wolf tracing macro" ON) ...@@ -100,6 +100,7 @@ option(_WOLF_TRACE "Enable wolf tracing macro" ON)
# option(BUILD_EXAMPLES "Build examples" OFF) # option(BUILD_EXAMPLES "Build examples" OFF)
set(BUILD_TESTS true) set(BUILD_TESTS true)
set(BUILD_EXAMPLES true)
# Does this has any other interest # Does this has any other interest
# but for the examples ? # but for the examples ?
......
...@@ -73,7 +73,7 @@ int main(int argc, char** argv) ...@@ -73,7 +73,7 @@ int main(int argc, char** argv)
ProblemPtr problem_ptr_ = Problem::create("PQVBB 3D"); ProblemPtr problem_ptr_ = Problem::create("PQVBB 3D");
Eigen::VectorXs extrinsics(7); Eigen::VectorXs extrinsics(7);
extrinsics << 0,0,0, 0,0,0,1; // IMU pose in the robot extrinsics << 0,0,0, 0,0,0,1; // IMU pose in the robot
SensorBasePtr sensor_ptr = problem_ptr_->installSensor("IMU", "Main IMU", extrinsics, IntrinsicsBase()); SensorBasePtr sensor_ptr = problem_ptr_->installSensor("IMU", "Main IMU", extrinsics, IntrinsicsBasePtr());
problem_ptr_->installProcessor("IMU", "IMU pre-integrator", "Main IMU", ""); problem_ptr_->installProcessor("IMU", "IMU pre-integrator", "Main IMU", "");
// Time and data variables // Time and data variables
......
...@@ -187,7 +187,7 @@ int main(int argc, char** argv) ...@@ -187,7 +187,7 @@ int main(int argc, char** argv)
// Wolf problem // Wolf problem
FrameBasePtr last_frame_ptr, frame_from_ptr, frame_to_ptr; FrameBasePtr last_frame_ptr, frame_from_ptr, frame_to_ptr;
ProblemPtr bl_problem_ptr = Problem::create("PO_2D"); ProblemPtr bl_problem_ptr = Problem::create("PO_2D");
SensorBasePtr sensor_ptr = bl_problem_ptr->installSensor("ODOM 2D", "Odometry", Eigen::VectorXs::Zero(3), IntrinsicsBase()); SensorBasePtr sensor_ptr = bl_problem_ptr->installSensor("ODOM 2D", "Odometry", Eigen::VectorXs::Zero(3), IntrinsicsBasePtr());
// Ceres wrapper // Ceres wrapper
std::string bl_summary, sp_summary; std::string bl_summary, sp_summary;
......
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