in workspace/src/greengrass-bridge/launch/greengrass_bridge.launch.py [0:0]
def generate_launch_description():
ros_topics = LaunchConfiguration('ros_topics')
iot_topics = LaunchConfiguration('iot_topics')
return LaunchDescription([
DeclareLaunchArgument(
'ros_topics',
default_value='[]',
description='List of ROS2 topics to bridge.'),
DeclareLaunchArgument(
'iot_topics',
default_value='[]',
description='List of IoT topics to bridge.'),
Node(
package='greengrass_bridge', executable='greengrass_bridge', output='screen',
parameters=[
{"ros_topics": ros_topics},
{"iot_topics": iot_topics}
],
name=['greengrass_bridge'])
])