Files
ROS2_WS/protocol_ws/cpp_prococol/launch/cpp_protocol.launch.py

17 lines
458 B
Python
Raw Permalink Normal View History

2026-02-12 20:56:30 +08:00
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='cpp_prococol',
executable='cpp_pub_node', # 可执行文件名称
output='screen'
),
Node(
package='cpp_prococol',
executable='cpp_sub_node', # 可执行文件名称
output='screen'
)
])