Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ar_sandbox_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AR_Sandbox
ar_sandbox_lib
Commits
da9daa3b
Commit
da9daa3b
authored
5 years ago
by
simon.fanetti
Browse files
Options
Downloads
Patches
Plain Diff
fixe config stage
parent
be777f64
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
export.sh
+2
-2
2 additions, 2 deletions
export.sh
includes/calibrate.h
+3
-0
3 additions, 0 deletions
includes/calibrate.h
src/core/components/camera.cpp
+1
-1
1 addition, 1 deletion
src/core/components/camera.cpp
src/sandbox.cpp
+1
-1
1 addition, 1 deletion
src/sandbox.cpp
with
7 additions
and
4 deletions
export.sh
+
2
−
2
View file @
da9daa3b
#!/bin/bash
#!/bin/bash
## U
n
sable script for now
## Usable script for now
## LD_LIBRARY_PATH must contain
s
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
&&
\
...
...
This diff is collapsed.
Click to expand it.
includes/calibrate.h
+
3
−
0
View file @
da9daa3b
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/core/components/camera.cpp
+
1
−
1
View file @
da9daa3b
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/sandbox.cpp
+
1
−
1
View file @
da9daa3b
#include
"../includes/sandbox.h"
#include
"../includes/sandbox.h"
Sandbox
::
Sandbox
(){
Sandbox
::
Sandbox
(){
//
controller = Controller();
controller
=
Controller
();
}
}
cv
::
Mat
Sandbox
::
getRGBFrame
(){
cv
::
Mat
Sandbox
::
getRGBFrame
(){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment