Simulink terrain query for driving?
이전 댓글 표시
Does Matlab or Simulink have a way to represent a race track or driving surface or road with left- and right-side edges?
채택된 답변
추가 답변 (1개)
Veer Alakshendra
2018년 3월 22일
0 개 추천
Here are few approaches which can help you represent a race track in MATLAB/ Simulink:
- Using image analysis- If you have an image of the track, you can extract the coordinates and plot y versus x in MATLAB. Please follow the link below to know more: https://www.mathworks.com/matlabcentral/answers/157029-getting-coordinates-from-a-picture
- Using equations- As the race track is a nonlinear path, it consists of multiple functions for different intervals of x. In that case, you can plot y versus x for different intervals of x: https://www.mathworks.com/matlabcentral/answers/164257-plot-in-different-ranges-for-x
- Using solid body- If you are planning to model a track a in Simulink, you can use a solid body block from Simscape Multibody and create a desired track. Furthermore, if you want to simulate a vehicle on the track, make contact between the tires and the surface of the track. Please follow this link to learn more about vehicle modeling using Simscape Multibody: https://www.mathworks.com/videos/matlab-and-simulink-racing-lounge-vehicle-modeling-part-4-simscape-multibody-1508365817599.html. Alternatively, if you have a complex track then either you can import a CAD file in Simscape Multibody ( https://www.mathworks.com/help/physmod/sm/cad-import.html )or use general extrusion option in the solid block ( https://www.mathworks.com/help/physmod/sm/ug/modeling-extrusions-and-revolutions.html )
댓글 수: 2
Sebastian Castro
2018년 3월 22일
There is also the new Driving Scenario Designer in Autonomous Driving System Toolbox. (In R2017a/R2017b, you can still do this with code).
While this is designed to put objects on a scene and simulate vision detections, it might still be helpful as a built-in visualization of a road profile.
- Sebastian
Sheng
2019년 1월 12일
Do you know how to use Driving Scenario Designer in simulink? I know It's an APP in matlab and successfully follow the tutorial demo, but I want to use it in Simulink and don't find a module named it in Simulink. My goal is to pass its generated data to ROS and My version is R2018b. Could you give me some suggestions? Thanks in advance.
카테고리
도움말 센터 및 File Exchange에서 Bodies에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!