-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
7,841 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
using namespace cv; | ||
using namespace std; | ||
|
||
namespace uw | ||
namespace vi | ||
{ | ||
|
||
class CameraModel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#include <iostream> | ||
#include <fstream> | ||
#include "DataReader.hpp" | ||
#include "Visualizer.hpp" | ||
#include "Camera.hpp" | ||
#include "Imu.hpp" | ||
#include "Plus.hpp" | ||
#include "CameraModel.hpp" | ||
#include "opencv2/core.hpp" | ||
#include "opencv2/highgui.hpp" | ||
#include "opencv2/calib3d.hpp" | ||
#include <ctime> | ||
|
||
#include <ros/ros.h> | ||
#include <ros/console.h> | ||
|
||
#include <std_msgs/Int32.h> | ||
#include <geometry_msgs/Vector3.h> | ||
#include <geometry_msgs/Quaternion.h> | ||
|
||
|
||
// Eigen library | ||
#include <eigen3/Eigen/Core> | ||
|
||
// Sophus | ||
#include "sophus/se3.hpp" | ||
#include "sophus/so3.hpp" | ||
|
||
|
||
using namespace std; | ||
using namespace cv; | ||
|
||
namespace vi | ||
{ | ||
class CameraModel; | ||
class VISystem | ||
{ | ||
public: | ||
VISystem(); | ||
~VISystem(); | ||
VISystem(int argc, char *argv[], int _start_index); | ||
|
||
void InitializeSystem(string _outputPath, string _depthPath, string _calPath, Point3d _iniPosition, Point3d _iniVelocity, float _iniYaw); | ||
// Gauss-Newton using Foward Compositional Algorithm - Using features | ||
void Calibration(string _calibration_path); | ||
void EstimatePoseFeatures(Frame* _previous_frame, Frame* _current_frame); | ||
void CalculateROI(); | ||
void AddFrame(Mat _currentImage, vector <Point3d> _imuAngularVelocity, vector <Point3d> _imuAcceleration); | ||
void AddFrame(Mat _currentImage, vector <Point3d> _imuAngularVelocity, vector <Point3d> _imuAcceleration, vector <Point3d> _gtRPY) ; | ||
void FreeLastFrame(); | ||
|
||
bool initialized, distortion_valid , depth_available; | ||
int num_keyframes; | ||
int num_max_keyframes; | ||
|
||
Mat map1, map2; | ||
int h, w, h_input, w_input; | ||
float fx, fy, cx, cy; | ||
|
||
Point3d position; | ||
Point3d velocity; | ||
Quateriond qOrientation; | ||
Point3d RPYOrientation; | ||
CameraModel* camera_model; | ||
|
||
Camera camera; | ||
Imu imuCore; | ||
std::ofstream outputFile; | ||
Mat K; | ||
Rect ROI; | ||
|
||
// Residuales IMU | ||
|
||
|
||
|
||
|
||
}; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.