Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read camera and radar in Simulink #4

Open
MathiasRLuz opened this issue Aug 30, 2024 · 1 comment
Open

Can't read camera and radar in Simulink #4

MathiasRLuz opened this issue Aug 30, 2024 · 1 comment

Comments

@MathiasRLuz
Copy link

Hi, I am currently coupling Simulink to BeamNG Tech using the following configuration: Simulink (S-function) ↔ BeamNG.tech (co-simulation tool). I have added a camera and radar to my vehicle following the documentation (https://documentation.beamng.com/beamng_tech/adassensorconfigurationeditor/attached_sensor_window/).
However, when I go to the Co-Simulation Signal Editor, and open my vehicle's signals (by clicking on the "Open the signals window for this vehicle" button), the camera and radar do not appear for me to select the signals to send to Simulink. I've added some Non-Positional Sensors and they appear in the list of available signals, but the Positional Sensors don't.

I've attached some images to show my settings.

image

image

@AbdelrahmanElsaidElsawy
Copy link
Contributor

AbdelrahmanElsaidElsawy commented Sep 2, 2024

Hi @MathiasRLuz,

Thank you for your interest in BeamNG.tech.

The tight coupling connection through FMI or S-function does not currently support sensors like cameras and radar. This is why these sensors are not appearing in your list of available signals in the Co-Simulation Signal Editor.

However, you can still access and read data from these sensors using the ADAS Sensor Configuration Editor Tool via BeamNGpy (the Python API for BeamNG.tech). To do this, you'll need to save the sensor configuration in the ADAS Sensor Configuration Editor and then load it into the vehicle_sensor_configuration.py example for reading the data.
You can find the example here: vehicle_sensor_configuration.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants