[Prescan] Prescan与Simulink联合
文章目录
- 基本结构
- Test Automation
- Model Data API
- Objects
- Sun
- Weather
- Fog
- Precipitation
- Sensor Models
- Utility functions
- prescan.experiment
笔记翻译自prescan帮助文档,侵删
基本结构
Block | Description |
---|---|
Self input port & demux | Containing data of the object itself |
Trajectory blocks | Containing all trajectories. If multiple trajectories are coupled to one actor,a switch enables the user to switch between them. If the user has generated a path definition file the object elapsed track velocity can be manipulated. Note: An actor (linked to a trajectory) stops at the end of the trajectory. |
Control block | Containing control logics. This block is only present in case user specified control is selected in the GUI. |
Dynamics block | Containing the vehicle dynamics. This block can contain simple dynamics or user specified dynamics. In case no dynamics is selected an empty dynamics block is inserted, in order to enable the user to insert manually dynamics. The empty dynamics block contains a mux block to the state port, in order to help the user supplying the correct signals to the state port. |
State output port block | Sending the state signals to the state port block at experiment level. Be aware that the state port contains two modes: dynamics & positioning. Always check whether the desired mode is selected. |
Game Controller input port & HID Controller demux block | Containing signals retrieved from Game Controller (Logitech MOMO, G27,G29 or Custom) control. |
Sensors input port & demux block | Containing signals retrieved from the sensors. |
Visualization Actuator mux &output port blocks | Sending data to the visualization port blocks. |
Prescan使用非虚拟总线的形式进行与Simulink的数据交互
碰撞检测选项:
Component | 碰撞模型 |
---|---|
Vehicles | Actual geometry |
Buildings | Actual geometry |
Traffic Signs | Actual geometry |
Information Boards | Only poles |
Matrix Sign / Information Plate | Actual geometry (Detectability the same as the parent overhang). |
Nature Elements | Rough shape |
Road segments | None |
Underlays | None |
User-Defined Models | Actual geometry |
Generated infrastructure (Guardrail,line placement, etc) | No |
具体设置见General Settings对话框。
Prescan提供了三种形式的自动化测试方式:
- Test Automation : 参数直接进行修改,不对GUI做任何修改
- Test Automation with rebuild:先rebuild试验,可以结合命令行界面实现。
- Data Model API :允许用户使用脚本自行修改。
Test Automation
数值类这里不说了,只需要注意角度的单位是deg,下表给出了drift type、noise type、detection type三种功能对应的参数变化表格:
Sensor | Variable | Conversion |
---|---|---|
TIS | Drift Type | 0: None 1: Gaussian 2: Unidirectional |
TIS | Noise Type | 0: Additive 1: Multiplicative |
AIR | Detection Type | 0: BoundingBox 1: Bounding Box Center 2: CenterOfGravity |
Model Data API
worldmodel存储了试验中的大部分信息,包括对objects、objects之间的关系、照明信息、天气参数等。
大部分worldmodel参数都可以读取、修改。
Filed name | Short description |
---|---|
experimentName [readonly] | The name of the experiment. Must not be modified. |
experimentDescription | The description of the experiment. This field might be omitted in the worldmodel if no description was added during experiment creation |
sensorRandomSeed | The random seed value which is used to initialize random generator of the experiment. Using the same random seed guarantees repeatability of the experiment. |
experimentOrigin | The origin of the experiment specified as a longitude, latitude and altitude. |
simulationConfiguration [read-only] | Specifies the frequency the simulation is running. |
object | An array with all configurable objects in the experiment |
material | An array of materials available in the experiment. Some objects refer to one of the materials defined in this array. |
connectionTable | Specifies the connection between road lane segments |
userObjectType | An array with objects grouped by their type. The information from this array is used by certain sensors, e.g. Image Segmentation Sensor |
articulatedActor | An array with relationships (e.g. tuck/trailer) between objects in the experiment. |
sun | Configuration of the sun |
sky | Configuration of the sky |
terrain | Configuration of the terrain. Few types of terrain can be used, e.g. grass, desert,etc. |
weather | Configuration of the weather, e.g. fog and precipitation. This field might be empty if no weather was specified in the PreScan GUI |
physicsEnvironment | Settings of the physics environment. One can change the air density, gravitation,air temperature, etc. |
Objects
每个目标的ID都是确定且唯一的。使用Model Data API之前需要确认目标是存在的。(Matlab isfield命令)
field name | description |
---|---|
ID | unique identification number of the object |
name | Unique name for general purposes, e.g. “StraightRoad_1”. |
objectTypeName | The object type, e.g. “StraightRoad”, the object is a straight road. |
modelFile | The model filename (e.g. car.osg) or the node name within the parent model, e.g. “BrakeLightR” |
modelLocation | An object may have a 3D Model associated with it.The location of the file is determined by an enumeration value: 1. mlUnknown: Nothing is known about existence or location 2.mlNone: There is no model 3.mlContainer: There is no model but there may be children 4. mlModelDepo: The model is located in the modeldepo 5. mlExperimentDir: The model is located in the experiment folder (Models subfolder) 6.mlParentModel: The model is embedded in the parent’s model |
objectTypeID | Object type. Consult the prescan.types.ObjectTypeID enumeration for available values |
numericalID | Unique identification number on the compilation sheet in Matlab/Simulink. |
description | A description of the object sensorDetectable Specifies if the object is detectable by any sensor sensorDetectionColor Some sensors use the color to uniquely identify the object. If the field doesn’t exists for a given object a default color of the object type will be used |
collisionDetectable | Specifies if the object participates in collision detection |
pose | Contains the position and orientation of the object |
subType | Possible subtypes are: 1. typeBasic: No extra data 2.typeUnderlay 3.typeVehicle 4.typeRoad 5.typeDirtSpot 6.typeAbstractObject 7.typeTrafficSignPole 8.typeTrafficSignPlate 9.typeTrailer 10.typeHuman 11.typeTrafficSignElement 12.typeInformationBoard 13.typeRoadMarkin If an object has no further information it is of typeBasic. Examples of typeBasic objects are: Non-car vehicles (and their children), Buildings, Nature elements, Highway overhang children, Light element pivots and Sensor holders. |
child | An array of children objects. An object can have multiple children, e.g. a car can have multiple wheels. |
light | List of light sources. Light sources are treated separately. A single object can have multiple light sources, e.g. a car can have multiple lights. |
staticModel | When a scene contains many objects of the same type, that are never changed individually (e.g. trees), a graphics system can optimize memory. The following flag specifies if an object is static: 1: This object’s 3D model is equal to all other models of this type 0: This object’s 3D model may differ from other models of this type. |
materialID | A unique identification number of the material of this object. A list of materials can be found in the worldmodel.material array recolorMap The filename of a recolor map, a texture that specifies (in its alpha component) which parts of a 3D Model are recolored. The filename is searched for in the /ModelDepo/Visual folder |
animation | Some actors can be animated. The animation index and update time are passed through. |
Sun
field name | description |
---|---|
powerRatio | Unitless quotient of set power and the power of a default sun (in case of explicit definition: 688 W/m2). |
Weather
weather包括了两个部分:Fog和Precipitation
Fog
field name | description |
---|---|
Field name | Description |
enabled | Specifies if the fog calculation is enabled |
name | The name of the selected fog configuration |
color | The color of the fog |
start | The fog starts at this distance from the observer [m] |
visibility | The fog ends at this distance from the observer [m] |
mode | Can be “exp”, “exp2” or “linear” |
density | The density of the fog is calculated from the visibility: density = –ln(0.005)/(1.6*visibility). |
Precipitation
这里的降水表示的是降雨或降雪
field name | description |
---|---|
subType | typeNone 1. typeRain Rain 2. typeSnow Snow |
name | The name of the favorite, if selected in the editor, for example “Default Moderate_Rain” |
animation | Specifies if the particles should be animated or not |
color | The color of the precipitation particles |
density | Number of particles per 1000 m3 |
direction | The movement direction of the particles |
hardness | A measure for the opacity of the particles [0-1], where 0 means fully transparent and 1 means fully opaque |
particleSize | The size of the particles [m] |
shape | The filename of the image file used for the particle, for example “Snow.tga” |
shutterTime | The shuttertime influences the length of the rain streaks [s] |
oscillationAmplitude | The amplitude of the snowflake dynamics, default 0.06 [m] |
oscillationPeriod | The period of the snowflake dynamics, default 1.5 |
Sensor Models
field name | description |
---|---|
cammodel [deprecated] | Used for the RemoteViewerFederate and VisViewer |
viewerproxymodel | Used by the VisViewer |
airsensormodel | Used by the AIR sensor |
almsmodel | Used by the Analytical Lane Marker sensor |
brsmodel | Used by the Bound Rectangle sensor |
cameramodel | Used by the Camera, Fisheye, Depth and Image Segmentation sensors |
collisiondetectionmodel | Used by the Collision detection sensor |
communicationmodel | Used by the IR Beacon, IR OBU, RF Beacon, RF OBU |
dynamicsmodel | Used for the vehicle dynamics generation |
lanemarkermodel | Used by the Lane Marker sensor |
lidarmodel | Used by the Lidar sensor |
ocsmodel | Used by the Object Camera sensor |
radarmodel | Used by the Radar sensor |
tismodel | Used by the Technology Independent sensor |
radarmodel | Used by the Radar sensor |
tismodel | Used by the Technology Independent sensor |
ultrasonicmodel | Used by the Ultrasonic sensor |
Utility functions
prescan.experiment
filename = prescan.experiment.getDefaultFilename()
[value, result] = prescan.experiment.getFieldValue(inStruct, name)
simOut = prescan.experiment.runWithDataModels(models, varargin)
[inStruct, result] = prescan.experiment.setFieldValue(inStruct, name, value)
[isValid, resultMsg] = prescan.experiment.validate(models, path)
- prescan.worldmodel
- prescan.sensors
《太多了,看官方文档吧》
[Prescan] Prescan与Simulink联合相关推荐
- Trucksim+Prescan+Simulink联合仿真笔记(Carsim同理)
目录 一.版本说明 二.软件功能 三.软件下载安装 1.TruckSim 2019.0 2.MATLAB R2017b 3.Prescan 2021.1.0 四.建立联合仿真 (一)Simulink创 ...
- 自动驾驶Prescan 和simulink 联合仿真LDW模型,车道偏离预警
自动驾驶Prescan 和simulink 联合仿真LDW模型,车道偏离预警 ID:1829648668708403智驾小崔
- 自动驾驶CarSim和Simulink联合仿真的完美攻略!
作者 | 车路慢慢 仿真秀科普作者 导读:大家好,我叫李慢慢,仿真秀专栏作者,某汽车主机厂汽车仿真工程师,正在筹备转岗.自2020年起,我就在仿真秀App分享ANSA教程和攻略,并学习自动驾驶仿真. ...
- simulink中文_CarSimamp;Simulink 联合仿真案例
关于carsim和simulink联合仿真的实例,网上有很多资料,但是总体来说还是比较零散. 所以写一篇文章来讲这些资料整合起来,并且提供一个案例的模型和code. 首先,我自己做案例的时候用的软件版 ...
- 智能车辆路径跟踪:carsim和simulink联合仿真,基于车速的变权重多点预瞄驾驶员模型个例
@基于轨迹预测的多点预瞄驾驶员模型,适合初学者学习,carsim&simulink联合仿真,模型搭建. 一.预瞄-控制基本原理 二.casim模型的搭建 三.联合仿真结果分析 前言 本文主要是 ...
- carsim与simulink联合仿真-ABS(制动防抱死系统) 入门——详细步骤
选用同一车型的两辆汽车,同样的仿真工况,但其中一辆加入在Simulink中建立的ABS控制器,相当于一辆汽车带有ABS,而另一辆汽车没有带ABS,方便对比. 软件:carsim2020.matlab2 ...
- 线控转向系统的carsim与simulink联合仿真
线控转向系统的carsim与simulink联合仿真 ID:72200657445235638泰勒展开式
- 线控转向 四轮转向控制 4WIS CarSim与Simulink联合
线控转向 四轮转向控制 4WIS CarSim与Simulink联合 ✔控制器为离散LQR控制器 带有完整详细的控制器.二自由度稳定性控制目标推导说明 MATLAB版本为2018b CarSim版本为 ...
- cruise软件模型,混动仿真模型,cruise与simulink联合仿真模型,Cruise混动仿真模型
cruise软件模型,混动仿真模型,cruise与simulink联合仿真模型,Cruise混动仿真模型,混联混动汽车动力性经济性仿真 ID:3150669047203895
- Ansys(Maxwell、Simplorer)与Simulink联合仿真入门
Ansys(Maxwell.Simplorer)与Simulink联合仿真入门 预备知识 simplorer在现在的版本中名字是 Twin Builder. Ansys Electronic desk ...
最新文章
- Cocos2d-x3.1颗粒使用
- 解决:[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effective set
- 优酷直播节目“冠军体育课”第二季收官 共吸引近百万用户观看互动
- python中魔法函数_02 python中魔法函数
- 爸爸和儿子的故事带你理解java线程
- Javascript 事件入门
- IE6 position:fixed bug (固定窗口方法)
- java timer.schedule如何控制执行次数_Java 面试——JIT详解
- 《现代操作系统》知识点整理
- 单位个人计算机 数据备份,个人所得税软件数据备份,您必须知道的5件事
- 20.数据集成、数据整合、数据融合
- Python学习笔记:PYQT5 文字及绘图旋转
- Git生成SSH Key
- 间断点怎么求?——6个例子来详细解析较难的间断点的求法
- onlyoffice协同编辑(多人共享编辑)、在线文档编辑,支持word、excel
- 应用软件之xx文库破解器
- 不知道用什么软件可以测试电路,自制电器维修检测工具
- 2020 必须收藏的vscode主题【清爽的前端配置 vue】
- python图片相似度计算_python Opencv计算图像相似度过程解析
- 压缩感知的常见稀疏基名称及离散傅里叶变换基
热门文章
- VOW Desktop(CAD看图软件)v1.0.1中文版
- selenium自动化看网课
- 虚拟与增强现实——输入与输出设备
- 2022最新短视频去水印解析API接口支持各大小程序平台分享
- 单片机编程软件很简单(11),Keil单片机编程软件在线调试
- 新版FMEA软件:特殊特性自动分类 免费申请试用(FMEAHunter)
- 全新卡盟系统PHP版 集成易支付_2020易支付系统/聚合支付系统源码/免签约聚合支付系统/集成易支付相互对接...
- 使用链接时间代码生成
- 计算机组成原理三个相关,计算机组成原理试题3
- 共享单车信号服务器,【严肃科普】【严肃科普】共享单车靠什么黑科技远程定位开锁?...