Simscape Vehicle simulation for predefined time, X,Y and orientation values

조회 수: 9 (최근 30일)
mgf_04
mgf_04 2023년 6월 13일
댓글: mgf_04 2023년 6월 17일
Hello everyone,
I have a table containing info as follows:
dateTime X Y theta
_______________________ ______ ______ ______
03.05.2023 00:00:00.000 33.441 68.328 316.77
03.05.2023 00:00:00.100 33.441 68.328 316.77
03.05.2023 00:00:00.200 33.441 68.328 316.77
03.05.2023 00:00:00.300 33.441 68.328 316.77
03.05.2023 00:00:00.400 33.441 68.328 316.77
03.05.2023 00:00:00.500 33.441 68.328 316.77
03.05.2023 00:00:00.600 33.441 68.328 316.77
03.05.2023 00:00:00.700 33.441 68.328 316.77
And I have a stl CAD for my vehicle.
is there is a way to make a simscape simulation using my time while putting the X,Y and orientation as inputs for the motion of the vehicle? Also can I make the simulation run faster than the actual time I am using?
Thank you.

답변 (1개)

Manas
Manas 2023년 6월 13일
Hii,
You can create a Simulink/Simscape simulation by importing the cad model using Simulink multibody. Use your input data to define the position and orientation of the vehicle at each time step of the simulation. You can do this by using a MATLAB Function block in Simulink to read your input data and output the position and orientation of the vehicle as a function of time. . You can use the Simscape Multibody animation tools or MATLAB plotting functions to visualize the motion of your vehicle over time.
For More info you can refer to the following documentation:
  댓글 수: 1
mgf_04
mgf_04 2023년 6월 17일
Hello @Manas,
Thank you for reply. Sorry I didn't clarify that I already have some experience with the Simscape Multibody, that's why I mentioned .stl because I know it is acceptable by this libaray.
I am more interested about the part where I use the given time instead of simulation time. So if you can elaborate more on the MATLAB Function code I would be grateful.
N.B. I already use readTable function to read the file. And I have the each type of data stored in 4 different variables.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multibody Modeling에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by