Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nicolas Pope
ftl
Commits
c7c9efa0
Commit
c7c9efa0
authored
5 years ago
by
Sebastian Hahta
Browse files
Options
Downloads
Patches
Plain Diff
fix channel aggregation
parent
903f2032
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#19784
passed
5 years ago
Stage: all
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
applications/gui/src/camera.hpp
+2
-0
2 additions, 0 deletions
applications/gui/src/camera.hpp
applications/gui/src/src_window.cpp
+9
-7
9 additions, 7 deletions
applications/gui/src/src_window.cpp
applications/gui/src/src_window.hpp
+1
-1
1 addition, 1 deletion
applications/gui/src/src_window.hpp
with
12 additions
and
8 deletions
applications/gui/src/camera.hpp
+
2
−
0
View file @
c7c9efa0
...
...
@@ -33,6 +33,8 @@ class Camera {
int
width
()
const
{
return
width_
;
}
int
height
()
const
{
return
height_
;
}
int
getFramesetId
()
const
{
return
fsid_
;
}
void
setPose
(
const
Eigen
::
Matrix4d
&
p
);
void
mouseMovement
(
int
rx
,
int
ry
,
int
button
);
...
...
This diff is collapsed.
Click to expand it.
applications/gui/src/src_window.cpp
+
9
−
7
View file @
c7c9efa0
...
...
@@ -81,7 +81,7 @@ SourceWindow::SourceWindow(ftl::gui::Screen *screen)
cycle_
=
0
;
receiver_
->
onFrameSet
([
this
](
ftl
::
rgbd
::
FrameSet
&
fs
)
{
// Request the channels required by current camera configuration
interceptor_
->
select
(
fs
.
id
,
_aggregateChannels
());
interceptor_
->
select
(
fs
.
id
,
_aggregateChannels
(
fs
.
id
));
/*if (fs.id > 0) {
LOG(INFO) << "Got frameset: " << fs.id;
...
...
@@ -201,14 +201,16 @@ void SourceWindow::stopRecordingVideo() {
}
}
ftl
::
codecs
::
Channels
<
0
>
SourceWindow
::
_aggregateChannels
()
{
ftl
::
codecs
::
Channels
<
0
>
SourceWindow
::
_aggregateChannels
(
int
id
)
{
ftl
::
codecs
::
Channels
<
0
>
cs
=
ftl
::
codecs
::
Channels
<
0
>
(
Channel
::
Colour
);
for
(
auto
cam
:
cameras_
)
{
if
(
cam
.
second
.
camera
->
isVirtual
())
{
cs
+=
Channel
::
Depth
;
}
else
{
if
(
cam
.
second
.
camera
->
getChannel
()
!=
Channel
::
None
)
{
cs
+=
cam
.
second
.
camera
->
getChannel
();
if
(
cam
.
second
.
camera
->
getFramesetId
()
==
id
)
{
if
(
cam
.
second
.
camera
->
isVirtual
())
{
cs
+=
Channel
::
Depth
;
}
else
{
if
(
cam
.
second
.
camera
->
getChannel
()
!=
Channel
::
None
)
{
cs
+=
cam
.
second
.
camera
->
getChannel
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
applications/gui/src/src_window.hpp
+
1
−
1
View file @
c7c9efa0
...
...
@@ -79,7 +79,7 @@ class SourceWindow : public nanogui::Window {
void
_updateCameras
(
const
std
::
vector
<
std
::
string
>
&
netcams
);
void
_createDefaultCameras
(
ftl
::
rgbd
::
FrameSet
&
fs
,
bool
makevirtual
);
ftl
::
codecs
::
Channels
<
0
>
_aggregateChannels
();
ftl
::
codecs
::
Channels
<
0
>
_aggregateChannels
(
int
id
);
void
_checkFrameSets
(
int
id
);
};
...
...
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