Skip to content
Snippets Groups Projects
Commit da9daa3b authored by simon.fanetti's avatar simon.fanetti
Browse files

fixe config stage

parent be777f64
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
## Unsable script for now ## Usable script for now
## LD_LIBRARY_PATH must contains dir's path to libsandbox.so ## LD_LIBRARY_PATH must contain dir's path to libsandbox.so
## Do the cmd in your terminal ## Do the cmd in your terminal
REALTIVE_PATH_TO_SO=../ar_sandbox_lib && \ REALTIVE_PATH_TO_SO=../ar_sandbox_lib && \
......
...@@ -21,6 +21,9 @@ public: ...@@ -21,6 +21,9 @@ public:
{ {
matRotation = matrix.clone(); matRotation = matrix.clone();
} }
cv::Mat getMatrixRotation(){
return matRotation.clone();
}
void setDistancePlan(float distance) void setDistancePlan(float distance)
{ {
distancePlan = distance; distancePlan = distance;
......
...@@ -71,7 +71,7 @@ void Camera::captureFramesAlign() ...@@ -71,7 +71,7 @@ void Camera::captureFramesAlign()
// Trying to get color and aligned depth frames // Trying to get color and aligned depth frames
rs2::video_frame color_frame = frameset.get_color_frame(); rs2::video_frame color_frame = frameset.get_color_frame();
rs2::depth_frame depth_frame = frameset.get_depth_frame(); rs2::depth_frame depth_frame = frameset.get_depth_frame();
//filterDepthFrame(depth_frame); filterDepthFrame(depth_frame);
matDepth = Mat(Size(depth_frame.get_width(), depth_frame.get_height()), CV_16UC1, (void *)depth_frame.get_data(), Mat::AUTO_STEP); matDepth = Mat(Size(depth_frame.get_width(), depth_frame.get_height()), CV_16UC1, (void *)depth_frame.get_data(), Mat::AUTO_STEP);
Mat(Size(color_frame.get_width(), color_frame.get_height()), CV_8UC3, (void *)color_frame.get_data(), Mat::AUTO_STEP).copyTo(matRGB); Mat(Size(color_frame.get_width(), color_frame.get_height()), CV_8UC3, (void *)color_frame.get_data(), Mat::AUTO_STEP).copyTo(matRGB);
} }
......
#include "../includes/sandbox.h" #include "../includes/sandbox.h"
Sandbox::Sandbox(){ Sandbox::Sandbox(){
//controller = Controller(); controller = Controller();
} }
cv::Mat Sandbox::getRGBFrame(){ cv::Mat Sandbox::getRGBFrame(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment