Of course you can even look into the header files road.h and roadbuilder.h in the CarMaker installation directory. Depending on what exactly you need for further processing, you would have to split the string, convert the data type, and may convert it to a range of 0 to 255.įor further information, please have a look in the CarMaker documentation under Help > Additional Documents > IPGRoad Infofile Description and IPGRoad API Reference. Output of RoadObjectGetMaterial() is the RGB code as a string and looks for yellow like this: 1.0000,1.0000,0.0000Īccording to the definition in the Scenario Editor a value 1.0 means 255. This code snippet can also be used to get the name of the material, if this was specified instead of a color The DetectedLine.id has to be the global ID of the road marking (Scenario Editor: value in parentheses of each element in the Object List) The headers road.h and roadbuilder.h must be included in the User.c file RoadObjectGetMaterial(Env.Road, DetectedLine.id, 0, &material) Arrange following materials and tools before start of the road markings works. Following this method statement will also ensure that all quality assurance/ control activities are happening in a systematic manner. Memset(&material, 0, sizeof(tRoadMaterial)) The method will ensure the quality of work in accordance with the contract requirements and applicable local standards. Here is a code snippet, which can be included in the User.c file: Since this is not suitable for huge road networks and digitized road formats like OpenDRIVE, you can read the RGB value of each road marking via the IPGRoad API in c-code. yellow lines with User ID = 1, if this was configured during the scenario creation. Like this it would be much easier to identify specific road markings e.g. This ColorCode rather represents a user defined ID which can be specified for each road marking in the Scenario Editor. ColorCode does indeed not represent the color of the road marking. The 1971 edition of the MUTCD mandated yellow as the standard color of all center lines on all roads and highways in all contexts, and banned the use of white.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |