launch
ros2
find_object_2d.launch.py
Go to the documentation of this file.
1
2
from
launch
import
LaunchDescription
3
from
launch.actions
import
DeclareLaunchArgument, SetEnvironmentVariable
4
from
launch.substitutions
import
LaunchConfiguration
5
from
launch_ros.actions
import
Node
6
7
def
generate_launch_description
():
8
9
return
LaunchDescription([
10
11
SetEnvironmentVariable(
'RCUTILS_LOGGING_USE_STDOUT'
,
'1'
),
12
SetEnvironmentVariable(
'RCUTILS_LOGGING_BUFFERED_STREAM'
,
'0'
),
13
14
# Launch arguments
15
DeclareLaunchArgument(
'gui'
, default_value=
'true'
, description=
'Launch GUI.'
),
16
DeclareLaunchArgument(
'image_topic'
, default_value=
'image'
, description=
'Image topic to subscribe to.'
),
17
DeclareLaunchArgument(
'objects_path'
, default_value=
'~/objects'
, description=
'Directory containing objects to load on initialization.'
),
18
DeclareLaunchArgument(
'settings_path'
, default_value=
'~/.ros/find_object_2d.ini'
, description=
'Config file.'
),
19
20
# Nodes to launch
21
Node(
22
package=
'find_object_2d'
, executable=
'find_object_2d'
, output=
'screen'
,
23
parameters=[{
24
'gui'
:LaunchConfiguration(
'gui'
),
25
'objects_path'
:LaunchConfiguration(
'objects_path'
),
26
'settings_path'
:LaunchConfiguration(
'settings_path'
)
27
}],
28
remappings=[
29
(
'image'
, LaunchConfiguration(
'image_topic'
))]),
30
])
find_object_2d.generate_launch_description
def generate_launch_description()
Definition:
find_object_2d.launch.py:7
find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:43:35