Skip to content

Commit

Permalink
updated launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
KalanaRatnayake committed Jul 19, 2024
1 parent 14d09f5 commit b239ad6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion launch/docker.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import launch
import launch_ros.actions
from launch import LaunchDescription
from launch.substitutions import LaunchConfiguration
from launch.actions import DeclareLaunchArgument
import yaml

Expand All @@ -23,7 +24,18 @@ def generate_launch_description():

yolo_ros_node = launch_ros.actions.Node(package='yolo_ros',
executable='yolo_ros',
output='both'
output='both',
parameters=[{
'yolo_model': LaunchConfiguration('yolo_model'),
'input_rgb_topic': LaunchConfiguration('input_rgb_topic'),
'input_depth_topic': LaunchConfiguration('input_depth_topic'),
'subscribe_depth': LaunchConfiguration('subscribe_depth'),
'publish_annotated_image': LaunchConfiguration('publish_annotated_image'),
'annotated_topic': LaunchConfiguration('annotated_topic'),
'detailed_topic': LaunchConfiguration('detailed_topic'),
'threshold': LaunchConfiguration('threshold'),
'device': LaunchConfiguration('device'),
}]
)

ld = LaunchDescription()
Expand Down

0 comments on commit b239ad6

Please sign in to comment.