Replies: 1 comment 2 replies
-
Hi @Shaaban52, the StationID field in CAM headers has no link to the vehicle type, but the StationType in the basic CAM container has. At the moment, it is always set to "passenger car" here: artery/src/artery/application/CaService.cc Line 222 in 4bc468e It should be not too difficult to change this behaviour because the VehicleDataProvider has already a getStationType getter. You just need to set the CAM field depending on this function's return value.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Thank you in advance for your support.
I have described a traffic scenario in SUMO and defined some related information for vehicles, such as the Vehicle type. Then I used Artery for the V2X simulation. I successfully obtained the information from the CAM messages (e.g., message ID, Station Id, Station Type, etc.).
However, I noticed that the StationID (from CAM data) does not match the vehicle type defined in SUMO. Now, I am trying to extract the vehicle type defined in SUMO from the Artery simulation, but it seems to be a challenge for me!!!
Are there any ways in Artery that I can get vehicle infromation (defined in SUMO), specifically the vehicle type?
FYI, I am using the latest Artery version.
Many thanks and regards
Beta Was this translation helpful? Give feedback.
All reactions