Simulink 3D capabilities, move objects during simulation?

5 ビュー (過去 30 日間)
Brian Munguia
Brian Munguia 2012 年 7 月 23 日
I am working on a project regarding distributed engine control and have looked into SimMechanics as a modeling tool, but it became apparent that it would be ideal to manipulate objects during simulation. Does Simulink 3D have such a capability? For example, if I have a temperature sensor in a jet engine and want to grab it and move it to a different location in the engine during simulation, is this possible? Also, can SimMechanics elements be incorporated into Simulink 3D or are they separate entities? Thank you.
  3 件のコメント
Brian Munguia
Brian Munguia 2012 年 7 月 30 日
Thank you Sumit. I have been experimenting with sensors but still can't get them to affect my simulation (see my question "Grab object in Simulink 3D to adjust conditions" for more details). Any help would be appreciated.
Sumit Tandon
Sumit Tandon 2012 年 7 月 30 日
Please see my answer for that question.

サインインしてコメントする。

採用された回答

Jan Danek
Jan Danek 2012 年 7 月 31 日
Hi Brian,
The initial positions of objects in virtual scene need to be aligned with that in the simulation model (and of course, with the desired position in the scene).
You can do this in Simulink by adding a Constant signal to the signal you feed the VR Sink inputs.
In Virtual scene, you can wrap an object with another offset Transform. Example:
DEF Ball_Offset Transform {
translation 0 10 0
children [
DEF Ball Transform {
translation 0 20 0
children Shape {
geometry Sphere {
radius 1
}
}
}
]
}
In order to align objects with VRML sensors attached, you need to attach the sensor to the correct geometry (put sensor as "brother of a geometry"). Example in the vrmaglev demo VRML file maglev.wrl:
====
Transform { translation 0 4.25 0 children [ DEF Grab_Sensor PlaneSensor { enabled TRUE autoOffset TRUE maxPosition 0 1 minPosition 0 0 offset 0 0 0 }
DEF Ball Transform {
translation 0 0 0
children Shape {
geometry Sphere {
radius 0.25
}
}
}
]
}
I hope this helps, if you still have problems, please send me your model + VRML file, I will align them for you...
All the best,
Jan

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by