bresenham3D 障碍物判断:对于从A点到B点的一条路径,按照 A 到 A+1, A 到 A+2, A 到 A+3的方式,使用bresenham3D方法进行连线,如果连线和障碍物不重合,且与障碍物距离大于某一设定好的阈值,将连线的终点从原始路径中删除,若连线与障碍物重合,保留上一条连线终点,并将新的连线起点设置为上一条连线终点。
<!--
Example launch file for octomap_server mapping:
Listens to incoming PointCloud2 data and incrementally builds an octomap.
The data is sent out in different representations.
Copy this file into your workspace and adjust as needed, see
www.ros.org/wiki/octomap_server for details
-->
<launch>
<node pkg="octomap_server" type="octomap_server_node" name="octomap_server">
<param name="resolution" value="0.1" />
<!-- fixed map frame (set to 'map' if SLAM or localization running!) -->
<param name="frame_id" type="string" value="/map" />
<!-- maximum range to integrate (speedup!) -->
<param name="sensor_model/max_range" value="10" />
<!-- data source to integrate (PointCloud2) -->
<!-- <remap from="cloud_in" to="/narrow_stereo/points_filtered2" /> -->
<remap from="cloud_in" to="cloud_in" />
</node>
</launch>