24 lines
1.0 KiB
XML
24 lines
1.0 KiB
XML
<?xml version="1.0"?>
|
|
<launch>
|
|
<!-- #################################################################### -->
|
|
<!-- 1. 可选:加载 YAML 参数文件(若需要配置参数) -->
|
|
<!-- #################################################################### -->
|
|
<!-- 路径格式:$(find 功能包名)/config/参数文件名.yaml -->
|
|
<!--<rosparam command="load" file="$(find your_package_name)/config/params.yaml" /> -->
|
|
|
|
<!-- #################################################################### -->
|
|
<!-- 2. 启动单个 Python 节点(基础版) -->
|
|
<!-- #################################################################### -->
|
|
<node
|
|
name="uav_ai_agent_node"
|
|
pkg="uav_agent"
|
|
type="uav_agent_ros_node.py"
|
|
output="screen"
|
|
required="false"
|
|
>
|
|
<!-- 节点私有参数(脚本中用 rospy.get_param("~param_name") 获取) -->
|
|
<!-- <param name="publish_freq" value="2" type="int" /> 发布频率 2Hz -->
|
|
</node>
|
|
|
|
</launch>
|