“SamplesPerFrame”财产kinematicTrajectory函数中不工作?
9的观点(30天)
显示旧的评论
你好,
我用Matlab R2019b传感器融合和跟踪工具箱,并得到了以下警告当我设置的“SamplePerFrame”属性
kinematicTrajectory
>轨迹= kinematicTrajectory (“SamplesPerFrame”“SampleRate”, 20日,100)
警告:SamplesPerFrame属性不相关这个配置系统的对象。
>在matlab.system.SystemProp /找
在kinematicTrajectory(第253行)
当我运行下面的命令:
> > bodyAcceleration = (5 5 0);bodyAngularVelocity = [0, 0, 1];
> >(位置,方向,速度,加速度,angularVelocity] =轨迹(bodyAcceleration bodyAngularVelocity)
我期望位置的大小是100 * 3,但是我只有一个输出,这是与上面的警告吗?
谢谢很多!
0评论
答案(1)
赛斯Pathuri
2020年9月22日
如果你使用“SamplesPerFrame”属性与kinematictrajectory系统对象,您需要设置“AccelerationSource”和“AngularVelocitySource”“属性”。
轨迹= kinematicTrajectory (“SampleRate”,20岁,“SamplesPerFrame”,100,“AccelerationSource”,“属性”,“AngularVelocitySource”,“属性”);
这是链接到文档提及这种依赖性SamplesPerFrame房地产部分:
https://in.mathworks.com/help/nav/ref/kinematictrajectory-system-object.html mw_7550710d cdce - 4092 9 - ffc efd20e1ef0d8
既然你已经宣布AccelerationSource和AngularVelocitySource属性,你可以定义使用
加速度
和
AngularVelocity
属性,然后使用系统对象分别如下。
轨迹= kinematicTrajectory (“SampleRate”,20岁,“SamplesPerFrame”,100,…。
“AccelerationSource”,“属性”,“AngularVelocitySource”,“属性”,…
“加速”(5 5 0),“AngularVelocity”[0,0,1]);
(位置,方向,速度,加速度,angularVelocity] =轨迹();