考虑到magpie360无人机机载电脑中由于算力有限,如果超过资源占用上限,容易导致事故,如果需要运行ros2go中的tutorial_all或其他高性能节点(如yolo识别),需要完整复制整个tutorials文件夹,或修改随机附赠代码tutotal_basic中的mavros.launch,目的是关闭原本默认打开的rosbag节点,降低资源占用。
事故表现为飞机失控。
修改前:

修改后:
<?xml version="1.0"?>
<launch>
<include file="$(find mavros)/launch/px4.launch">
<arg name="fcu_url" value="/dev/ttyACM0:57600"/>
</include>
<!--node pkg="rosbag" type="record" name="mavros_recorder"
args="record -a -x '/camera/.*' -O $(find tutorial_basic)/bags/record.bag">
</node-->
</launch>
