📄 forsee_robotposition.m
字号:
function forsee_RobotPosition
%forsee the position of Robot based on all particles,this is ok.
%2007.09.29
%------------------------------------------------------------------------
global num
global Robot
global p
%-------------------------------------------------------------------------
Robot(1)=0;
Robot(2)=0;
Robot(3)=0;
for i=1:1:num
Robot(1)=Robot(1)+p(i,4)*p(i,1);
Robot(2)=Robot(2)+p(i,4)*p(i,2);
Robot(3)=Robot(3)+p(i,4)*p(i,3);
end
%------------------------------------------------------------------------
Init_RobotSonar;
%------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -