Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AAU NAV
development
camera_streaming
Commits
7871fd86
Commit
7871fd86
authored
Sep 25, 2020
by
Barcis, Michal
Browse files
Merge branch 'master' of gitlab.aau.at:aau-nav/development/camera_streaming into master
parents
c8067f57
f154bd2a
Changes
1
Show whitespace changes
Inline
Side-by-side
camera_streaming/camera_subscriber.py
View file @
7871fd86
...
...
@@ -74,7 +74,11 @@ class CameraSubscriber(Node, MissionExecutor):
self
.
saved
=
0
self
.
last_saved
=
datetime
.
now
().
timestamp
()
self
.
resolution
=
(
480
,
640
,
3
)
SOURCE_IMG_SIZE
=
(
640
,
480
)
# SOURCE_IMG_SIZE = (800, 600)
# SOURCE_IMG_SIZE = (1280, 960)
self
.
resolution
=
(
SOURCE_IMG_SIZE
[
1
],
SOURCE_IMG_SIZE
[
0
],
3
)
hosts_num
=
len
(
self
.
hosts
.
keys
())
self
.
shape
=
(
int
(
np
.
floor
(
np
.
sqrt
(
hosts_num
))),
...
...
@@ -276,7 +280,10 @@ class CameraSubscriber(Node, MissionExecutor):
self
.
fps
[
host
]
=
round
(
(
0.8
*
self
.
fps
[
host
]
+
0.2
*
1
/
(
t_gen
-
self
.
last_frame
[
host
]).
total_seconds
()
0.2
*
1
/
(
(
t_gen
-
self
.
last_frame
[
host
]).
total_seconds
()
or
1
)
),
2
)
...
...
@@ -289,6 +296,7 @@ class CameraSubscriber(Node, MissionExecutor):
)
/
2
native_message
=
ROS2NativeMessage
(
msg
=
msg
,
size
=
len
(
msg
.
data
),
sender
=
host
[
-
1
],
receivers
=
[
'base_station'
],
data_type_name
=
f
'v
{
host
[
-
1
]
}
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment