-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,337 changed files
with
118,006 additions
and
0 deletions.
There are no files selected for viewing
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
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,69 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(etsi_its_ivim_ts_coding) | ||
|
||
find_package(ros_environment REQUIRED QUIET) | ||
set(ROS_VERSION $ENV{ROS_VERSION}) | ||
|
||
AUX_SOURCE_DIRECTORY(src SRC_FILES) | ||
|
||
# === ROS 2 (AMENT) ============================================================ | ||
if(${ROS_VERSION} EQUAL 2) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
add_library(${PROJECT_NAME} SHARED | ||
${SRC_FILES} | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include> | ||
) | ||
|
||
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET) | ||
|
||
install(DIRECTORY include/ | ||
DESTINATION include | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
EXPORT ${PROJECT_NAME}Targets | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION lib | ||
INCLUDES DESTINATION include | ||
) | ||
|
||
ament_package() | ||
|
||
# === ROS (CATKIN) ============================================================= | ||
elseif(${ROS_VERSION} EQUAL 1) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
LIBRARIES ${PROJECT_NAME} | ||
) | ||
|
||
include_directories( | ||
include | ||
${catkin_INCLUDE_DIRS} | ||
) | ||
|
||
add_library(${PROJECT_NAME} SHARED | ||
${SRC_FILES} | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
install(DIRECTORY include/${PROJECT_NAME}/ | ||
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} | ||
FILES_MATCHING PATTERN "*.h" | ||
) | ||
|
||
endif() |
86 changes: 86 additions & 0 deletions
86
etsi_its_coding/etsi_its_ivim_ts_coding/include/etsi_its_ivim_ts_coding/ANY.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,86 @@ | ||
/*- | ||
* Copyright (c) 2004-2017 Lev Walkin <[email protected]>. All rights reserved. | ||
* Redistribution and modifications are permitted subject to BSD license. | ||
*/ | ||
#ifndef ASN_TYPE_ANY_H | ||
#define ASN_TYPE_ANY_H | ||
|
||
#include <etsi_its_ivim_ts_coding/OCTET_STRING.h> /* Implemented via OCTET STRING type */ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct ANY { | ||
uint8_t *buf; /* BER-encoded ANY contents */ | ||
int size; /* Size of the above buffer */ | ||
|
||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ | ||
} ANY_t; | ||
|
||
extern asn_TYPE_descriptor_t asn_DEF_ANY; | ||
extern asn_TYPE_operation_t asn_OP_ANY; | ||
extern asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs; | ||
|
||
#define ANY_free OCTET_STRING_free | ||
|
||
#if !defined(ASN_DISABLE_PRINT_SUPPORT) | ||
#define ANY_print OCTET_STRING_print | ||
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ | ||
|
||
#define ANY_compare OCTET_STRING_compare | ||
#define ANY_copy OCTET_STRING_copy | ||
|
||
#define ANY_constraint asn_generic_no_constraint | ||
|
||
#if !defined(ASN_DISABLE_BER_SUPPORT) | ||
#define ANY_decode_ber OCTET_STRING_decode_ber | ||
#define ANY_encode_der OCTET_STRING_encode_der | ||
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_XER_SUPPORT) | ||
#define ANY_decode_xer OCTET_STRING_decode_xer_hex | ||
xer_type_encoder_f ANY_encode_xer; | ||
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_JER_SUPPORT) | ||
jer_type_decoder_f ANY_decode_jer; | ||
jer_type_encoder_f ANY_encode_jer; | ||
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_UPER_SUPPORT) | ||
per_type_decoder_f ANY_decode_uper; | ||
per_type_encoder_f ANY_encode_uper; | ||
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
per_type_decoder_f ANY_decode_aper; | ||
per_type_encoder_f ANY_encode_aper; | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
/****************************** | ||
* Handy conversion routines. * | ||
******************************/ | ||
|
||
/* Convert another ASN.1 type into the ANY. This implies DER encoding. */ | ||
int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr); | ||
ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr); | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr); | ||
ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr); | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
/* Convert the contents of the ANY type into the specified type. */ | ||
int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr); | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size)) | ||
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf( \ | ||
&asn_DEF_ANY, (buf), (size)) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* ASN_TYPE_ANY_H */ |
77 changes: 77 additions & 0 deletions
77
etsi_its_coding/etsi_its_ivim_ts_coding/include/etsi_its_ivim_ts_coding/BIT_STRING.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,77 @@ | ||
/*- | ||
* Copyright (c) 2003-2017 Lev Walkin <[email protected]>. All rights reserved. | ||
* Redistribution and modifications are permitted subject to BSD license. | ||
*/ | ||
#ifndef _BIT_STRING_H_ | ||
#define _BIT_STRING_H_ | ||
|
||
#include <etsi_its_ivim_ts_coding/OCTET_STRING.h> /* Some help from OCTET STRING */ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct BIT_STRING_s { | ||
uint8_t *buf; /* BIT STRING body */ | ||
size_t size; /* Size of the above buffer */ | ||
|
||
int bits_unused;/* Unused trailing bits in the last octet (0..7) */ | ||
|
||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */ | ||
} BIT_STRING_t; | ||
|
||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING; | ||
extern asn_TYPE_operation_t asn_OP_BIT_STRING; | ||
extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs; | ||
|
||
#define BIT_STRING_free OCTET_STRING_free | ||
|
||
#if !defined(ASN_DISABLE_PRINT_SUPPORT) | ||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */ | ||
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ | ||
|
||
asn_struct_compare_f BIT_STRING_compare; | ||
asn_struct_copy_f BIT_STRING_copy; | ||
|
||
asn_constr_check_f BIT_STRING_constraint; | ||
|
||
#if !defined(ASN_DISABLE_BER_SUPPORT) | ||
#define BIT_STRING_decode_ber OCTET_STRING_decode_ber | ||
#define BIT_STRING_encode_der OCTET_STRING_encode_der | ||
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_XER_SUPPORT) | ||
#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary | ||
xer_type_encoder_f BIT_STRING_encode_xer; | ||
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_JER_SUPPORT) | ||
jer_type_decoder_f BIT_STRING_decode_jer; | ||
jer_type_encoder_f BIT_STRING_encode_jer; | ||
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_OER_SUPPORT) | ||
oer_type_decoder_f BIT_STRING_decode_oer; | ||
oer_type_encoder_f BIT_STRING_encode_oer; | ||
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_UPER_SUPPORT) | ||
per_type_decoder_f BIT_STRING_decode_uper; | ||
per_type_encoder_f BIT_STRING_encode_uper; | ||
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
#define BIT_STRING_decode_aper OCTET_STRING_decode_aper | ||
#define BIT_STRING_encode_aper OCTET_STRING_encode_aper | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_RFILL_SUPPORT) | ||
asn_random_fill_f BIT_STRING_random_fill; | ||
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ | ||
|
||
const BIT_STRING_t *BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _BIT_STRING_H_ */ |
72 changes: 72 additions & 0 deletions
72
etsi_its_coding/etsi_its_ivim_ts_coding/include/etsi_its_ivim_ts_coding/BOOLEAN.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,72 @@ | ||
/*- | ||
* Copyright (c) 2003-2017 Lev Walkin <[email protected]>. All rights reserved. | ||
* Redistribution and modifications are permitted subject to BSD license. | ||
*/ | ||
#ifndef _BOOLEAN_H_ | ||
#define _BOOLEAN_H_ | ||
|
||
#include <etsi_its_ivim_ts_coding/asn_application.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* | ||
* The underlying integer may contain various values, but everything | ||
* non-zero is capped to 0xff by the DER encoder. The BER decoder may | ||
* yield non-zero values different from 1, beware. | ||
*/ | ||
typedef unsigned BOOLEAN_t; | ||
|
||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN; | ||
extern asn_TYPE_operation_t asn_OP_BOOLEAN; | ||
|
||
asn_struct_free_f BOOLEAN_free; | ||
|
||
#if !defined(ASN_DISABLE_PRINT_SUPPORT) | ||
asn_struct_print_f BOOLEAN_print; | ||
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ | ||
|
||
asn_struct_compare_f BOOLEAN_compare; | ||
asn_struct_copy_f BOOLEAN_copy; | ||
|
||
#define BOOLEAN_constraint asn_generic_no_constraint | ||
|
||
#if !defined(ASN_DISABLE_BER_SUPPORT) | ||
ber_type_decoder_f BOOLEAN_decode_ber; | ||
der_type_encoder_f BOOLEAN_encode_der; | ||
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_XER_SUPPORT) | ||
xer_type_decoder_f BOOLEAN_decode_xer; | ||
xer_type_encoder_f BOOLEAN_encode_xer; | ||
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_JER_SUPPORT) | ||
jer_type_decoder_f BOOLEAN_decode_jer; | ||
jer_type_encoder_f BOOLEAN_encode_jer; | ||
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_OER_SUPPORT) | ||
oer_type_decoder_f BOOLEAN_decode_oer; | ||
oer_type_encoder_f BOOLEAN_encode_oer; | ||
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_UPER_SUPPORT) | ||
per_type_decoder_f BOOLEAN_decode_uper; | ||
per_type_encoder_f BOOLEAN_encode_uper; | ||
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
per_type_decoder_f BOOLEAN_decode_aper; | ||
per_type_encoder_f BOOLEAN_encode_aper; | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_RFILL_SUPPORT) | ||
asn_random_fill_f BOOLEAN_random_fill; | ||
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _BOOLEAN_H_ */ |
67 changes: 67 additions & 0 deletions
67
etsi_its_coding/etsi_its_ivim_ts_coding/include/etsi_its_ivim_ts_coding/ENUMERATED.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,67 @@ | ||
/*- | ||
* Copyright (c) 2003-2017 Lev Walkin <[email protected]>. All rights reserved. | ||
* Redistribution and modifications are permitted subject to BSD license. | ||
*/ | ||
#ifndef _ENUMERATED_H_ | ||
#define _ENUMERATED_H_ | ||
|
||
#include <etsi_its_ivim_ts_coding/INTEGER.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */ | ||
|
||
extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED; | ||
extern asn_TYPE_operation_t asn_OP_ENUMERATED; | ||
|
||
#define ENUMERATED_free ASN__PRIMITIVE_TYPE_free | ||
|
||
#if !defined(ASN_DISABLE_PRINT_SUPPORT) | ||
#define ENUMERATED_print INTEGER_print | ||
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */ | ||
|
||
#define ENUMERATED_compare INTEGER_compare | ||
#define ENUMERATED_copy INTEGER_copy | ||
|
||
#define ENUMERATED_constraint asn_generic_no_constraint | ||
|
||
#if !defined(ASN_DISABLE_BER_SUPPORT) | ||
#define ENUMERATED_decode_ber ber_decode_primitive | ||
#define ENUMERATED_encode_der INTEGER_encode_der | ||
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_XER_SUPPORT) | ||
#define ENUMERATED_decode_xer INTEGER_decode_xer | ||
#define ENUMERATED_encode_xer INTEGER_encode_xer | ||
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_JER_SUPPORT) | ||
jer_type_decoder_f ENUMERATED_decode_jer; | ||
#define ENUMERATED_encode_jer INTEGER_encode_jer | ||
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_OER_SUPPORT) | ||
oer_type_decoder_f ENUMERATED_decode_oer; | ||
oer_type_encoder_f ENUMERATED_encode_oer; | ||
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_UPER_SUPPORT) | ||
per_type_decoder_f ENUMERATED_decode_uper; | ||
per_type_encoder_f ENUMERATED_encode_uper; | ||
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */ | ||
#if !defined(ASN_DISABLE_APER_SUPPORT) | ||
per_type_decoder_f ENUMERATED_decode_aper; | ||
per_type_encoder_f ENUMERATED_encode_aper; | ||
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */ | ||
|
||
#if !defined(ASN_DISABLE_RFILL_SUPPORT) | ||
#define ENUMERATED_random_fill INTEGER_random_fill | ||
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _ENUMERATED_H_ */ |
Oops, something went wrong.