Animating Basic Vehicle Models Using Simscape Multibody
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nuri Efe TATLI
el 5 de Mzo. de 2023
Respondida: Steve Miller
el 12 de Mzo. de 2023
Hello everyone I have very basic model of an underwater vehicle with 1 arm which I drew with Solid Works.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314920/image.jpeg)
I have downloaded the multibody link for Solidworks and I can export the model with no issues.
When I import the model in the Matlab I get the following Simscape model.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1314925/image.jpeg)
Now what I want to do is to control this model manually. When I start the simulation the model starts making a pre-determined movement in the Mechanics Explorer.
Also worth mentioning here, the main body is a sixDOF joint because it is not fixed since I want whole model to be able to move in the space freely.
How can I manually give movement to the model and If I'm not giving any motion value I want model to sit still.
0 comentarios
Respuesta aceptada
Steve Miller
el 12 de Mzo. de 2023
You can use Simulink dashboard blocks to control parameters within the simulation. This would allow you to specify position, speed, velocity, force, or torque to any of the degrees of freedom that can be controlled by a Simulink signal.
You would need to configure your joints to accept either motion input or force/torque input. That can be done in the "Actuation" portion of the joint blocks in your Simscape Multibody model.
If you choose to provide inputs to your model in this way, you should enable simulation pacing in your model. That way, the inputs you provide manually will be synchronized with what you are seeing in the animation.
--Steve
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulation and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!