Skip to content

[Bug] Index-based access to VSS instances, e.g. Vehicle.Cabin.Seat.Row(1).Pos(2). ..., not offered by generated model #159

@BjoernAtBosch

Description

@BjoernAtBosch

Some month ago we introduced the automated vehicle model generation from a json-based model specification referenced in the AppManifest (before we provided pre-generated models in GitHub repos for Python and C++, which was generated from the original vspec files provided by COVESA).

The switch to the JSON-based format was done, because we wanted to have a single file representation of the VSS signal catalog and also the digital.auto project is providing their models as JSON. This was done under the assumption that json-based VSS specification is semantically identical to vspec-based origin (except file separation, of course).

But unfortunately it isn't: In the vss.json all kind of instances, e.g. like instances of Seats, are expanded and the information that the different seats in Row1 Pos1 and Row2 Pos3 are instances of a single Seat definition is lost.

This leads to the problem that the functions that should offer index based access to instances are not generated as part of the model like they would if using model generation from vspec files. The index-based access functions enable iteration over, for example, the rows of seats and seats per row; means allows for something like this: Vehicle.Cabin.Seat.Row(row_idx).Pos(pos_idx).Position

Unfortunately, we also cannot easily move back to use vspec files for model generation as Digital.Auto is working on json base, only.

We are currently working hard on a solution for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🔖 Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions