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
904df5a0
Commit
904df5a0
authored
Mar 01, 2020
by
Barcis, Michal
Browse files
added launchfile
parent
fda54538
Changes
1
Hide whitespace changes
Inline
Side-by-side
launch/robot.launch.py
0 → 100644
View file @
904df5a0
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Launch sync and swarm simulation"""
import
launch
from
launch_ros.substitutions
import
ExecutableInPackage
import
socket
def
generate_launch_description
():
hostname
=
socket
.
gethostname
()
interface
=
[
ExecutableInPackage
(
package
=
'balboa_lowlevel'
,
executable
=
'balboa_interface'
),
'__ns:=/{}/balboa'
.
format
(
hostname
),
]
camera_streaming
=
[
ExecutableInPackage
(
package
=
'camera_streaming'
,
executable
=
'camera_streaming'
),
]
executables_list
=
[
interface
,
camera_streaming
]
processes
=
[
launch
.
actions
.
ExecuteProcess
(
cmd
=
executable
,
output
=
'screen'
)
for
executable
in
executables_list
]
return
launch
.
LaunchDescription
(
processes
+
[
launch
.
actions
.
RegisterEventHandler
(
event_handler
=
launch
.
event_handlers
.
OnProcessExit
(
target_action
=
process
,
on_exit
=
[
launch
.
actions
.
EmitEvent
(
event
=
launch
.
events
.
Shutdown
())],
))
for
process
in
processes
]
)
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