|
汽车零部件采购、销售通信录 填写你的培训需求,我们帮你找 招募汽车专业培训老师
script中,用sensor触发motion 的问题
各位,论坛中类似的帖子我看过了,我仿照已有的例子写的script仍有问题, 请指教:
=================条件========================================
---有一个位移传感器sensor1(设定值为0),用来检测A与B 的距离;
---A沿直线向B运动; ---在A到B 的位置之前,旋转类型的motion1值为0;
---当A到达B时,sensor1被触发(大概需要0.46s),激发motion1转动,
---motion 的运行函数 step(time,0,0,0.0108,0)+step(time,0.0108,0,0.021,-22.6199d)+ step(time,0.021,0,0.0431,0)+step(time,0.0431,0,0.0625,22.6199d)
=================我所写的script如下 =============================
DEACTIVATE/MOTION, ID=1
SIMULATE/DYNAMIC, END=0.6, STEP=600
ACTIVATE/MOTION, ID=1
DEACTIVATE/SENSOR, ID=1
SIMULATE/DYNAMIC, END=0.6, STEPS=600
====================问题=====================================
1.sensor1已经设置terminate current step为continue,但是motion不被激发,即motion1在仿真中无反应
2.前后两句 SIMULATE/DYNAMIC, END=0.6, STEP=600,为什么运行时间只有一个0.6s ?
3.将sensor的terminate current step设置改为stop后确实会停止,证明sensor1确实在起作用。
请问何解?
60
daxinong@163.com
qq 417508095 |
|