Questions regarding osi3::SensorViewConfiguration #779
-
Hello everyone, Question 1.) So the simulator sends a SensorViewConfiguration message to the sensor model and the sensor model sends the same message back to simulator. The purpose is that the simulator does not know anything about the sensor models and need to ask for some info, so the sensorview message can be created accordingly. But which signals are supposed to be filled by the sender and which by the receiver? Question 2.) Or is it supposed to work like SensorView: Does this also apply for SensorViewConfiguration? So both ways are allowed? If so, i would propose to add a similar text to the documentation. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Answering the questions back to front: Question 2There is supposed to be a one to one correspondence between SensorViewConfiguration and SensorView: For each SensorView that a model wants to receive, it provides a SensorViewConfiguration request, which the simulator then uses to configure the corresponding SensorView. It provides a response SensorViewConfiguration to indicate what it will send, which can also be embedded into the SensorView. So if a model wants to receive 3 SensorViews it will provide 3 SensorViewConfigurations, if it just wants one, it will provide one. Question 1Both model and simulator will fill all fields (that are relevant, i.e. if no RadarSensorView is wanted/needed, no RadarSensorViewConfiguration sub-message is filled, etc.), just from a different perspective:
If the response by the simulator is not sufficiently capable in terms of what the model requires it will cause an error or abort the simulation, or whatever is specified for the packaging layer of the model/simulator. A more detailed discussion of this one-round-trip negotiation process can be seen in the OSMP specification that shows how this is supposed to be handled for FMUs as the packaging layer. Hope this helps somewhat. |
Beta Was this translation helpful? Give feedback.
Answering the questions back to front:
Question 2
There is supposed to be a one to one correspondence between SensorViewConfiguration and SensorView: For each SensorView that a model wants to receive, it provides a SensorViewConfiguration request, which the simulator then uses to configure the corresponding SensorView. It provides a response SensorViewConfiguration to indicate what it will send, which can also be embedded into the SensorView.
So if a model wants to receive 3 SensorViews it will provide 3 SensorViewConfigurations, if it just wants one, it will provide one.
Question 1
Both model and simulator will fill all fields (that are relevant, i.e. if no RadarSensorView is wanted/need…