-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/spat-map-plugin
- Loading branch information
Showing
50 changed files
with
2,758 additions
and
2 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
...n/etsi_its_denm_conversion/include/etsi_its_denm_conversion/convertAccidentSubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
AccidentSubCauseCode ::= INTEGER {unavailable(0), multiVehicleAccident(1), heavyAccident(2), accidentInvolvingLorry(3), accidentInvolvingBus(4), accidentInvolvingHazardousMaterials(5), accidentOnOppositeLane(6), unsecuredAccident(7), assistanceRequested(8)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_AccidentSubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/AccidentSubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/accident_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_AccidentSubCauseCode(const denm_AccidentSubCauseCode_t& in, denm_msgs::AccidentSubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_AccidentSubCauseCode(const denm_msgs::AccidentSubCauseCode& in, denm_AccidentSubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_AccidentSubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
...ion/include/etsi_its_denm_conversion/convertAdverseWeatherConditionAdhesionSubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
AdverseWeatherCondition-AdhesionSubCauseCode ::= INTEGER {unavailable(0), heavyFrostOnRoad(1), fuelOnRoad(2), mudOnRoad(3), snowOnRoad(4), iceOnRoad(5), blackIceOnRoad(6), oilOnRoad(7), looseChippings(8), instantBlackIce(9), roadsSalted(10)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_AdverseWeatherCondition-AdhesionSubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/AdverseWeatherConditionAdhesionSubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/adverse_weather_condition_adhesion_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_AdverseWeatherConditionAdhesionSubCauseCode(const denm_AdverseWeatherCondition_AdhesionSubCauseCode_t& in, denm_msgs::AdverseWeatherConditionAdhesionSubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_AdverseWeatherConditionAdhesionSubCauseCode(const denm_msgs::AdverseWeatherConditionAdhesionSubCauseCode& in, denm_AdverseWeatherCondition_AdhesionSubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_AdverseWeatherCondition_AdhesionSubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
...i_its_denm_conversion/convertAdverseWeatherConditionExtremeWeatherConditionSubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode ::= INTEGER {unavailable(0), strongWinds(1), damagingHail(2), hurricane(3), thunderstorm(4), tornado(5), blizzard(6)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_AdverseWeatherCondition-ExtremeWeatherConditionSubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/AdverseWeatherConditionExtremeWeatherConditionSubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/adverse_weather_condition_extreme_weather_condition_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_AdverseWeatherConditionExtremeWeatherConditionSubCauseCode(const denm_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_t& in, denm_msgs::AdverseWeatherConditionExtremeWeatherConditionSubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_AdverseWeatherConditionExtremeWeatherConditionSubCauseCode(const denm_msgs::AdverseWeatherConditionExtremeWeatherConditionSubCauseCode& in, denm_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_AdverseWeatherCondition_ExtremeWeatherConditionSubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
...nclude/etsi_its_denm_conversion/convertAdverseWeatherConditionPrecipitationSubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
AdverseWeatherCondition-PrecipitationSubCauseCode ::= INTEGER {unavailable(0), heavyRain(1), heavySnowfall(2), softHail(3)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_AdverseWeatherCondition-PrecipitationSubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/AdverseWeatherConditionPrecipitationSubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/adverse_weather_condition_precipitation_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_AdverseWeatherConditionPrecipitationSubCauseCode(const denm_AdverseWeatherCondition_PrecipitationSubCauseCode_t& in, denm_msgs::AdverseWeatherConditionPrecipitationSubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_AdverseWeatherConditionPrecipitationSubCauseCode(const denm_msgs::AdverseWeatherConditionPrecipitationSubCauseCode& in, denm_AdverseWeatherCondition_PrecipitationSubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_AdverseWeatherCondition_PrecipitationSubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
...n/include/etsi_its_denm_conversion/convertAdverseWeatherConditionVisibilitySubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
AdverseWeatherCondition-VisibilitySubCauseCode ::= INTEGER {unavailable(0), fog(1), smoke(2), heavySnowfall(3), heavyRain(4), heavyHail(5), lowSunGlare(6), sandstorms(7), swarmsOfInsects(8)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_AdverseWeatherCondition-VisibilitySubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/AdverseWeatherConditionVisibilitySubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/adverse_weather_condition_visibility_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_AdverseWeatherConditionVisibilitySubCauseCode(const denm_AdverseWeatherCondition_VisibilitySubCauseCode_t& in, denm_msgs::AdverseWeatherConditionVisibilitySubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_AdverseWeatherConditionVisibilitySubCauseCode(const denm_msgs::AdverseWeatherConditionVisibilitySubCauseCode& in, denm_AdverseWeatherCondition_VisibilitySubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_AdverseWeatherCondition_VisibilitySubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
...i_its_denm_conversion/include/etsi_its_denm_conversion/convertCollisionRiskSubCauseCode.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** ============================================================================ | ||
MIT License | ||
Copyright (c) 2023-2024 Institute for Automotive Engineering (ika), RWTH Aachen University | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
============================================================================= */ | ||
|
||
/** Auto-generated by https://github.com/ika-rwth-aachen/etsi_its_messages ----- | ||
python3 \ | ||
utils/codegen/codegen-py/asn1ToConversionHeader.py \ | ||
asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn \ | ||
asn1/raw/denm_en302637_3/cdd/ITS-Container.asn \ | ||
-t \ | ||
denm \ | ||
-o \ | ||
etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion | ||
----------------------------------------------------------------------------- */ | ||
|
||
/** ASN.1 Definition ----------------------------------------------------------- | ||
CollisionRiskSubCauseCode ::= INTEGER {unavailable(0), longitudinalCollisionRisk(1), crossingCollisionRisk(2), lateralCollisionRisk(3), vulnerableRoadUser(4)} (0..255) | ||
----------------------------------------------------------------------------- */ | ||
|
||
#pragma once | ||
|
||
#include <etsi_its_denm_coding/denm_CollisionRiskSubCauseCode.h> | ||
#include <etsi_its_denm_coding/INTEGER.h> | ||
#include <etsi_its_primitives_conversion/convertINTEGER.h> | ||
#ifdef ROS1 | ||
#include <etsi_its_denm_msgs/CollisionRiskSubCauseCode.h> | ||
namespace denm_msgs = etsi_its_denm_msgs; | ||
#else | ||
#include <etsi_its_denm_msgs/msg/collision_risk_sub_cause_code.hpp> | ||
namespace denm_msgs = etsi_its_denm_msgs::msg; | ||
#endif | ||
|
||
|
||
namespace etsi_its_denm_conversion { | ||
|
||
void toRos_CollisionRiskSubCauseCode(const denm_CollisionRiskSubCauseCode_t& in, denm_msgs::CollisionRiskSubCauseCode& out) { | ||
etsi_its_primitives_conversion::toRos_INTEGER(in, out.value); | ||
} | ||
|
||
void toStruct_CollisionRiskSubCauseCode(const denm_msgs::CollisionRiskSubCauseCode& in, denm_CollisionRiskSubCauseCode_t& out) { | ||
memset(&out, 0, sizeof(denm_CollisionRiskSubCauseCode_t)); | ||
etsi_its_primitives_conversion::toStruct_INTEGER(in.value, out); | ||
} | ||
|
||
} |
Oops, something went wrong.