完善双雷达仿真与自动上坡任务,更新使用文档

加入下置 MID360 前向补盲与双雷达融合,修复北侧走廊导航、坐标适配和数据时效处理。

实现接近坡脚、姿态辅助上坡与平台停车任务,增加独立快模式、命令仲裁及失效停车保护,保留测试与分阶段验收记录。

同步实车尺寸及雷达安装参数,调整 Gazebo 红方默认视角,完善根目录 README、仿真使用和实车迁移说明。
This commit is contained in:
2026-11-12 16:42:07 +08:00
parent cac93cae11
commit 6f1d837b46
95 changed files with 13667 additions and 244 deletions
+3 -3
View File
@@ -26,8 +26,8 @@ def main():
center=np.array([state['pos'][0]+distance,state['pos'][1],height/2])
# The far TOP face can be visible even if the front face is below
# the lower FOV. Include box depth; a point-target approximation
# wrongly predicts that the 8 cm / 3 m fixture is invisible.
q=np.array(state['quaternion']);origin=np.array(state['pos'])+rotate(q,np.array([0.,0.,.3]))
# can misclassify a fixture near the lower-FOV boundary.
q=np.array(state['quaternion']);origin=np.array(state['pos'])+rotate(q,np.array([.015,0.,.33]))
inverse=q.copy();inverse[:3]*=-1
corners=np.array([[center[0]+dx,center[1]+dy,height] for dx in (-.125,.125) for dy in (-.125,.125)])
local=rotate(inverse,corners-origin)
@@ -43,7 +43,7 @@ def main():
p.pump(.2);t=p.now();p.pump(1.5)
frames=[f for f in p.frames if t<f['t'] and f['t']+.1<p.now()]
if len(frames)<8:raise RuntimeError('insufficient actual scans')
q=np.array(state['quaternion']);origin=np.array(state['pos'])+rotate(q,np.array([0.,0.,.3]));all_world=[]
q=np.array(state['quaternion']);origin=np.array(state['pos'])+rotate(q,np.array([.015,0.,.33]));all_world=[]
for f in frames:all_world.append(rotate(q,f['xyz'])+origin)
world=np.concatenate(all_world)
in_box=(abs(world[:,0]-center[0])<.126)&(abs(world[:,1]-center[1])<.126)&(world[:,2]>.005)&(world[:,2]<=height+.002)