ros_gateway Brick:在 App Lab 中建立可靠的 WebSocket 通道ros2/launch/ros_gateway.launch.py
# SPDX-License-Identifier: MITfrom pathlib import Pathfrom ament_index_python.packages import get_package_share_directoryfrom launch import LaunchDescriptionfrom launch_ros.actions import Nodedef generate_launch_description():"""@description : 创建加载默认参数文件的 ROS 2 启动描述@param : 无参数@return : LaunchDescription 实例"""package_share = Path(get_package_share_directory("ventuno_app_bridge"))parameters_file = package_share / "config" / "bridge_params.yaml"return LaunchDescription([Node(package="ventuno_app_bridge",executable="ventuno_app_bridge_node",name="ventuno_app_bridge_node",output="screen",parameters=[str(parameters_file)],)])