diff --git a/src/DSDL_Types.h.impl b/src/DSDL_Types.h.impl index 319e3f87..b7c539b9 100644 --- a/src/DSDL_Types.h.impl +++ b/src/DSDL_Types.h.impl @@ -1,241 +1,241 @@ -#include "types/uavcan/node/ID_1_0.hpp" -#include "types/uavcan/node/ExecuteCommand_1_1.hpp" -#include "types/uavcan/node/IOStatistics_0_1.hpp" -#include "types/uavcan/node/Version_1_0.hpp" -#include "types/uavcan/node/Health_1_0.hpp" -#include "types/uavcan/node/GetInfo_1_0.hpp" -#include "types/uavcan/node/ExecuteCommand_1_0.hpp" -#include "types/uavcan/node/GetTransportStatistics_0_1.hpp" -#include "types/uavcan/node/Mode_1_0.hpp" -#include "types/uavcan/node/Heartbeat_1_0.hpp" -#include "types/uavcan/node/port/ID_1_0.hpp" -#include "types/uavcan/node/port/List_1_0.hpp" -#include "types/uavcan/node/port/ServiceID_1_0.hpp" -#include "types/uavcan/node/port/List_0_1.hpp" -#include "types/uavcan/node/port/SubjectIDList_0_1.hpp" -#include "types/uavcan/node/port/SubjectIDList_1_0.hpp" -#include "types/uavcan/node/port/SubjectID_1_0.hpp" -#include "types/uavcan/node/port/ServiceIDList_1_0.hpp" -#include "types/uavcan/node/port/ServiceIDList_0_1.hpp" -#include "types/uavcan/time/TimeSystem_0_1.hpp" -#include "types/uavcan/time/TAIInfo_0_1.hpp" -#include "types/uavcan/time/Synchronization_1_0.hpp" -#include "types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp" -#include "types/uavcan/time/SynchronizedTimestamp_1_0.hpp" +#include "types/reg/udral/physics/acoustics/Note_0_1.hpp" +#include "types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp" +#include "types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp" +#include "types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp" +#include "types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp" +#include "types/reg/udral/physics/electricity/PowerTs_0_1.hpp" +#include "types/reg/udral/physics/electricity/Power_0_1.hpp" +#include "types/reg/udral/physics/electricity/SourceTs_0_1.hpp" +#include "types/reg/udral/physics/electricity/Source_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp" +#include "types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp" +#include "types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp" +#include "types/reg/udral/physics/optics/HighColor_0_1.hpp" +#include "types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp" +#include "types/reg/udral/physics/time/TAI64VarTs_0_1.hpp" +#include "types/reg/udral/physics/time/TAI64Var_0_1.hpp" +#include "types/reg/udral/physics/time/TAI64_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp" +#include "types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp" +#include "types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp" +#include "types/reg/udral/service/actuator/common/Feedback_0_1.hpp" +#include "types/reg/udral/service/actuator/common/Status_0_1.hpp" +#include "types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp" +#include "types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp" +#include "types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp" +#include "types/reg/udral/service/battery/Error_0_1.hpp" +#include "types/reg/udral/service/battery/Parameters_0_3.hpp" +#include "types/reg/udral/service/battery/Status_0_2.hpp" +#include "types/reg/udral/service/battery/Technology_0_1.hpp" +#include "types/reg/udral/service/battery/zX005FzX005F0_1.hpp" +#include "types/reg/udral/service/common/Heartbeat_0_1.hpp" +#include "types/reg/udral/service/common/Readiness_0_1.hpp" +#include "types/reg/udral/service/sensor/Status_0_1.hpp" #include "types/uavcan/_register/Access_1_0.hpp" #include "types/uavcan/_register/List_1_0.hpp" -#include "types/uavcan/_register/Value_1_0.hpp" #include "types/uavcan/_register/Name_1_0.hpp" +#include "types/uavcan/_register/Value_1_0.hpp" +#include "types/uavcan/diagnostic/Record_1_0.hpp" +#include "types/uavcan/diagnostic/Record_1_1.hpp" +#include "types/uavcan/diagnostic/Severity_1_0.hpp" +#include "types/uavcan/file/Error_1_0.hpp" +#include "types/uavcan/file/GetInfo_0_1.hpp" +#include "types/uavcan/file/GetInfo_0_2.hpp" +#include "types/uavcan/file/List_0_1.hpp" +#include "types/uavcan/file/List_0_2.hpp" +#include "types/uavcan/file/Modify_1_0.hpp" +#include "types/uavcan/file/Modify_1_1.hpp" +#include "types/uavcan/file/Path_1_0.hpp" +#include "types/uavcan/file/Path_2_0.hpp" +#include "types/uavcan/file/Read_1_0.hpp" +#include "types/uavcan/file/Read_1_1.hpp" +#include "types/uavcan/file/Write_1_0.hpp" +#include "types/uavcan/file/Write_1_1.hpp" #include "types/uavcan/internet/udp/HandleIncomingPacket_0_1.hpp" -#include "types/uavcan/internet/udp/OutgoingPacket_0_1.hpp" #include "types/uavcan/internet/udp/HandleIncomingPacket_0_2.hpp" +#include "types/uavcan/internet/udp/OutgoingPacket_0_1.hpp" #include "types/uavcan/internet/udp/OutgoingPacket_0_2.hpp" -#include "types/uavcan/primitive/String_1_0.hpp" -#include "types/uavcan/primitive/scalar/Natural8_1_0.hpp" -#include "types/uavcan/primitive/scalar/Integer64_1_0.hpp" -#include "types/uavcan/primitive/scalar/Real64_1_0.hpp" -#include "types/uavcan/primitive/scalar/Natural16_1_0.hpp" -#include "types/uavcan/primitive/scalar/Natural64_1_0.hpp" -#include "types/uavcan/primitive/scalar/Integer32_1_0.hpp" -#include "types/uavcan/primitive/scalar/Real32_1_0.hpp" -#include "types/uavcan/primitive/scalar/Bit_1_0.hpp" -#include "types/uavcan/primitive/scalar/Integer8_1_0.hpp" -#include "types/uavcan/primitive/scalar/Integer16_1_0.hpp" -#include "types/uavcan/primitive/scalar/Real16_1_0.hpp" -#include "types/uavcan/primitive/scalar/Natural32_1_0.hpp" -#include "types/uavcan/primitive/Unstructured_1_0.hpp" -#include "types/uavcan/primitive/array/Natural8_1_0.hpp" +#include "types/uavcan/metatransport/can/ArbitrationID_0_1.hpp" +#include "types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp" +#include "types/uavcan/metatransport/can/DataClassic_0_1.hpp" +#include "types/uavcan/metatransport/can/DataFD_0_1.hpp" +#include "types/uavcan/metatransport/can/Error_0_1.hpp" +#include "types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp" +#include "types/uavcan/metatransport/can/Frame_0_1.hpp" +#include "types/uavcan/metatransport/can/Frame_0_2.hpp" +#include "types/uavcan/metatransport/can/Manifestation_0_1.hpp" +#include "types/uavcan/metatransport/can/RTR_0_1.hpp" +#include "types/uavcan/metatransport/ethernet/EtherType_0_1.hpp" +#include "types/uavcan/metatransport/ethernet/Frame_0_1.hpp" +#include "types/uavcan/metatransport/serial/Fragment_0_1.hpp" +#include "types/uavcan/metatransport/serial/Fragment_0_2.hpp" +#include "types/uavcan/metatransport/udp/Endpoint_0_1.hpp" +#include "types/uavcan/metatransport/udp/Frame_0_1.hpp" +#include "types/uavcan/node/port/ID_1_0.hpp" +#include "types/uavcan/node/port/List_0_1.hpp" +#include "types/uavcan/node/port/List_1_0.hpp" +#include "types/uavcan/node/port/ServiceIDList_0_1.hpp" +#include "types/uavcan/node/port/ServiceIDList_1_0.hpp" +#include "types/uavcan/node/port/ServiceID_1_0.hpp" +#include "types/uavcan/node/port/SubjectIDList_0_1.hpp" +#include "types/uavcan/node/port/SubjectIDList_1_0.hpp" +#include "types/uavcan/node/port/SubjectID_1_0.hpp" +#include "types/uavcan/node/ExecuteCommand_1_0.hpp" +#include "types/uavcan/node/ExecuteCommand_1_1.hpp" +#include "types/uavcan/node/GetInfo_1_0.hpp" +#include "types/uavcan/node/GetTransportStatistics_0_1.hpp" +#include "types/uavcan/node/Health_1_0.hpp" +#include "types/uavcan/node/Heartbeat_1_0.hpp" +#include "types/uavcan/node/ID_1_0.hpp" +#include "types/uavcan/node/IOStatistics_0_1.hpp" +#include "types/uavcan/node/Mode_1_0.hpp" +#include "types/uavcan/node/Version_1_0.hpp" +#include "types/uavcan/pnp/cluster/AppendEntries_1_0.hpp" +#include "types/uavcan/pnp/cluster/Discovery_1_0.hpp" +#include "types/uavcan/pnp/cluster/Entry_1_0.hpp" +#include "types/uavcan/pnp/cluster/RequestVote_1_0.hpp" +#include "types/uavcan/pnp/NodeIDAllocationData_1_0.hpp" +#include "types/uavcan/pnp/NodeIDAllocationData_2_0.hpp" +#include "types/uavcan/primitive/array/Bit_1_0.hpp" +#include "types/uavcan/primitive/array/Integer16_1_0.hpp" +#include "types/uavcan/primitive/array/Integer32_1_0.hpp" #include "types/uavcan/primitive/array/Integer64_1_0.hpp" -#include "types/uavcan/primitive/array/Real64_1_0.hpp" +#include "types/uavcan/primitive/array/Integer8_1_0.hpp" #include "types/uavcan/primitive/array/Natural16_1_0.hpp" +#include "types/uavcan/primitive/array/Natural32_1_0.hpp" #include "types/uavcan/primitive/array/Natural64_1_0.hpp" -#include "types/uavcan/primitive/array/Integer32_1_0.hpp" -#include "types/uavcan/primitive/array/Real32_1_0.hpp" -#include "types/uavcan/primitive/array/Bit_1_0.hpp" -#include "types/uavcan/primitive/array/Integer8_1_0.hpp" -#include "types/uavcan/primitive/array/Integer16_1_0.hpp" +#include "types/uavcan/primitive/array/Natural8_1_0.hpp" #include "types/uavcan/primitive/array/Real16_1_0.hpp" -#include "types/uavcan/primitive/array/Natural32_1_0.hpp" +#include "types/uavcan/primitive/array/Real32_1_0.hpp" +#include "types/uavcan/primitive/array/Real64_1_0.hpp" +#include "types/uavcan/primitive/scalar/Bit_1_0.hpp" +#include "types/uavcan/primitive/scalar/Integer16_1_0.hpp" +#include "types/uavcan/primitive/scalar/Integer32_1_0.hpp" +#include "types/uavcan/primitive/scalar/Integer64_1_0.hpp" +#include "types/uavcan/primitive/scalar/Integer8_1_0.hpp" +#include "types/uavcan/primitive/scalar/Natural16_1_0.hpp" +#include "types/uavcan/primitive/scalar/Natural32_1_0.hpp" +#include "types/uavcan/primitive/scalar/Natural64_1_0.hpp" +#include "types/uavcan/primitive/scalar/Natural8_1_0.hpp" +#include "types/uavcan/primitive/scalar/Real16_1_0.hpp" +#include "types/uavcan/primitive/scalar/Real32_1_0.hpp" +#include "types/uavcan/primitive/scalar/Real64_1_0.hpp" #include "types/uavcan/primitive/Empty_1_0.hpp" -#include "types/uavcan/si/unit/energy/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/length/WideScalar_1_0.hpp" -#include "types/uavcan/si/unit/length/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/length/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/length/WideVector3_1_0.hpp" -#include "types/uavcan/si/unit/velocity/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/velocity/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/acceleration/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/acceleration/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/duration/WideScalar_1_0.hpp" -#include "types/uavcan/si/unit/duration/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/torque/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/torque/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/volume/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp" -#include "types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp" -#include "types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/frequency/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/luminance/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/force/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/force/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/voltage/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/electric_current/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/angle/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/angle/Quaternion_1_0.hpp" -#include "types/uavcan/si/unit/temperature/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/pressure/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/power/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp" -#include "types/uavcan/si/unit/mass/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp" -#include "types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/energy/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/length/WideScalar_1_0.hpp" -#include "types/uavcan/si/sample/length/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/length/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/length/WideVector3_1_0.hpp" -#include "types/uavcan/si/sample/velocity/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/velocity/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp" +#include "types/uavcan/primitive/String_1_0.hpp" +#include "types/uavcan/primitive/Unstructured_1_0.hpp" #include "types/uavcan/si/sample/acceleration/Scalar_1_0.hpp" #include "types/uavcan/si/sample/acceleration/Vector3_1_0.hpp" +#include "types/uavcan/si/sample/angle/Quaternion_1_0.hpp" +#include "types/uavcan/si/sample/angle/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp" #include "types/uavcan/si/sample/angular_velocity/Scalar_1_0.hpp" #include "types/uavcan/si/sample/angular_velocity/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/duration/WideScalar_1_0.hpp" #include "types/uavcan/si/sample/duration/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/torque/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/torque/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/volume/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp" +#include "types/uavcan/si/sample/duration/WideScalar_1_0.hpp" +#include "types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/electric_current/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/energy/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/force/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/force/Vector3_1_0.hpp" +#include "types/uavcan/si/sample/frequency/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/length/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/length/Vector3_1_0.hpp" +#include "types/uavcan/si/sample/length/WideScalar_1_0.hpp" +#include "types/uavcan/si/sample/length/WideVector3_1_0.hpp" +#include "types/uavcan/si/sample/luminance/Scalar_1_0.hpp" #include "types/uavcan/si/sample/magnetic_field_strength/Scalar_1_0.hpp" #include "types/uavcan/si/sample/magnetic_field_strength/Scalar_1_1.hpp" #include "types/uavcan/si/sample/magnetic_field_strength/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/frequency/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/luminance/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/force/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/force/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/voltage/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/electric_current/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/angle/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/angle/Quaternion_1_0.hpp" -#include "types/uavcan/si/sample/temperature/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/pressure/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/power/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp" -#include "types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp" -#include "types/uavcan/si/sample/mass/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp" #include "types/uavcan/si/sample/magnetic_flux_density/Scalar_1_0.hpp" #include "types/uavcan/si/sample/magnetic_flux_density/Vector3_1_0.hpp" -#include "types/uavcan/pnp/cluster/Discovery_1_0.hpp" -#include "types/uavcan/pnp/cluster/AppendEntries_1_0.hpp" -#include "types/uavcan/pnp/cluster/Entry_1_0.hpp" -#include "types/uavcan/pnp/cluster/RequestVote_1_0.hpp" -#include "types/uavcan/pnp/NodeIDAllocationData_2_0.hpp" -#include "types/uavcan/pnp/NodeIDAllocationData_1_0.hpp" -#include "types/uavcan/diagnostic/Severity_1_0.hpp" -#include "types/uavcan/diagnostic/Record_1_1.hpp" -#include "types/uavcan/diagnostic/Record_1_0.hpp" -#include "types/uavcan/metatransport/ethernet/Frame_0_1.hpp" -#include "types/uavcan/metatransport/ethernet/EtherType_0_1.hpp" -#include "types/uavcan/metatransport/can/Frame_0_2.hpp" -#include "types/uavcan/metatransport/can/Manifestation_0_1.hpp" -#include "types/uavcan/metatransport/can/DataFD_0_1.hpp" -#include "types/uavcan/metatransport/can/Frame_0_1.hpp" -#include "types/uavcan/metatransport/can/Error_0_1.hpp" -#include "types/uavcan/metatransport/can/DataClassic_0_1.hpp" -#include "types/uavcan/metatransport/can/ArbitrationID_0_1.hpp" -#include "types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp" -#include "types/uavcan/metatransport/can/RTR_0_1.hpp" -#include "types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp" -#include "types/uavcan/metatransport/serial/Fragment_0_1.hpp" -#include "types/uavcan/metatransport/serial/Fragment_0_2.hpp" -#include "types/uavcan/metatransport/udp/Endpoint_0_1.hpp" -#include "types/uavcan/metatransport/udp/Frame_0_1.hpp" -#include "types/uavcan/file/Read_1_0.hpp" -#include "types/uavcan/file/Write_1_1.hpp" -#include "types/uavcan/file/List_0_1.hpp" -#include "types/uavcan/file/GetInfo_0_2.hpp" -#include "types/uavcan/file/List_0_2.hpp" -#include "types/uavcan/file/Modify_1_0.hpp" -#include "types/uavcan/file/Read_1_1.hpp" -#include "types/uavcan/file/Path_2_0.hpp" -#include "types/uavcan/file/Modify_1_1.hpp" -#include "types/uavcan/file/GetInfo_0_1.hpp" -#include "types/uavcan/file/Path_1_0.hpp" -#include "types/uavcan/file/Error_1_0.hpp" -#include "types/uavcan/file/Write_1_0.hpp" -#include "types/reg/udral/service/sensor/Status_0_1.hpp" -#include "types/reg/udral/service/common/Heartbeat_0_1.hpp" -#include "types/reg/udral/service/common/Readiness_0_1.hpp" -#include "types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp" -#include "types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp" -#include "types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp" -#include "types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp" -#include "types/reg/udral/service/actuator/common/Feedback_0_1.hpp" -#include "types/reg/udral/service/actuator/common/Status_0_1.hpp" -#include "types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp" -#include "types/reg/udral/service/battery/zX005FzX005F0_1.hpp" -#include "types/reg/udral/service/battery/Status_0_2.hpp" -#include "types/reg/udral/service/battery/Error_0_1.hpp" -#include "types/reg/udral/service/battery/Technology_0_1.hpp" -#include "types/reg/udral/service/battery/Parameters_0_3.hpp" -#include "types/reg/udral/physics/time/TAI64VarTs_0_1.hpp" -#include "types/reg/udral/physics/time/TAI64_0_1.hpp" -#include "types/reg/udral/physics/time/TAI64Var_0_1.hpp" -#include "types/reg/udral/physics/acoustics/Note_0_1.hpp" -#include "types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp" -#include "types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp" -#include "types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp" -#include "types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp" -#include "types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp" -#include "types/reg/udral/physics/electricity/SourceTs_0_1.hpp" -#include "types/reg/udral/physics/electricity/Power_0_1.hpp" -#include "types/reg/udral/physics/electricity/PowerTs_0_1.hpp" -#include "types/reg/udral/physics/electricity/Source_0_1.hpp" -#include "types/reg/udral/physics/optics/HighColor_0_1.hpp" -#include "types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp" -#include "types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp" -#include "types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp" +#include "types/uavcan/si/sample/mass/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/power/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/pressure/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/temperature/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/torque/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/torque/Vector3_1_0.hpp" +#include "types/uavcan/si/sample/velocity/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/velocity/Vector3_1_0.hpp" +#include "types/uavcan/si/sample/voltage/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/volume/Scalar_1_0.hpp" +#include "types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/acceleration/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/acceleration/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/angle/Quaternion_1_0.hpp" +#include "types/uavcan/si/unit/angle/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/duration/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/duration/WideScalar_1_0.hpp" +#include "types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/electric_current/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/energy/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/force/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/force/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/frequency/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/length/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/length/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/length/WideScalar_1_0.hpp" +#include "types/uavcan/si/unit/length/WideVector3_1_0.hpp" +#include "types/uavcan/si/unit/luminance/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp" +#include "types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp" +#include "types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/mass/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/power/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/pressure/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/temperature/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/torque/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/torque/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/velocity/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/velocity/Vector3_1_0.hpp" +#include "types/uavcan/si/unit/voltage/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/volume/Scalar_1_0.hpp" +#include "types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp" +#include "types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp" +#include "types/uavcan/time/Synchronization_1_0.hpp" +#include "types/uavcan/time/SynchronizedTimestamp_1_0.hpp" +#include "types/uavcan/time/TAIInfo_0_1.hpp" +#include "types/uavcan/time/TimeSystem_0_1.hpp" diff --git a/src/nunavut/support/serialization.hpp b/src/nunavut/support/serialization.hpp index df99bf9a..49cc6744 100644 --- a/src/nunavut/support/serialization.hpp +++ b/src/nunavut/support/serialization.hpp @@ -10,10 +10,14 @@ // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default #ifndef NUNAVUT_SUPPORT_SERIALIZATION_HPP_INCLUDED #define NUNAVUT_SUPPORT_SERIALIZATION_HPP_INCLUDED @@ -186,10 +190,14 @@ constexpr std::uint32_t omit_float_serialization_support = 0; constexpr std::uint32_t enable_serialization_asserts = 0; constexpr std::uint32_t enable_override_variable_array_capacity = 0; constexpr std::uint32_t std = 628873475; -constexpr std::uint32_t variable_array_type_template = 0; -constexpr std::uint32_t variable_array_type_include = 0; constexpr std::uint32_t cast_format = 1407868567; -constexpr std::uint32_t enable_allocator_support = 0; +constexpr std::uint32_t variable_array_type_include = 3320664631; +constexpr std::uint32_t variable_array_type_template = 4227611599; +constexpr std::uint32_t variable_array_type_constructor_args = 0; +constexpr std::uint32_t allocator_include = 0; +constexpr std::uint32_t allocator_type = 0; +constexpr std::uint32_t allocator_is_default_constructible = 1; +constexpr std::uint32_t ctor_convention = 3814588639; } // end namespace options diff --git a/src/types/reg/udral/physics/acoustics/Note_0_1.hpp b/src/types/reg/udral/physics/acoustics/Note_0_1.hpp index a6b1691a..05f621c5 100644 --- a/src/types/reg/udral/physics/acoustics/Note_0_1.hpp +++ b/src/types/reg/udral/physics/acoustics/Note_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.538242 UTC +// Generated at: 2024-01-12 03:09:36.167954 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.acoustics.Note @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_ACOUSTICS_NOTE_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,6 +166,7 @@ struct Note_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -155,11 +180,11 @@ struct Note_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::frequency frequency; + _traits_::TypeOf::frequency frequency{}; - _traits_::TypeOf::duration duration; + _traits_::TypeOf::duration duration{}; - _traits_::TypeOf::acoustic_power acoustic_power; + _traits_::TypeOf::acoustic_power acoustic_power{}; }; inline nunavut::support::SerializeResult serialize(const Note_0_1& obj, diff --git a/src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp b/src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp index 4d7a75bb..b6f160e9 100644 --- a/src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp +++ b/src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.513707 UTC +// Generated at: 2024-01-12 03:09:36.040071 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.dynamics.rotation.PlanarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_DYNAMICS_ROTATION_PLANAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PlanarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 23UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct PlanarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PlanarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp b/src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp index 9f87d934..d9df0e58 100644 --- a/src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp +++ b/src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.417026 UTC +// Generated at: 2024-01-12 03:09:36.036504 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.dynamics.rotation.Planar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_DYNAMICS_ROTATION_PLANAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Planar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 16UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,11 +178,11 @@ struct Planar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::kinematics kinematics; + _traits_::TypeOf::kinematics kinematics{}; /// /// NaN if unknown /// - _traits_::TypeOf::torque torque; + _traits_::TypeOf::torque torque{}; }; inline nunavut::support::SerializeResult serialize(const Planar_0_1& obj, diff --git a/src/types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp b/src/types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp index 2eb7a0d4..0e1589cc 100644 --- a/src/types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp +++ b/src/types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.520208 UTC +// Generated at: 2024-01-12 03:09:36.046844 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.dynamics.translation.LinearTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_DYNAMICS_TRANSLATION_LINEAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct LinearTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 23UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct LinearTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const LinearTs_0_1& obj, diff --git a/src/types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp b/src/types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp index 28ea71bf..e8b3a48d 100644 --- a/src/types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp +++ b/src/types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.516923 UTC +// Generated at: 2024-01-12 03:09:36.043449 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.dynamics.translation.Linear @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_DYNAMICS_TRANSLATION_LINEAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Linear_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 16UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,11 +178,11 @@ struct Linear_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::kinematics kinematics; + _traits_::TypeOf::kinematics kinematics{}; /// /// NaN if unknown /// - _traits_::TypeOf::force force; + _traits_::TypeOf::force force{}; }; inline nunavut::support::SerializeResult serialize(const Linear_0_1& obj, diff --git a/src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp b/src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp index 8390c8c4..f3b11e12 100644 --- a/src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp +++ b/src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.525996 UTC +// Generated at: 2024-01-12 03:09:36.157676 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.electricity.PowerTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_ELECTRICITY_POWER_TS_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct PowerTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 15UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,9 +173,9 @@ struct PowerTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PowerTs_0_1& obj, diff --git a/src/types/reg/udral/physics/electricity/Power_0_1.hpp b/src/types/reg/udral/physics/electricity/Power_0_1.hpp index 6530f9f2..242ca159 100644 --- a/src/types/reg/udral/physics/electricity/Power_0_1.hpp +++ b/src/types/reg/udral/physics/electricity/Power_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.522877 UTC +// Generated at: 2024-01-12 03:09:36.154412 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.electricity.Power @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_ELECTRICITY_POWER_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,6 +166,7 @@ struct Power_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,9 +179,9 @@ struct Power_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::current current; + _traits_::TypeOf::current current{}; - _traits_::TypeOf::voltage voltage; + _traits_::TypeOf::voltage voltage{}; }; inline nunavut::support::SerializeResult serialize(const Power_0_1& obj, diff --git a/src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp b/src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp index 28f44400..cd4dec1d 100644 --- a/src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp +++ b/src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.532101 UTC +// Generated at: 2024-01-12 03:09:36.164852 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.electricity.SourceTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_ELECTRICITY_SOURCE_TS_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct SourceTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 23UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,9 +173,9 @@ struct SourceTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const SourceTs_0_1& obj, diff --git a/src/types/reg/udral/physics/electricity/Source_0_1.hpp b/src/types/reg/udral/physics/electricity/Source_0_1.hpp index dc07fb23..fe77f7e3 100644 --- a/src/types/reg/udral/physics/electricity/Source_0_1.hpp +++ b/src/types/reg/udral/physics/electricity/Source_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.528562 UTC +// Generated at: 2024-01-12 03:09:36.160743 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.electricity.Source @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_ELECTRICITY_SOURCE_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Source_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 16UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -156,7 +181,7 @@ struct Source_0_1 final /// Positive current flows into the source (power sinking). /// Negative current flows from the source to the power supply network (power sourcing). /// - _traits_::TypeOf::power power; + _traits_::TypeOf::power power{}; /// /// A pessimistic estimate of the amount of energy that can be reclaimed from the source in its current state. /// This may be dependent on the state of charge/health (for batteries), temperature, load profile, humidity, etc. @@ -171,12 +196,12 @@ struct Source_0_1 final /// For the sake of illustration, if this type was used to represent the state of a braking resistor, /// then this value would be negative indicating the amount of dissipated energy. /// - _traits_::TypeOf::energy energy; + _traits_::TypeOf::energy energy{}; /// /// A pessimistic estimate of the amount of energy that can be reclaimed from a fresh source (fully fueled generator /// or a fully charged battery) under the current conditions (SoH, temperature, load profile, etc). /// - _traits_::TypeOf::full_energy full_energy; + _traits_::TypeOf::full_energy full_energy{}; }; inline nunavut::support::SerializeResult serialize(const Source_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp index c1b7003e..37e4b03f 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PointStateVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.617188 UTC +// Generated at: 2024-01-12 03:09:36.059578 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PointStateVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POINT_STATE_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PointStateVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 67UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct PointStateVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PointStateVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp index 7b2f8548..a7fd9473 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PointStateVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.614600 UTC +// Generated at: 2024-01-12 03:09:36.056320 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PointStateVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POINT_STATE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct PointStateVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 60UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -152,9 +177,9 @@ struct PointStateVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::velocity velocity; + _traits_::TypeOf::velocity velocity{}; }; inline nunavut::support::SerializeResult serialize(const PointStateVar_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp index 46e1f8c1..e1c0cc0d 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PointState_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.612079 UTC +// Generated at: 2024-01-12 03:09:36.052977 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PointState @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POINT_STATE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct PointState_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 36UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,9 +178,9 @@ struct PointState_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::velocity velocity; + _traits_::TypeOf::velocity velocity{}; }; inline nunavut::support::SerializeResult serialize(const PointState_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp index 23a11589..96625493 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PointVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.619831 UTC +// Generated at: 2024-01-12 03:09:36.062761 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PointVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POINT_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PointVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 36UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct PointVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [meter^2] Upper-right triangle of the covariance matrix. /// diff --git a/src/types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp index 900f1372..ce527ad8 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/Point_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.609857 UTC +// Generated at: 2024-01-12 03:09:36.049983 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.Point @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POINT_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Point_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 24UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct Point_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const Point_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp index 8658850c..0f46ed7e 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PoseVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.627818 UTC +// Generated at: 2024-01-12 03:09:36.072804 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PoseVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POSE_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PoseVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 89UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct PoseVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PoseVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp index 3134b60a..814fd89f 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/PoseVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.625032 UTC +// Generated at: 2024-01-12 03:09:36.069347 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.PoseVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POSE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PoseVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 82UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct PoseVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// Upper-right triangle of the covariance matrix: /// diff --git a/src/types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp index 5a780198..c8f647fd 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.622492 UTC +// Generated at: 2024-01-12 03:09:36.065998 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.Pose @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_POSE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct Pose_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 40UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct Pose_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::orientation orientation; + _traits_::TypeOf::orientation orientation{}; }; inline nunavut::support::SerializeResult serialize(const Pose_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp index f5caa69b..04c3a4b8 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/StateVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.635751 UTC +// Generated at: 2024-01-12 03:09:36.082586 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.StateVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_STATE_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct StateVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 155UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct StateVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const StateVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp index 0342c6d4..5cdafd1f 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/StateVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.633064 UTC +// Generated at: 2024-01-12 03:09:36.079312 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.StateVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_STATE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct StateVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 148UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -152,9 +177,9 @@ struct StateVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::pose pose; + _traits_::TypeOf::pose pose{}; - _traits_::TypeOf::twist twist; + _traits_::TypeOf::twist twist{}; }; inline nunavut::support::SerializeResult serialize(const StateVar_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp index ed17e3cc..ef5c9189 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/State_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.630395 UTC +// Generated at: 2024-01-12 03:09:36.075930 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.State @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_STATE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,6 +166,7 @@ struct State_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 64UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,9 +179,9 @@ struct State_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::pose pose; + _traits_::TypeOf::pose pose{}; - _traits_::TypeOf::twist twist; + _traits_::TypeOf::twist twist{}; }; inline nunavut::support::SerializeResult serialize(const State_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp index 65701191..ca55a6bd 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/TwistVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.643996 UTC +// Generated at: 2024-01-12 03:09:36.092469 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.TwistVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_TWIST_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct TwistVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 73UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct TwistVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const TwistVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp index 9acbc6c3..7ad1811b 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/TwistVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.641061 UTC +// Generated at: 2024-01-12 03:09:36.089124 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.TwistVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_TWIST_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/TwistVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct TwistVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 66UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct TwistVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// Upper-right triangle of the covariance matrix: /// diff --git a/src/types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp b/src/types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp index b5f8e59c..44fab0d2 100644 --- a/src/types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/cartesian/Twist_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.638389 UTC +// Generated at: 2024-01-12 03:09:36.085833 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.cartesian.Twist @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_CARTESIAN_TWIST_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Twist.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct Twist_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 24UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,11 +179,11 @@ struct Twist_0_1 final /// /// Linear velocity in the body frame. /// - _traits_::TypeOf::linear linear; + _traits_::TypeOf::linear linear{}; /// /// Angular velocity about the fixed axes of the body frame (extrinsic). /// - _traits_::TypeOf::angular angular; + _traits_::TypeOf::angular angular{}; }; inline nunavut::support::SerializeResult serialize(const Twist_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp index b5843883..7282806f 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/PointStateVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.580953 UTC +// Generated at: 2024-01-12 03:09:36.125582 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.PointStateVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POINT_STATE_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PointStateVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 67UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct PointStateVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PointStateVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp index c1815c59..9358ca2f 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/PointStateVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.578268 UTC +// Generated at: 2024-01-12 03:09:36.122489 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.PointStateVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POINT_STATE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointStateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct PointStateVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 60UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -152,9 +177,9 @@ struct PointStateVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::velocity velocity; + _traits_::TypeOf::velocity velocity{}; }; inline nunavut::support::SerializeResult serialize(const PointStateVar_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp index e92b8bc2..5048120e 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/PointState_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.575685 UTC +// Generated at: 2024-01-12 03:09:36.119407 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.PointState @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POINT_STATE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointState.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct PointState_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 36UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,9 +178,9 @@ struct PointState_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::velocity velocity; + _traits_::TypeOf::velocity velocity{}; }; inline nunavut::support::SerializeResult serialize(const PointState_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp index a06d0212..98ae0a3e 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/PointVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.583596 UTC +// Generated at: 2024-01-12 03:09:36.128681 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.PointVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POINT_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PointVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PointVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 36UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct PointVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [meter^2] /// Upper-right triangle of the covariance matrix. diff --git a/src/types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp index cec4c6ad..cc5da86b 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/Point_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.572603 UTC +// Generated at: 2024-01-12 03:09:36.115883 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.Point @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POINT_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Point.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Point_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 24UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -165,7 +190,7 @@ struct Point_0_1 final /// Distance between the local mean sea level (MSL) and the focal point of the antenna. Positive altitude above the /// MSL. /// - _traits_::TypeOf::altitude altitude; + _traits_::TypeOf::altitude altitude{}; }; inline nunavut::support::SerializeResult serialize(const Point_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp index bb897959..6d1fb78f 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/PoseVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.598727 UTC +// Generated at: 2024-01-12 03:09:36.134974 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.PoseVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POSE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/PoseVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PoseVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 82UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct PoseVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// Upper-right triangle of the covariance matrix: /// diff --git a/src/types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp index 6381f3bf..19f62944 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/Pose_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.595874 UTC +// Generated at: 2024-01-12 03:09:36.131897 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.Pose @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_POSE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/Pose.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Pose_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 40UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,9 +178,9 @@ struct Pose_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::orientation orientation; + _traits_::TypeOf::orientation orientation{}; }; inline nunavut::support::SerializeResult serialize(const Pose_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp index a0ef7af0..a67ecaea 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/StateVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.607174 UTC +// Generated at: 2024-01-12 03:09:36.144666 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.StateVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_STATE_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct StateVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 155UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct StateVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const StateVarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp index a68fc388..9938275c 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/StateVar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.604447 UTC +// Generated at: 2024-01-12 03:09:36.141485 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.StateVar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_STATE_VAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/StateVar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct StateVar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 148UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -152,9 +177,9 @@ struct StateVar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::pose pose; + _traits_::TypeOf::pose pose{}; - _traits_::TypeOf::twist twist; + _traits_::TypeOf::twist twist{}; }; inline nunavut::support::SerializeResult serialize(const StateVar_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp b/src/types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp index 7639d78b..c5d07d96 100644 --- a/src/types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/geodetic/State_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.601541 UTC +// Generated at: 2024-01-12 03:09:36.138323 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.geodetic.State @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_GEODETIC_STATE_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/geodetic/State.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,6 +166,7 @@ struct State_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 64UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,9 +179,9 @@ struct State_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::pose pose; + _traits_::TypeOf::pose pose{}; - _traits_::TypeOf::twist twist; + _traits_::TypeOf::twist twist{}; }; inline nunavut::support::SerializeResult serialize(const State_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp index d100c54c..4691c63c 100644 --- a/src/types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/rotation/PlanarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.570102 UTC +// Generated at: 2024-01-12 03:09:36.151364 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.rotation.PlanarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_ROTATION_PLANAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/PlanarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct PlanarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct PlanarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const PlanarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp b/src/types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp index 39354cc4..835269b7 100644 --- a/src/types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/rotation/Planar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.566881 UTC +// Generated at: 2024-01-12 03:09:36.147824 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.rotation.Planar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_ROTATION_PLANAR_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/rotation/Planar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Planar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,11 +179,11 @@ struct Planar_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::angular_position angular_position; + _traits_::TypeOf::angular_position angular_position{}; - _traits_::TypeOf::angular_velocity angular_velocity; + _traits_::TypeOf::angular_velocity angular_velocity{}; - _traits_::TypeOf::angular_acceleration angular_acceleration; + _traits_::TypeOf::angular_acceleration angular_acceleration{}; }; inline nunavut::support::SerializeResult serialize(const Planar_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp index 6865cce7..82cdb800 100644 --- a/src/types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/LinearTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.552567 UTC +// Generated at: 2024-01-12 03:09:36.099122 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.LinearTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_TRANSLATION_LINEAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct LinearTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,9 +175,9 @@ struct LinearTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const LinearTs_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp index 5b9ecee8..ad64af60 100644 --- a/src/types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/LinearVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.555124 UTC +// Generated at: 2024-01-12 03:09:36.102154 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.LinearVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_TRANSLATION_LINEAR_VAR_TS_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/LinearVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct LinearVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 25UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,7 +179,7 @@ struct LinearVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [meter^2] /// diff --git a/src/types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp b/src/types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp index c011448b..8d8e5b05 100644 --- a/src/types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/Linear_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.549262 UTC +// Generated at: 2024-01-12 03:09:36.095577 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.Linear @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_TRANSLATION_LINEAR_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Linear.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Linear_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -154,11 +179,11 @@ struct Linear_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::position position; + _traits_::TypeOf::position position{}; - _traits_::TypeOf::velocity velocity; + _traits_::TypeOf::velocity velocity{}; - _traits_::TypeOf::acceleration acceleration; + _traits_::TypeOf::acceleration acceleration{}; }; inline nunavut::support::SerializeResult serialize(const Linear_0_1& obj, diff --git a/src/types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp b/src/types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp index 5abe7b6d..d78a3fbc 100644 --- a/src/types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/Velocity1VarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.558520 UTC +// Generated at: 2024-01-12 03:09:36.106110 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.Velocity1VarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_TRANSLATION_VELOCITY1VAR_TS_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity1VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Velocity1VarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 13UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,7 +178,7 @@ struct Velocity1VarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [(meter/second)^2] /// diff --git a/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp b/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp index 3e85bab1..647a567f 100644 --- a/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.564036 UTC +// Generated at: 2024-01-12 03:09:36.112609 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.Velocity3Var @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -97,22 +101,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -128,8 +152,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// Linear velocity with covariance. /// Observe that this is a structural subtype of uavcan.si.unit.velocity.Scalar.1.0. /// -[[deprecated("reg.udral.physics.kinematics.translation.Velocity3Var.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Velocity3Var_0_1 final +struct [[deprecated("reg.udral.physics.kinematics.translation.Velocity3Var.0.1 is reaching the end of its life; there may be a newer version available")]]Velocity3Var_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -150,6 +173,7 @@ struct Velocity3Var_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 31UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -162,7 +186,7 @@ struct Velocity3Var_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [(meter/second)^2] Upper-right triangle of the covariance matrix. /// diff --git a/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp b/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp index ad9f5b30..c22e79c0 100644 --- a/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp +++ b/src/types/reg/udral/physics/kinematics/translation/Velocity3Var_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl -// Generated at: 2023-03-10 05:17:54.561181 UTC +// Generated at: 2024-01-12 03:09:36.109398 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.kinematics.translation.Velocity3Var @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_KINEMATICS_TRANSLATION_VELOCITY3VAR_0_2_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/kinematics/translation/Velocity3Var.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Velocity3Var_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 24UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -153,7 +178,7 @@ struct Velocity3Var_0_2 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [(meter/second)^2] Upper-right triangle of the covariance matrix. /// diff --git a/src/types/reg/udral/physics/optics/HighColor_0_1.hpp b/src/types/reg/udral/physics/optics/HighColor_0_1.hpp index efae2dde..40adb970 100644 --- a/src/types/reg/udral/physics/optics/HighColor_0_1.hpp +++ b/src/types/reg/udral/physics/optics/HighColor_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.534828 UTC +// Generated at: 2024-01-12 03:09:36.184937 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.optics.HighColor @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_OPTICS_HIGH_COLOR_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/optics/HighColor.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -144,6 +168,7 @@ struct HighColor_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp b/src/types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp index e78e044b..786cf7a4 100644 --- a/src/types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp +++ b/src/types/reg/udral/physics/thermodynamics/PressureTempVarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.646608 UTC +// Generated at: 2024-01-12 03:09:36.171756 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.thermodynamics.PressureTempVarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_THERMODYNAMICS_PRESSURE_TEMP_VAR_TS_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/thermodynamics/PressureTempVarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct PressureTempVarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 21UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -155,11 +180,11 @@ struct PressureTempVarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::pressure pressure; + _traits_::TypeOf::pressure pressure{}; - _traits_::TypeOf::temperature temperature; + _traits_::TypeOf::temperature temperature{}; /// /// The upper-right triangle of the covariance matrix (following the matrix packing rules defined in Specification). /// 0 -- pascal^2 diff --git a/src/types/reg/udral/physics/time/TAI64VarTs_0_1.hpp b/src/types/reg/udral/physics/time/TAI64VarTs_0_1.hpp index 39d19e50..e81c3f0e 100644 --- a/src/types/reg/udral/physics/time/TAI64VarTs_0_1.hpp +++ b/src/types/reg/udral/physics/time/TAI64VarTs_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.546694 UTC +// Generated at: 2024-01-12 03:09:36.181855 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.time.TAI64VarTs @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_TIME_TAI64VAR_TS_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64VarTs.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct TAI64VarTs_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,9 +173,9 @@ struct TAI64VarTs_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const TAI64VarTs_0_1& obj, diff --git a/src/types/reg/udral/physics/time/TAI64Var_0_1.hpp b/src/types/reg/udral/physics/time/TAI64Var_0_1.hpp index 8ab1dfbb..ebc82dc0 100644 --- a/src/types/reg/udral/physics/time/TAI64Var_0_1.hpp +++ b/src/types/reg/udral/physics/time/TAI64Var_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.544156 UTC +// Generated at: 2024-01-12 03:09:36.178921 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.time.TAI64Var @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_TIME_TAI64VAR_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64Var.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct TAI64Var_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct TAI64Var_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; /// /// [second^2] /// Error variance, in second squared, of the time estimate. diff --git a/src/types/reg/udral/physics/time/TAI64_0_1.hpp b/src/types/reg/udral/physics/time/TAI64_0_1.hpp index 0fed2bd9..d77d44ec 100644 --- a/src/types/reg/udral/physics/time/TAI64_0_1.hpp +++ b/src/types/reg/udral/physics/time/TAI64_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.541781 UTC +// Generated at: 2024-01-12 03:09:36.176018 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.physics.time.TAI64 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_PHYSICS_TIME_TAI64_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/physics/time/TAI64.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -151,6 +175,7 @@ struct TAI64_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp b/src/types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp index c22276e6..c7c03fb6 100644 --- a/src/types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/FaultFlags_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.681868 UTC +// Generated at: 2024-01-12 03:09:35.956048 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.FaultFlags @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_FAULT_FLAGS_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/FaultFlags.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct FaultFlags_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/Feedback_0_1.hpp b/src/types/reg/udral/service/actuator/common/Feedback_0_1.hpp index 65fe362a..dc9f96f7 100644 --- a/src/types/reg/udral/service/actuator/common/Feedback_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/Feedback_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.686304 UTC +// Generated at: 2024-01-12 03:09:35.961797 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.Feedback @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_FEEDBACK_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Feedback.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -144,6 +168,7 @@ struct Feedback_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 3UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -162,7 +187,7 @@ struct Feedback_0_1 final /// feedback subject using the heartbeat type. Similarly, the heartbeat type is a structural subtype of the /// Readiness type, meaning that one can use the Readiness type as well. /// - _traits_::TypeOf::heartbeat heartbeat; + _traits_::TypeOf::heartbeat heartbeat{}; /// /// [percent] /// Percentage of the maximum rated output intensity. May exceed +-100% in case of overload. diff --git a/src/types/reg/udral/service/actuator/common/Status_0_1.hpp b/src/types/reg/udral/service/actuator/common/Status_0_1.hpp index d020e5ae..04b73a57 100644 --- a/src/types/reg/udral/service/actuator/common/Status_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/Status_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.689202 UTC +// Generated at: 2024-01-12 03:09:35.965602 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.Status @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_STATUS_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -144,6 +168,7 @@ struct Status_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 14UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -158,18 +183,18 @@ struct Status_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::motor_temperature motor_temperature; + _traits_::TypeOf::motor_temperature motor_temperature{}; /// /// Sampled temperatures. If multiple values are available, reduction is implementation-defined. /// - _traits_::TypeOf::controller_temperature controller_temperature; + _traits_::TypeOf::controller_temperature controller_temperature{}; /// /// Incremented once per occurrence. Reset to zero when ENGAGED. /// The exact definition of what constitutes an error is implementation-dependent. /// _traits_::TypeOf::error_count error_count{}; - _traits_::TypeOf::fault_flags fault_flags; + _traits_::TypeOf::fault_flags fault_flags{}; }; inline nunavut::support::SerializeResult serialize(const Status_0_1& obj, diff --git a/src/types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp index 013b9bdb..4c49ea82 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Scalar_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.694544 UTC +// Generated at: 2024-01-12 03:09:35.973301 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_SCALAR_0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Scalar.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct Scalar_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp index 738f199c..284b2216 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector2_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.696702 UTC +// Generated at: 2024-01-12 03:09:35.976179 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector2 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR2_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector2.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector2_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp index c2115689..81fe05fd 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector31_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.701212 UTC +// Generated at: 2024-01-12 03:09:35.982015 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector31 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR31_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector31.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector31_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 62UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp index d44eee38..aae484da 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector3_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.698960 UTC +// Generated at: 2024-01-12 03:09:35.979101 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR3_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector3.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector3_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 6UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp index 3ff1f1c4..73b8fdd4 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector4_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.703624 UTC +// Generated at: 2024-01-12 03:09:35.984918 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector4 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR4_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector4.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector4_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp index 2646e108..f60149ea 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector6_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.705900 UTC +// Generated at: 2024-01-12 03:09:35.987777 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector6 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR6_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector6.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector6_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp index ee934ed9..af785e33 100644 --- a/src/types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/Vector8_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.708164 UTC +// Generated at: 2024-01-12 03:09:35.990665 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp.Vector8 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP_VECTOR8_0_1_HPP_INCLUDED @@ -90,22 +94,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/Vector8.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Vector8_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 16UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp b/src/types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp index 67668ffe..e03ac3eb 100644 --- a/src/types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/sp/zX005FzX005F0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.710451 UTC +// Generated at: 2024-01-12 03:09:35.993552 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common.sp._ @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON_SP___0_1_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/sp/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -157,6 +181,7 @@ struct zX005FzX005F0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; // +---------------------------------------------------------------------------------------------------------------+ diff --git a/src/types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp b/src/types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp index 8f4738d0..20d400fc 100644 --- a/src/types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp +++ b/src/types/reg/udral/service/actuator/common/zX005FzX005F0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.692568 UTC +// Generated at: 2024-01-12 03:09:35.970632 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.common._ @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_COMMON___0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/common/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct zX005FzX005F0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; // +---------------------------------------------------------------------------------------------------------------+ diff --git a/src/types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp b/src/types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp index faa3151e..2921202d 100644 --- a/src/types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp +++ b/src/types/reg/udral/service/actuator/esc/zX005FzX005F0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.716003 UTC +// Generated at: 2024-01-12 03:09:35.826615 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.esc._ @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_ESC___0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/esc/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -309,7 +333,9 @@ struct zX005FzX005F0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const zX005FzX005F0_1& obj, diff --git a/src/types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp b/src/types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp index 619e03a0..80e452ef 100644 --- a/src/types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp +++ b/src/types/reg/udral/service/actuator/servo/zX005FzX005F0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.712503 UTC +// Generated at: 2024-01-12 03:09:35.951334 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.actuator.servo._ @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_ACTUATOR_SERVO___0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/actuator/servo/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -270,7 +294,9 @@ struct zX005FzX005F0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const zX005FzX005F0_1& obj, diff --git a/src/types/reg/udral/service/battery/Error_0_1.hpp b/src/types/reg/udral/service/battery/Error_0_1.hpp index e9d3b4fb..d4fced83 100644 --- a/src/types/reg/udral/service/battery/Error_0_1.hpp +++ b/src/types/reg/udral/service/battery/Error_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.656678 UTC +// Generated at: 2024-01-12 03:09:35.996129 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.battery.Error @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_BATTERY_ERROR_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/battery/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -145,6 +169,7 @@ struct Error_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/battery/Parameters_0_3.hpp b/src/types/reg/udral/service/battery/Parameters_0_3.hpp index ca3b77fa..ec28cd63 100644 --- a/src/types/reg/udral/service/battery/Parameters_0_3.hpp +++ b/src/types/reg/udral/service/battery/Parameters_0_3.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl -// Generated at: 2023-03-10 05:17:54.660411 UTC +// Generated at: 2024-01-12 03:09:36.000063 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.battery.Parameters @@ -21,30 +21,33 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_BATTERY_PARAMETERS_0_3_HPP_INCLUDED #define REG_UDRAL_SERVICE_BATTERY_PARAMETERS_0_3_HPP_INCLUDED #include -#include #include #include #include @@ -53,6 +56,7 @@ #include #include #include +#include namespace reg { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/battery/Parameters.0.3.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -151,6 +175,7 @@ struct Parameters_0_3 final static constexpr std::size_t SerializationBufferSizeBytes = 128UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -170,7 +195,7 @@ struct Parameters_0_3 final using technology = reg::udral::service::battery::Technology_0_1; using nominal_voltage = uavcan::si::unit::voltage::Scalar_1_0; using unix_manufacture_time = std::uint64_t; - using name = nunavut::support::VariableLengthArray; + using name = std::vector; }; }; @@ -196,11 +221,11 @@ struct Parameters_0_3 final /// May be used for predicting the kinematic parameters of the vehicle. /// NaN if unknown. /// - _traits_::TypeOf::mass mass; + _traits_::TypeOf::mass mass{}; /// /// The maximum total charge of the pack, at 100% SoH, specified by the manufacturer. /// - _traits_::TypeOf::design_capacity design_capacity; + _traits_::TypeOf::design_capacity design_capacity{}; /// /// The minimum (end of discharge) and the maximum (end of charge) resting cell voltage specified by the /// manufacturer @@ -216,28 +241,28 @@ struct Parameters_0_3 final /// /// Recommended continuous discharge current of the battery. /// - _traits_::TypeOf::discharge_current discharge_current; + _traits_::TypeOf::discharge_current discharge_current{}; /// /// Maximum current that may be safely discharged at least for 5 seconds. /// - _traits_::TypeOf::discharge_current_burst discharge_current_burst; + _traits_::TypeOf::discharge_current_burst discharge_current_burst{}; /// /// Recommended continuous charge current of the battery. /// - _traits_::TypeOf::charge_current charge_current; + _traits_::TypeOf::charge_current charge_current{}; /// /// Recommended safest highest continuous charge current for the battery. /// This may cause accelerated aging of the battery. /// - _traits_::TypeOf::charge_current_fast charge_current_fast; + _traits_::TypeOf::charge_current_fast charge_current_fast{}; /// /// End-of-charging current threshold. Charging may be terminated when the current falls below this threshold. /// - _traits_::TypeOf::charge_termination_threshold charge_termination_threshold; + _traits_::TypeOf::charge_termination_threshold charge_termination_threshold{}; /// /// The total voltage (not per-cell) that may be used by the charger to charge the battery pack. /// - _traits_::TypeOf::charge_voltage charge_voltage; + _traits_::TypeOf::charge_voltage charge_voltage{}; /// /// The number of charge-discharge cycles. Zero if the battery is new. May increase at runtime. /// What constitutes a charge-discharge cycle is implementation-defined. @@ -255,12 +280,12 @@ struct Parameters_0_3 final /// /// The battery technology information may be leveraged by the charger to choose the appropriate charging strategy. /// - _traits_::TypeOf::technology technology; + _traits_::TypeOf::technology technology{}; /// /// The nominal voltage of the battery pack (not per-cell) as defined by the vendor. /// E.g., a typical 22S LiCoO2 pack would usually report 81.4 V here. /// - _traits_::TypeOf::nominal_voltage nominal_voltage; + _traits_::TypeOf::nominal_voltage nominal_voltage{}; /// /// The approximate UNIX Epoch time when the battery was manufactured, zero if unknown. /// @@ -809,11 +834,10 @@ inline nunavut::support::SerializeResult deserialize(Parameters_0_3& obj, obj.name.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.name.push_back(); - obj.name[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.name.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/reg/udral/service/battery/Status_0_2.hpp b/src/types/reg/udral/service/battery/Status_0_2.hpp index ff030c8f..fd13246a 100644 --- a/src/types/reg/udral/service/battery/Status_0_2.hpp +++ b/src/types/reg/udral/service/battery/Status_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl -// Generated at: 2023-03-10 05:17:54.670363 UTC +// Generated at: 2024-01-12 03:09:36.011438 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.battery.Status @@ -21,30 +21,33 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_BATTERY_STATUS_0_2_HPP_INCLUDED #define REG_UDRAL_SERVICE_BATTERY_STATUS_0_2_HPP_INCLUDED #include -#include #include #include #include @@ -52,6 +55,7 @@ #include #include #include +#include namespace reg { @@ -92,22 +96,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/battery/Status.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -143,6 +167,7 @@ struct Status_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 526UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct Status_0_2 final using temperature_min_max = std::array; using available_charge = uavcan::si::unit::electric_charge::Scalar_1_0; using _error = reg::udral::service::battery::Error_0_1; - using cell_voltages = nunavut::support::VariableLengthArray; + using cell_voltages = std::vector; }; }; @@ -181,7 +206,7 @@ struct Status_0_2 final /// damage. /// If the adaptive protection is not supported, the battery should always report its status as ENGAGED. /// - _traits_::TypeOf::heartbeat heartbeat; + _traits_::TypeOf::heartbeat heartbeat{}; /// /// The minimum and maximum readings of the pack temperature sensors. /// For example, if the pack is equipped with three distributed temperature sensors that read {288, 258.15, 360.5} @@ -198,9 +223,9 @@ struct Status_0_2 final /// The depth of discharge (DoD), or the state of charge (SoC), can be derived by dividing this value by the /// nominal battery capacity reported in the Parameters message. /// - _traits_::TypeOf::available_charge available_charge; + _traits_::TypeOf::available_charge available_charge{}; - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; /// /// [volt] /// The voltages of individual cells in the battery pack. @@ -422,11 +447,10 @@ inline nunavut::support::SerializeResult deserialize(Status_0_2& obj, obj.cell_voltages.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.cell_voltages.push_back(); - obj.cell_voltages[_index5_] = in_buffer.getF16(); + float _tmp0_ = float(); + _tmp0_ = in_buffer.getF16(); in_buffer.add_offset(16U); + obj.cell_voltages.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/reg/udral/service/battery/Technology_0_1.hpp b/src/types/reg/udral/service/battery/Technology_0_1.hpp index e4e665c3..c1e6b3ad 100644 --- a/src/types/reg/udral/service/battery/Technology_0_1.hpp +++ b/src/types/reg/udral/service/battery/Technology_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.675401 UTC +// Generated at: 2024-01-12 03:09:36.017419 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.battery.Technology @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_BATTERY_TECHNOLOGY_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/battery/Technology.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -141,6 +165,7 @@ struct Technology_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/battery/zX005FzX005F0_1.hpp b/src/types/reg/udral/service/battery/zX005FzX005F0_1.hpp index 0b187758..49cfb0a3 100644 --- a/src/types/reg/udral/service/battery/zX005FzX005F0_1.hpp +++ b/src/types/reg/udral/service/battery/zX005FzX005F0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.679514 UTC +// Generated at: 2024-01-12 03:09:36.022285 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.battery._ @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_BATTERY___0_1_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/battery/_.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -183,7 +207,9 @@ struct zX005FzX005F0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const zX005FzX005F0_1& obj, diff --git a/src/types/reg/udral/service/common/Heartbeat_0_1.hpp b/src/types/reg/udral/service/common/Heartbeat_0_1.hpp index 06b94e58..a92d3d37 100644 --- a/src/types/reg/udral/service/common/Heartbeat_0_1.hpp +++ b/src/types/reg/udral/service/common/Heartbeat_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.650309 UTC +// Generated at: 2024-01-12 03:09:36.029084 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.common.Heartbeat @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_COMMON_HEARTBEAT_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/common/Heartbeat.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -145,6 +169,7 @@ struct Heartbeat_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -166,9 +191,9 @@ struct Heartbeat_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::readiness readiness; + _traits_::TypeOf::readiness readiness{}; - _traits_::TypeOf::health health; + _traits_::TypeOf::health health{}; }; inline nunavut::support::SerializeResult serialize(const Heartbeat_0_1& obj, diff --git a/src/types/reg/udral/service/common/Readiness_0_1.hpp b/src/types/reg/udral/service/common/Readiness_0_1.hpp index f588c340..6b811537 100644 --- a/src/types/reg/udral/service/common/Readiness_0_1.hpp +++ b/src/types/reg/udral/service/common/Readiness_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.653644 UTC +// Generated at: 2024-01-12 03:09:36.032794 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.common.Readiness @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_COMMON_READINESS_0_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/common/Readiness.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -163,6 +187,7 @@ struct Readiness_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/reg/udral/service/sensor/Status_0_1.hpp b/src/types/reg/udral/service/sensor/Status_0_1.hpp index a5988060..55e2557b 100644 --- a/src/types/reg/udral/service/sensor/Status_0_1.hpp +++ b/src/types/reg/udral/service/sensor/Status_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl -// Generated at: 2023-03-10 05:17:54.720209 UTC +// Generated at: 2024-01-12 03:09:36.025247 UTC // Is deprecated: no // Fixed port-ID: None // Full name: reg.udral.service.sensor.Status @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef REG_UDRAL_SERVICE_SENSOR_STATUS_0_1_HPP_INCLUDED @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/reg/udral/service/sensor/Status.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct Status_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -164,7 +189,7 @@ struct Status_0_1 final /// Data samples obtained at time Ts are valid at time Tr if: (Tr - Ts) < data_validity_period /// Expired data should be discarded. /// - _traits_::TypeOf::data_validity_period data_validity_period; + _traits_::TypeOf::data_validity_period data_validity_period{}; /// /// Incremented once per occurrence. Reset to zero when the sensor is ENGAGED. /// The exact definition of what constitutes an error is implementation-dependent. @@ -176,7 +201,7 @@ struct Status_0_1 final /// the reduction is implementation-defined. /// In a later revision this field may be moved into a separate type. /// - _traits_::TypeOf::sensor_temperature sensor_temperature; + _traits_::TypeOf::sensor_temperature sensor_temperature{}; }; inline nunavut::support::SerializeResult serialize(const Status_0_1& obj, diff --git a/src/types/uavcan/_register/Access_1_0.hpp b/src/types/uavcan/_register/Access_1_0.hpp index c43009a2..574d7dd9 100644 --- a/src/types/uavcan/_register/Access_1_0.hpp +++ b/src/types/uavcan/_register/Access_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.893140 UTC +// Generated at: 2024-01-12 03:09:34.914880 UTC // Is deprecated: no // Fixed port-ID: 384 // Full name: uavcan.register.Access @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_REGISTER_ACCESS_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/register/384.Access.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -340,6 +364,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 515UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -355,11 +380,11 @@ struct Request_1_0 final /// The name of the accessed register. Shall not be empty. /// Use the List service to obtain the list of registers on the node. /// - _traits_::TypeOf::name name; + _traits_::TypeOf::name name{}; /// /// Value to be written. Empty if no write is required. /// - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_0& obj, @@ -485,6 +510,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 267UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -502,7 +528,7 @@ struct Response_1_0 final /// The moment of time when the register was read (not written). /// Zero if the server does not support timestamping. /// - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; /// /// Mutable means that the register can be written using this service. /// Immutable registers cannot be written, but that doesn't imply that their values are constant (unchanging). @@ -534,7 +560,7 @@ struct Response_1_0 final /// was written successfully, unless write was not requested. /// An empty value shall never be returned for an existing register. /// - _traits_::TypeOf::value value; + _traits_::TypeOf::value value{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_0& obj, diff --git a/src/types/uavcan/_register/List_1_0.hpp b/src/types/uavcan/_register/List_1_0.hpp index 3a13a9d6..8c47880e 100644 --- a/src/types/uavcan/_register/List_1_0.hpp +++ b/src/types/uavcan/_register/List_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.902284 UTC +// Generated at: 2024-01-12 03:09:34.925384 UTC // Is deprecated: no // Fixed port-ID: 385 // Full name: uavcan.register.List @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_REGISTER_LIST_1_0_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/register/385.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,6 +166,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -225,6 +250,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 256UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -238,7 +264,7 @@ struct Response_1_0 final /// /// Empty name in response means that the index is out of bounds, i.e., discovery is finished. /// - _traits_::TypeOf::name name; + _traits_::TypeOf::name name{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_0& obj, diff --git a/src/types/uavcan/_register/Name_1_0.hpp b/src/types/uavcan/_register/Name_1_0.hpp index 85756f57..f95a86fe 100644 --- a/src/types/uavcan/_register/Name_1_0.hpp +++ b/src/types/uavcan/_register/Name_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.905411 UTC +// Generated at: 2024-01-12 03:09:34.929177 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.register.Name @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_REGISTER_NAME_1_0_HPP_INCLUDED #define UAVCAN_REGISTER_NAME_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/register/Name.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Name_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 256UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using name = nunavut::support::VariableLengthArray; + using name = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Name_1_0& obj, obj.name.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.name.push_back(); - obj.name[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.name.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/_register/Value_1_0.hpp b/src/types/uavcan/_register/Value_1_0.hpp index e8d86d3d..16fdec60 100644 --- a/src/types/uavcan/_register/Value_1_0.hpp +++ b/src/types/uavcan/_register/Value_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.907656 UTC +// Generated at: 2024-01-12 03:09:34.931925 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.register.Value @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_REGISTER_VALUE_1_0_HPP_INCLUDED @@ -98,22 +102,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/register/Value.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -150,6 +174,7 @@ struct Value_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 259UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -170,6 +195,7 @@ struct Value_1_0 final using real16 = uavcan::primitive::array::Real16_1_0; }; }; + class VariantType final : public std::variant< /// /// Tag 0 Used to represent an undefined value diff --git a/src/types/uavcan/diagnostic/Record_1_0.hpp b/src/types/uavcan/diagnostic/Record_1_0.hpp index 751139f4..4ca62049 100644 --- a/src/types/uavcan/diagnostic/Record_1_0.hpp +++ b/src/types/uavcan/diagnostic/Record_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.426364 UTC +// Generated at: 2024-01-12 03:09:34.765061 UTC // Is deprecated: yes // Fixed port-ID: 8184 // Full name: uavcan.diagnostic.Record @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,11 +56,11 @@ #define UAVCAN_DIAGNOSTIC_RECORD_1_0_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -124,8 +148,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// Generic human-readable text message for logging and displaying purposes. /// Generally, it should be published at the lowest priority level. /// -[[deprecated("uavcan.diagnostic.Record.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Record_1_0 final +struct [[deprecated("uavcan.diagnostic.Record.1.0 is reaching the end of its life; there may be a newer version available")]]Record_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -145,12 +168,13 @@ struct Record_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 121UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using timestamp = uavcan::time::SynchronizedTimestamp_1_0; using severity = uavcan::diagnostic::Severity_1_0; - using text = nunavut::support::VariableLengthArray; + using text = std::vector; }; }; @@ -161,9 +185,9 @@ struct Record_1_0 final /// Optional timestamp in the network-synchronized time system; zero if undefined. /// The timestamp value conveys the exact moment when the reported event took place. /// - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::severity severity; + _traits_::TypeOf::severity severity{}; /// /// Message text. /// Normally, messages should be kept as short as possible, especially those of high severity. @@ -293,11 +317,10 @@ inline nunavut::support::SerializeResult deserialize(Record_1_0& obj, obj.text.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.text.push_back(); - obj.text[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.text.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/diagnostic/Record_1_1.hpp b/src/types/uavcan/diagnostic/Record_1_1.hpp index c939b440..9721d102 100644 --- a/src/types/uavcan/diagnostic/Record_1_1.hpp +++ b/src/types/uavcan/diagnostic/Record_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.330799 UTC +// Generated at: 2024-01-12 03:09:34.760844 UTC // Is deprecated: no // Fixed port-ID: 8184 // Full name: uavcan.diagnostic.Record @@ -21,34 +21,38 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_DIAGNOSTIC_RECORD_1_1_HPP_INCLUDED #define UAVCAN_DIAGNOSTIC_RECORD_1_1_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/diagnostic/8184.Record.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,12 +160,13 @@ struct Record_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 264UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using timestamp = uavcan::time::SynchronizedTimestamp_1_0; using severity = uavcan::diagnostic::Severity_1_0; - using text = nunavut::support::VariableLengthArray; + using text = std::vector; }; }; @@ -152,9 +177,9 @@ struct Record_1_1 final /// Optional timestamp in the network-synchronized time system; zero if undefined. /// The timestamp value conveys the exact moment when the reported event took place. /// - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::severity severity; + _traits_::TypeOf::severity severity{}; /// /// Message text. /// Normally, messages should be kept as short as possible, especially those of high severity. @@ -284,11 +309,10 @@ inline nunavut::support::SerializeResult deserialize(Record_1_1& obj, obj.text.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.text.push_back(); - obj.text[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.text.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/diagnostic/Severity_1_0.hpp b/src/types/uavcan/diagnostic/Severity_1_0.hpp index 32ff1c21..5ed2c3e0 100644 --- a/src/types/uavcan/diagnostic/Severity_1_0.hpp +++ b/src/types/uavcan/diagnostic/Severity_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.429706 UTC +// Generated at: 2024-01-12 03:09:34.768861 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.diagnostic.Severity @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_DIAGNOSTIC_SEVERITY_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/diagnostic/Severity.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Severity_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/file/Error_1_0.hpp b/src/types/uavcan/file/Error_1_0.hpp index d9be7ebf..2c8dce2b 100644 --- a/src/types/uavcan/file/Error_1_0.hpp +++ b/src/types/uavcan/file/Error_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.481447 UTC +// Generated at: 2024-01-12 03:09:34.851537 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.file.Error @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_ERROR_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/Error.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Error_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/file/GetInfo_0_1.hpp b/src/types/uavcan/file/GetInfo_0_1.hpp index eac203ab..8d062784 100644 --- a/src/types/uavcan/file/GetInfo_0_1.hpp +++ b/src/types/uavcan/file/GetInfo_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.491631 UTC +// Generated at: 2024-01-12 03:09:34.861052 UTC // Is deprecated: yes // Fixed port-ID: 405 // Full name: uavcan.file.GetInfo @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -92,22 +96,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -125,8 +149,7 @@ namespace GetInfo /// /// Information about a remote file system entry (file, directory, etc). /// -[[deprecated("uavcan.file.GetInfo.Request.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Request_0_1 final +struct [[deprecated("uavcan.file.GetInfo.Request.0.1 is reaching the end of its life; there may be a newer version available")]]Request_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -148,6 +171,7 @@ struct Request_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 113UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -159,7 +183,7 @@ struct Request_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; }; inline nunavut::support::SerializeResult serialize(const Request_0_1& obj, @@ -227,8 +251,7 @@ inline nunavut::support::SerializeResult deserialize(Request_0_1& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.file.GetInfo.Response.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Response_0_1 final +struct [[deprecated("uavcan.file.GetInfo.Response.0.1 is reaching the end of its life; there may be a newer version available")]]Response_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -250,6 +273,7 @@ struct Response_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 13UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -269,7 +293,7 @@ struct Response_0_1 final /// /// Result of the operation. /// - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; /// /// File size in bytes. Should be set to zero for directories. /// diff --git a/src/types/uavcan/file/GetInfo_0_2.hpp b/src/types/uavcan/file/GetInfo_0_2.hpp index 3085f468..88b24867 100644 --- a/src/types/uavcan/file/GetInfo_0_2.hpp +++ b/src/types/uavcan/file/GetInfo_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.486484 UTC +// Generated at: 2024-01-12 03:09:34.854964 UTC // Is deprecated: no // Fixed port-ID: 405 // Full name: uavcan.file.GetInfo @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_GET_INFO_0_2_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/405.GetInfo.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Request_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 256UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -150,7 +175,7 @@ struct Request_0_2 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; }; inline nunavut::support::SerializeResult serialize(const Request_0_2& obj, @@ -240,6 +265,7 @@ struct Response_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 13UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -259,7 +285,7 @@ struct Response_0_2 final /// /// Result of the operation. /// - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; /// /// File size in bytes. Should be set to zero for directories. /// diff --git a/src/types/uavcan/file/List_0_1.hpp b/src/types/uavcan/file/List_0_1.hpp index 9e0ddca4..1db87aa1 100644 --- a/src/types/uavcan/file/List_0_1.hpp +++ b/src/types/uavcan/file/List_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.500802 UTC +// Generated at: 2024-01-12 03:09:34.871724 UTC // Is deprecated: yes // Fixed port-ID: 406 // Full name: uavcan.file.List @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -91,22 +95,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,8 +162,7 @@ namespace List /// that were listed earlier. The caller should handle that properly, either by ignoring the repeated items or by /// restarting the listing operation from the beginning (index 0). /// -[[deprecated("uavcan.file.List.Request.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Request_0_1 final +struct [[deprecated("uavcan.file.List.Request.0.1 is reaching the end of its life; there may be a newer version available")]]Request_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -161,6 +184,7 @@ struct Request_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 121UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -175,7 +199,7 @@ struct Request_0_1 final _traits_::TypeOf::entry_index entry_index{}; - _traits_::TypeOf::directory_path directory_path; + _traits_::TypeOf::directory_path directory_path{}; }; inline nunavut::support::SerializeResult serialize(const Request_0_1& obj, @@ -270,8 +294,7 @@ inline nunavut::support::SerializeResult deserialize(Request_0_1& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.file.List.Response.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Response_0_1 final +struct [[deprecated("uavcan.file.List.Response.0.1 is reaching the end of its life; there may be a newer version available")]]Response_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -293,6 +316,7 @@ struct Response_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 117UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -313,7 +337,7 @@ struct Response_0_1 final /// at the end is optional) at the index 0 will return "baz.bin". Listing the same directory at the index 1 (or any /// higher) will return an empty name "", indicating that the caller has reached the end of the list. /// - _traits_::TypeOf::entry_base_name entry_base_name; + _traits_::TypeOf::entry_base_name entry_base_name{}; }; inline nunavut::support::SerializeResult serialize(const Response_0_1& obj, diff --git a/src/types/uavcan/file/List_0_2.hpp b/src/types/uavcan/file/List_0_2.hpp index 0f9fc5c8..fffc87c1 100644 --- a/src/types/uavcan/file/List_0_2.hpp +++ b/src/types/uavcan/file/List_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.496472 UTC +// Generated at: 2024-01-12 03:09:34.866490 UTC // Is deprecated: no // Fixed port-ID: 406 // Full name: uavcan.file.List @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_LIST_0_2_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/406.List.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -152,6 +176,7 @@ struct Request_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 264UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -166,7 +191,7 @@ struct Request_0_2 final _traits_::TypeOf::entry_index entry_index{}; - _traits_::TypeOf::directory_path directory_path; + _traits_::TypeOf::directory_path directory_path{}; }; inline nunavut::support::SerializeResult serialize(const Request_0_2& obj, @@ -283,6 +308,7 @@ struct Response_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 260UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -303,7 +329,7 @@ struct Response_0_2 final /// at the end is optional) at the index 0 will return "baz.bin". Listing the same directory at the index 1 (or any /// higher) will return an empty name "", indicating that the caller has reached the end of the list. /// - _traits_::TypeOf::entry_base_name entry_base_name; + _traits_::TypeOf::entry_base_name entry_base_name{}; }; inline nunavut::support::SerializeResult serialize(const Response_0_2& obj, diff --git a/src/types/uavcan/file/Modify_1_0.hpp b/src/types/uavcan/file/Modify_1_0.hpp index 18588919..5b353fe7 100644 --- a/src/types/uavcan/file/Modify_1_0.hpp +++ b/src/types/uavcan/file/Modify_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.509719 UTC +// Generated at: 2024-01-12 03:09:34.882548 UTC // Is deprecated: yes // Fixed port-ID: 407 // Full name: uavcan.file.Modify @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -91,22 +95,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -156,8 +180,7 @@ namespace Modify /// Fails if the path does not exist. /// Flags are ignored. /// -[[deprecated("uavcan.file.Modify.Request.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Request_1_0 final +struct [[deprecated("uavcan.file.Modify.Request.1.0 is reaching the end of its life; there may be a newer version available")]]Request_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -179,6 +202,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 230UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -201,9 +225,9 @@ struct Request_1_0 final /// _traits_::TypeOf::overwrite_destination overwrite_destination{}; - _traits_::TypeOf::source source; + _traits_::TypeOf::source source{}; - _traits_::TypeOf::destination destination; + _traits_::TypeOf::destination destination{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_0& obj, @@ -343,8 +367,7 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.file.Modify.Response.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Response_1_0 final +struct [[deprecated("uavcan.file.Modify.Response.1.0 is reaching the end of its life; there may be a newer version available")]]Response_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -366,6 +389,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -377,7 +401,7 @@ struct Response_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_0& obj, diff --git a/src/types/uavcan/file/Modify_1_1.hpp b/src/types/uavcan/file/Modify_1_1.hpp index bb1a6d2b..76ca5290 100644 --- a/src/types/uavcan/file/Modify_1_1.hpp +++ b/src/types/uavcan/file/Modify_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.504957 UTC +// Generated at: 2024-01-12 03:09:34.876755 UTC // Is deprecated: no // Fixed port-ID: 407 // Full name: uavcan.file.Modify @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_MODIFY_1_1_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/407.Modify.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -170,6 +194,7 @@ struct Request_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 516UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -192,9 +217,9 @@ struct Request_1_1 final /// _traits_::TypeOf::overwrite_destination overwrite_destination{}; - _traits_::TypeOf::source source; + _traits_::TypeOf::source source{}; - _traits_::TypeOf::destination destination; + _traits_::TypeOf::destination destination{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_1& obj, @@ -356,6 +381,7 @@ struct Response_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -367,7 +393,7 @@ struct Response_1_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_1& obj, diff --git a/src/types/uavcan/file/Path_1_0.hpp b/src/types/uavcan/file/Path_1_0.hpp index 5336140f..cf449aa1 100644 --- a/src/types/uavcan/file/Path_1_0.hpp +++ b/src/types/uavcan/file/Path_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.516879 UTC +// Generated at: 2024-01-12 03:09:34.891245 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.file.Path @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,9 +56,9 @@ #define UAVCAN_FILE_PATH_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -91,22 +95,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/Path.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -131,8 +155,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// the worst-case transfer length. The limit is 112 bytes, which allows all transfers containing a single instance /// of path and no other large data chunks to fit into two CAN FD frames. /// -[[deprecated("uavcan.file.Path.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Path_1_0 final +struct [[deprecated("uavcan.file.Path.1.0 is reaching the end of its life; there may be a newer version available")]]Path_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -153,10 +176,11 @@ struct Path_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 113UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using path = nunavut::support::VariableLengthArray; + using path = std::vector; }; }; @@ -232,11 +256,10 @@ inline nunavut::support::SerializeResult deserialize(Path_1_0& obj, obj.path.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.path.push_back(); - obj.path[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.path.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/file/Path_2_0.hpp b/src/types/uavcan/file/Path_2_0.hpp index d926f957..2a93e490 100644 --- a/src/types/uavcan/file/Path_2_0.hpp +++ b/src/types/uavcan/file/Path_2_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl -// Generated at: 2023-03-10 05:17:53.514369 UTC +// Generated at: 2024-01-12 03:09:34.888117 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.file.Path @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_PATH_2_0_HPP_INCLUDED #define UAVCAN_FILE_PATH_2_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/Path.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,10 +164,11 @@ struct Path_2_0 final static constexpr std::size_t SerializationBufferSizeBytes = 256UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using path = nunavut::support::VariableLengthArray; + using path = std::vector; }; }; @@ -219,11 +244,10 @@ inline nunavut::support::SerializeResult deserialize(Path_2_0& obj, obj.path.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.path.push_back(); - obj.path[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.path.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/file/Read_1_0.hpp b/src/types/uavcan/file/Read_1_0.hpp index 6e1c10eb..b60dbf6f 100644 --- a/src/types/uavcan/file/Read_1_0.hpp +++ b/src/types/uavcan/file/Read_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.524006 UTC +// Generated at: 2024-01-12 03:09:34.899680 UTC // Is deprecated: yes // Fixed port-ID: 408 // Full name: uavcan.file.Read @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,11 +56,11 @@ #define UAVCAN_FILE_READ_1_0_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -153,8 +177,7 @@ namespace Read /// implementers are advised to use only SHA-256 for hashing, in order to reduce the number of fielded /// incompatible implementations. /// -[[deprecated("uavcan.file.Read.Request.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Request_1_0 final +struct [[deprecated("uavcan.file.Read.Request.1.0 is reaching the end of its life; there may be a newer version available")]]Request_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -176,6 +199,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 118UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -190,7 +214,7 @@ struct Request_1_0 final _traits_::TypeOf::offset offset{}; - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_0& obj, @@ -275,8 +299,7 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.file.Read.Response.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Response_1_0 final +struct [[deprecated("uavcan.file.Read.Response.1.0 is reaching the end of its life; there may be a newer version available")]]Response_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -298,11 +321,12 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 260UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using _error = uavcan::file::Error_1_0; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -310,7 +334,7 @@ struct Response_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; _traits_::TypeOf::data data{}; }; @@ -401,11 +425,10 @@ inline nunavut::support::SerializeResult deserialize(Response_1_0& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/file/Read_1_1.hpp b/src/types/uavcan/file/Read_1_1.hpp index a3ceaf07..0fba2cdb 100644 --- a/src/types/uavcan/file/Read_1_1.hpp +++ b/src/types/uavcan/file/Read_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.519370 UTC +// Generated at: 2024-01-12 03:09:34.894319 UTC // Is deprecated: no // Fixed port-ID: 408 // Full name: uavcan.file.Read @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_READ_1_1_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/408.Read.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -167,6 +191,7 @@ struct Request_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 261UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -181,7 +206,7 @@ struct Request_1_1 final _traits_::TypeOf::offset offset{}; - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_1& obj, @@ -288,6 +313,7 @@ struct Response_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 260UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -300,9 +326,9 @@ struct Response_1_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; - _traits_::TypeOf::data data; + _traits_::TypeOf::data data{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_1& obj, diff --git a/src/types/uavcan/file/Write_1_0.hpp b/src/types/uavcan/file/Write_1_0.hpp index 2481e0d0..0ea20ac5 100644 --- a/src/types/uavcan/file/Write_1_0.hpp +++ b/src/types/uavcan/file/Write_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.536554 UTC +// Generated at: 2024-01-12 03:09:34.909941 UTC // Is deprecated: yes // Fixed port-ID: 409 // Full name: uavcan.file.Write @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,11 +56,11 @@ #define UAVCAN_FILE_WRITE_1_0_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,8 +159,7 @@ namespace Write /// /// When the write operation is complete, the server shall truncate the resulting file past the specified offset. /// -[[deprecated("uavcan.file.Write.Request.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Request_1_0 final +struct [[deprecated("uavcan.file.Write.Request.1.0 is reaching the end of its life; there may be a newer version available")]]Request_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -158,12 +181,13 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 311UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using offset = std::uint64_t; using path = uavcan::file::Path_1_0; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -173,7 +197,7 @@ struct Request_1_0 final _traits_::TypeOf::offset offset{}; - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; /// /// 192 = 128 + 64; the write protocol permits usage of smaller chunks. /// @@ -283,11 +307,10 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -302,8 +325,7 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.file.Write.Response.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Response_1_0 final +struct [[deprecated("uavcan.file.Write.Response.1.0 is reaching the end of its life; there may be a newer version available")]]Response_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -325,6 +347,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -336,7 +359,7 @@ struct Response_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_0& obj, diff --git a/src/types/uavcan/file/Write_1_1.hpp b/src/types/uavcan/file/Write_1_1.hpp index 743407f0..891031d8 100644 --- a/src/types/uavcan/file/Write_1_1.hpp +++ b/src/types/uavcan/file/Write_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.532432 UTC +// Generated at: 2024-01-12 03:09:34.905111 UTC // Is deprecated: no // Fixed port-ID: 409 // Full name: uavcan.file.Write @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_FILE_WRITE_1_1_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/file/409.Write.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -149,6 +173,7 @@ struct Request_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 519UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -164,9 +189,9 @@ struct Request_1_1 final _traits_::TypeOf::offset offset{}; - _traits_::TypeOf::path path; + _traits_::TypeOf::path path{}; - _traits_::TypeOf::data data; + _traits_::TypeOf::data data{}; }; inline nunavut::support::SerializeResult serialize(const Request_1_1& obj, @@ -309,6 +334,7 @@ struct Response_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -320,7 +346,7 @@ struct Response_1_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::_error _error; + _traits_::TypeOf::_error _error{}; }; inline nunavut::support::SerializeResult serialize(const Response_1_1& obj, diff --git a/src/types/uavcan/internet/udp/HandleIncomingPacket_0_1.hpp b/src/types/uavcan/internet/udp/HandleIncomingPacket_0_1.hpp index b1dfee43..1f13e9ee 100644 --- a/src/types/uavcan/internet/udp/HandleIncomingPacket_0_1.hpp +++ b/src/types/uavcan/internet/udp/HandleIncomingPacket_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.560860 UTC +// Generated at: 2024-01-12 03:09:34.668713 UTC // Is deprecated: yes // Fixed port-ID: 500 // Full name: uavcan.internet.udp.HandleIncomingPacket @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,9 +56,9 @@ #define UAVCAN_INTERNET_UDP_HANDLE_INCOMING_PACKET_0_1_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_include == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -153,8 +177,7 @@ namespace HandleIncomingPacket /// this recommendation and resort to a fixed priority level instead. In the case of a fixed priority level, it is /// advised to use the lowest transfer priority level. /// -[[deprecated("uavcan.internet.udp.HandleIncomingPacket.Request.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Request_0_1 final +struct [[deprecated("uavcan.internet.udp.HandleIncomingPacket.Request.0.1 is reaching the end of its life; there may be a newer version available")]]Request_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -176,11 +199,12 @@ struct Request_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 313UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using session_id = std::uint16_t; - using payload = nunavut::support::VariableLengthArray; + using payload = std::vector; }; }; @@ -271,11 +295,10 @@ inline nunavut::support::SerializeResult deserialize(Request_0_1& obj, obj.payload.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.payload.push_back(); - obj.payload[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.payload.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -290,8 +313,7 @@ inline nunavut::support::SerializeResult deserialize(Request_0_1& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.internet.udp.HandleIncomingPacket.Response.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Response_0_1 final +struct [[deprecated("uavcan.internet.udp.HandleIncomingPacket.Response.0.1 is reaching the end of its life; there may be a newer version available")]]Response_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -313,7 +335,9 @@ struct Response_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Response_0_1& obj, diff --git a/src/types/uavcan/internet/udp/HandleIncomingPacket_0_2.hpp b/src/types/uavcan/internet/udp/HandleIncomingPacket_0_2.hpp index e7741146..8b459b74 100644 --- a/src/types/uavcan/internet/udp/HandleIncomingPacket_0_2.hpp +++ b/src/types/uavcan/internet/udp/HandleIncomingPacket_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.556727 UTC +// Generated at: 2024-01-12 03:09:34.544920 UTC // Is deprecated: no // Fixed port-ID: 500 // Full name: uavcan.internet.udp.HandleIncomingPacket @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_INTERNET_UDP_HANDLE_INCOMING_PACKET_0_2_HPP_INCLUDED #define UAVCAN_INTERNET_UDP_HANDLE_INCOMING_PACKET_0_2_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_include == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/internet/udp/500.HandleIncomingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -167,11 +191,12 @@ struct Request_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 512UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using session_id = std::uint16_t; - using payload = nunavut::support::VariableLengthArray; + using payload = std::vector; }; }; @@ -261,11 +286,10 @@ inline nunavut::support::SerializeResult deserialize(Request_0_2& obj, obj.payload.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.payload.push_back(); - obj.payload[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.payload.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -302,7 +326,9 @@ struct Response_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Response_0_2& obj, diff --git a/src/types/uavcan/internet/udp/OutgoingPacket_0_1.hpp b/src/types/uavcan/internet/udp/OutgoingPacket_0_1.hpp index 708d5751..f4d54b74 100644 --- a/src/types/uavcan/internet/udp/OutgoingPacket_0_1.hpp +++ b/src/types/uavcan/internet/udp/OutgoingPacket_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.571033 UTC +// Generated at: 2024-01-12 03:09:34.682660 UTC // Is deprecated: yes // Fixed port-ID: 8174 // Full name: uavcan.internet.udp.OutgoingPacket @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,9 +56,9 @@ #define UAVCAN_INTERNET_UDP_OUTGOING_PACKET_0_1_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -212,8 +236,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// unlikely to be practical because the latency and throughput limitations introduced by the on-board radio /// communication equipment are likely to vastly exceed those of the local CAN bus. /// -[[deprecated("uavcan.internet.udp.OutgoingPacket.0.1 is reaching the end of its life; there may be a newer version available")]] -struct OutgoingPacket_0_1 final +struct [[deprecated("uavcan.internet.udp.OutgoingPacket.0.1 is reaching the end of its life; there may be a newer version available")]]OutgoingPacket_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -233,15 +256,16 @@ struct OutgoingPacket_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 313UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using session_id = std::uint16_t; using destination_port = std::uint16_t; - using destination_address = nunavut::support::VariableLengthArray; + using destination_address = std::vector; using use_masquerading = bool; using use_dtls = bool; - using payload = nunavut::support::VariableLengthArray; + using payload = std::vector; }; }; @@ -427,11 +451,10 @@ inline nunavut::support::SerializeResult deserialize(OutgoingPacket_0_1& obj, obj.destination_address.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.destination_address.push_back(); - obj.destination_address[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.destination_address.push_back(std::move(_tmp0_)); } } // saturated bool use_masquerading @@ -454,11 +477,10 @@ inline nunavut::support::SerializeResult deserialize(OutgoingPacket_0_1& obj, obj.payload.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.payload.push_back(); - obj.payload[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.payload.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/internet/udp/OutgoingPacket_0_2.hpp b/src/types/uavcan/internet/udp/OutgoingPacket_0_2.hpp index b05b85a3..1eddcc5d 100644 --- a/src/types/uavcan/internet/udp/OutgoingPacket_0_2.hpp +++ b/src/types/uavcan/internet/udp/OutgoingPacket_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.564772 UTC +// Generated at: 2024-01-12 03:09:34.674125 UTC // Is deprecated: no // Fixed port-ID: 8174 // Full name: uavcan.internet.udp.OutgoingPacket @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_INTERNET_UDP_OUTGOING_PACKET_0_2_HPP_INCLUDED #define UAVCAN_INTERNET_UDP_OUTGOING_PACKET_0_2_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/internet/udp/8174.OutgoingPacket.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -224,15 +248,16 @@ struct OutgoingPacket_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 561UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using session_id = std::uint16_t; using destination_port = std::uint16_t; - using destination_address = nunavut::support::VariableLengthArray; + using destination_address = std::vector; using use_masquerading = bool; using use_dtls = bool; - using payload = nunavut::support::VariableLengthArray; + using payload = std::vector; }; }; @@ -417,11 +442,10 @@ inline nunavut::support::SerializeResult deserialize(OutgoingPacket_0_2& obj, obj.destination_address.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.destination_address.push_back(); - obj.destination_address[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.destination_address.push_back(std::move(_tmp0_)); } } // saturated bool use_masquerading @@ -444,11 +468,10 @@ inline nunavut::support::SerializeResult deserialize(OutgoingPacket_0_2& obj, obj.payload.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.payload.push_back(); - obj.payload[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.payload.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/can/ArbitrationID_0_1.hpp b/src/types/uavcan/metatransport/can/ArbitrationID_0_1.hpp index b2879141..38afc363 100644 --- a/src/types/uavcan/metatransport/can/ArbitrationID_0_1.hpp +++ b/src/types/uavcan/metatransport/can/ArbitrationID_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.451572 UTC +// Generated at: 2024-01-12 03:09:34.814514 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.ArbitrationID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_ARBITRATION_ID_0_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct ArbitrationID_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 5UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -145,6 +170,7 @@ struct ArbitrationID_0_1 final using extended = uavcan::metatransport::can::ExtendedArbitrationID_0_1; }; }; + class VariantType final : public std::variant< _traits_::TypeOf::base, diff --git a/src/types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp b/src/types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp index cf7493ab..0f005622 100644 --- a/src/types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp +++ b/src/types/uavcan/metatransport/can/BaseArbitrationID_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.456938 UTC +// Generated at: 2024-01-12 03:09:34.821244 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.BaseArbitrationID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_BASE_ARBITRATION_ID_0_1_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/BaseArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct BaseArbitrationID_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/metatransport/can/DataClassic_0_1.hpp b/src/types/uavcan/metatransport/can/DataClassic_0_1.hpp index 7e8c3a79..50a2c385 100644 --- a/src/types/uavcan/metatransport/can/DataClassic_0_1.hpp +++ b/src/types/uavcan/metatransport/can/DataClassic_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.459053 UTC +// Generated at: 2024-01-12 03:09:34.823844 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.DataClassic @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_DATA_CLASSIC_0_1_HPP_INCLUDED #define UAVCAN_METATRANSPORT_CAN_DATA_CLASSIC_0_1_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataClassic.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -137,11 +161,12 @@ struct DataClassic_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 14UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using arbitration_id = uavcan::metatransport::can::ArbitrationID_0_1; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -149,7 +174,7 @@ struct DataClassic_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::arbitration_id arbitration_id; + _traits_::TypeOf::arbitration_id arbitration_id{}; _traits_::TypeOf::data data{}; }; @@ -240,11 +265,10 @@ inline nunavut::support::SerializeResult deserialize(DataClassic_0_1& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/can/DataFD_0_1.hpp b/src/types/uavcan/metatransport/can/DataFD_0_1.hpp index 2621d60e..114f2b7c 100644 --- a/src/types/uavcan/metatransport/can/DataFD_0_1.hpp +++ b/src/types/uavcan/metatransport/can/DataFD_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.461802 UTC +// Generated at: 2024-01-12 03:09:34.827234 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.DataFD @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_DATA_FD_0_1_HPP_INCLUDED #define UAVCAN_METATRANSPORT_CAN_DATA_FD_0_1_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/DataFD.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -137,11 +161,12 @@ struct DataFD_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 70UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using arbitration_id = uavcan::metatransport::can::ArbitrationID_0_1; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -149,7 +174,7 @@ struct DataFD_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::arbitration_id arbitration_id; + _traits_::TypeOf::arbitration_id arbitration_id{}; _traits_::TypeOf::data data{}; }; @@ -240,11 +265,10 @@ inline nunavut::support::SerializeResult deserialize(DataFD_0_1& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/can/Error_0_1.hpp b/src/types/uavcan/metatransport/can/Error_0_1.hpp index c16160bb..1c07992c 100644 --- a/src/types/uavcan/metatransport/can/Error_0_1.hpp +++ b/src/types/uavcan/metatransport/can/Error_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.464479 UTC +// Generated at: 2024-01-12 03:09:34.830519 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.Error @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_ERROR_0_1_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Error.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,7 +158,9 @@ struct Error_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Error_0_1& obj, diff --git a/src/types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp b/src/types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp index d37ec218..d17744db 100644 --- a/src/types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp +++ b/src/types/uavcan/metatransport/can/ExtendedArbitrationID_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.466388 UTC +// Generated at: 2024-01-12 03:09:34.832948 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.ExtendedArbitrationID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_EXTENDED_ARBITRATION_ID_0_1_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/ExtendedArbitrationID.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct ExtendedArbitrationID_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/metatransport/can/Frame_0_1.hpp b/src/types/uavcan/metatransport/can/Frame_0_1.hpp index 4c4d92f1..bce93d7f 100644 --- a/src/types/uavcan/metatransport/can/Frame_0_1.hpp +++ b/src/types/uavcan/metatransport/can/Frame_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.472651 UTC +// Generated at: 2024-01-12 03:09:34.840643 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.metatransport.can.Frame @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -123,8 +147,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// /// CAN 2.0 or CAN FD frame representation. This is the top-level data type in its namespace. /// -[[deprecated("uavcan.metatransport.can.Frame.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Frame_0_1 final +struct [[deprecated("uavcan.metatransport.can.Frame.0.1 is reaching the end of its life; there may be a newer version available")]]Frame_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -145,6 +168,7 @@ struct Frame_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 78UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -157,9 +181,9 @@ struct Frame_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::manifestation manifestation; + _traits_::TypeOf::manifestation manifestation{}; }; inline nunavut::support::SerializeResult serialize(const Frame_0_1& obj, diff --git a/src/types/uavcan/metatransport/can/Frame_0_2.hpp b/src/types/uavcan/metatransport/can/Frame_0_2.hpp index 07e5f352..7e5c9a5c 100644 --- a/src/types/uavcan/metatransport/can/Frame_0_2.hpp +++ b/src/types/uavcan/metatransport/can/Frame_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.468481 UTC +// Generated at: 2024-01-12 03:09:34.835512 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.Frame @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_FRAME_0_2_HPP_INCLUDED @@ -89,22 +93,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Frame.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,6 +164,7 @@ struct Frame_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 71UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -149,6 +174,7 @@ struct Frame_0_2 final using remote_transmission_request = uavcan::metatransport::can::RTR_0_1; }; }; + class VariantType final : public std::variant< /// /// CAN error (intentional or disturbance) diff --git a/src/types/uavcan/metatransport/can/Manifestation_0_1.hpp b/src/types/uavcan/metatransport/can/Manifestation_0_1.hpp index 2fceb58a..d80474ea 100644 --- a/src/types/uavcan/metatransport/can/Manifestation_0_1.hpp +++ b/src/types/uavcan/metatransport/can/Manifestation_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.475409 UTC +// Generated at: 2024-01-12 03:09:34.844052 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.metatransport.can.Manifestation @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -97,22 +101,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/Manifestation.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -127,8 +151,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// /// CAN frame properties that can be manifested on the bus. /// -[[deprecated("uavcan.metatransport.can.Manifestation.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Manifestation_0_1 final +struct [[deprecated("uavcan.metatransport.can.Manifestation.0.1 is reaching the end of its life; there may be a newer version available")]]Manifestation_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -149,6 +172,7 @@ struct Manifestation_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 71UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -158,6 +182,7 @@ struct Manifestation_0_1 final using remote_transmission_request = uavcan::metatransport::can::RTR_0_1; }; }; + class VariantType final : public std::variant< /// /// CAN error (intentional or disturbance) diff --git a/src/types/uavcan/metatransport/can/RTR_0_1.hpp b/src/types/uavcan/metatransport/can/RTR_0_1.hpp index 3a5b9dcf..84a70dec 100644 --- a/src/types/uavcan/metatransport/can/RTR_0_1.hpp +++ b/src/types/uavcan/metatransport/can/RTR_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.479335 UTC +// Generated at: 2024-01-12 03:09:34.848903 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.can.RTR @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_CAN_RTR_0_1_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/can/RTR.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct RTR_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 5UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -146,7 +171,7 @@ struct RTR_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::arbitration_id arbitration_id; + _traits_::TypeOf::arbitration_id arbitration_id{}; }; inline nunavut::support::SerializeResult serialize(const RTR_0_1& obj, diff --git a/src/types/uavcan/metatransport/ethernet/EtherType_0_1.hpp b/src/types/uavcan/metatransport/ethernet/EtherType_0_1.hpp index beeb5932..c30b77d9 100644 --- a/src/types/uavcan/metatransport/ethernet/EtherType_0_1.hpp +++ b/src/types/uavcan/metatransport/ethernet/EtherType_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.432960 UTC +// Generated at: 2024-01-12 03:09:34.798760 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.ethernet.EtherType @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_ETHERNET_ETHER_TYPE_0_1_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/EtherType.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct EtherType_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/metatransport/ethernet/Frame_0_1.hpp b/src/types/uavcan/metatransport/ethernet/Frame_0_1.hpp index 1ec64a76..b215dfc1 100644 --- a/src/types/uavcan/metatransport/ethernet/Frame_0_1.hpp +++ b/src/types/uavcan/metatransport/ethernet/Frame_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.435370 UTC +// Generated at: 2024-01-12 03:09:34.801651 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.ethernet.Frame @@ -21,34 +21,38 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_ETHERNET_FRAME_0_1_HPP_INCLUDED #define UAVCAN_METATRANSPORT_ETHERNET_FRAME_0_1_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/ethernet/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,13 +163,14 @@ struct Frame_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 9232UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using destination = std::array; using source = std::array; using ethertype = uavcan::metatransport::ethernet::EtherType_0_1; - using payload = nunavut::support::VariableLengthArray; + using payload = std::vector; }; }; @@ -157,7 +182,7 @@ struct Frame_0_1 final _traits_::TypeOf::source source{}; - _traits_::TypeOf::ethertype ethertype; + _traits_::TypeOf::ethertype ethertype{}; /// /// Supports conventional jumbo frames (up to 9 KiB). /// @@ -297,11 +322,10 @@ inline nunavut::support::SerializeResult deserialize(Frame_0_1& obj, obj.payload.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.payload.push_back(); - obj.payload[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.payload.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/serial/Fragment_0_1.hpp b/src/types/uavcan/metatransport/serial/Fragment_0_1.hpp index 5c75baf9..8f716e20 100644 --- a/src/types/uavcan/metatransport/serial/Fragment_0_1.hpp +++ b/src/types/uavcan/metatransport/serial/Fragment_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.441586 UTC +// Generated at: 2024-01-12 03:09:34.795444 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.metatransport.serial.Fragment @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,10 +56,10 @@ #define UAVCAN_METATRANSPORT_SERIAL_FRAGMENT_0_1_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -94,22 +98,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -125,8 +149,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// A chunk of raw bytes exchanged over a serial transport. Serial links do not support framing natively. /// The chunk may be of arbitrary size. /// -[[deprecated("uavcan.metatransport.serial.Fragment.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Fragment_0_1 final +struct [[deprecated("uavcan.metatransport.serial.Fragment.0.1 is reaching the end of its life; there may be a newer version available")]]Fragment_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -147,11 +170,12 @@ struct Fragment_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 265UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using timestamp = uavcan::time::SynchronizedTimestamp_1_0; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -165,7 +189,7 @@ struct Fragment_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::data data{}; }; @@ -256,11 +280,10 @@ inline nunavut::support::SerializeResult deserialize(Fragment_0_1& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/serial/Fragment_0_2.hpp b/src/types/uavcan/metatransport/serial/Fragment_0_2.hpp index 4ea1cf76..ba562598 100644 --- a/src/types/uavcan/metatransport/serial/Fragment_0_2.hpp +++ b/src/types/uavcan/metatransport/serial/Fragment_0_2.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl -// Generated at: 2023-03-10 05:17:53.439011 UTC +// Generated at: 2024-01-12 03:09:34.792192 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.metatransport.serial.Fragment @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_METATRANSPORT_SERIAL_FRAGMENT_0_2_HPP_INCLUDED #define UAVCAN_METATRANSPORT_SERIAL_FRAGMENT_0_2_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/serial/Fragment.0.2.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,10 +164,11 @@ struct Fragment_0_2 final static constexpr std::size_t SerializationBufferSizeBytes = 2050UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -217,11 +242,10 @@ inline nunavut::support::SerializeResult deserialize(Fragment_0_2& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/metatransport/udp/Endpoint_0_1.hpp b/src/types/uavcan/metatransport/udp/Endpoint_0_1.hpp index 9ef90cc2..ec5a1635 100644 --- a/src/types/uavcan/metatransport/udp/Endpoint_0_1.hpp +++ b/src/types/uavcan/metatransport/udp/Endpoint_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.444281 UTC +// Generated at: 2024-01-12 03:09:34.805937 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.metatransport.udp.Endpoint @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Endpoint.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -123,8 +147,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// /// A UDP/IP endpoint address specification. /// -[[deprecated("uavcan.metatransport.udp.Endpoint.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Endpoint_0_1 final +struct [[deprecated("uavcan.metatransport.udp.Endpoint.0.1 is reaching the end of its life; there may be a newer version available")]]Endpoint_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -145,6 +168,7 @@ struct Endpoint_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 32UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/metatransport/udp/Frame_0_1.hpp b/src/types/uavcan/metatransport/udp/Frame_0_1.hpp index 5184f316..488994f5 100644 --- a/src/types/uavcan/metatransport/udp/Frame_0_1.hpp +++ b/src/types/uavcan/metatransport/udp/Frame_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.447536 UTC +// Generated at: 2024-01-12 03:09:34.809678 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.metatransport.udp.Frame @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,11 +56,11 @@ #define UAVCAN_METATRANSPORT_UDP_FRAME_0_1_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -95,22 +99,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/metatransport/udp/Frame.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -126,8 +150,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// A generic UDP/IP frame. /// Jumboframes are supported in the interest of greater application compatibility. /// -[[deprecated("uavcan.metatransport.udp.Frame.0.1 is reaching the end of its life; there may be a newer version available")]] -struct Frame_0_1 final +struct [[deprecated("uavcan.metatransport.udp.Frame.0.1 is reaching the end of its life; there may be a newer version available")]]Frame_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -148,13 +171,14 @@ struct Frame_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 9262UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using timestamp = uavcan::time::SynchronizedTimestamp_1_0; using source = uavcan::metatransport::udp::Endpoint_0_1; using destination = uavcan::metatransport::udp::Endpoint_0_1; - using data = nunavut::support::VariableLengthArray; + using data = std::vector; }; }; @@ -170,11 +194,11 @@ struct Frame_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; - _traits_::TypeOf::source source; + _traits_::TypeOf::source source{}; - _traits_::TypeOf::destination destination; + _traits_::TypeOf::destination destination{}; _traits_::TypeOf::data data{}; }; @@ -346,11 +370,10 @@ inline nunavut::support::SerializeResult deserialize(Frame_0_1& obj, obj.data.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.data.push_back(); - obj.data[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.data.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/node/ExecuteCommand_1_0.hpp b/src/types/uavcan/node/ExecuteCommand_1_0.hpp index 6b80060f..00f98416 100644 --- a/src/types/uavcan/node/ExecuteCommand_1_0.hpp +++ b/src/types/uavcan/node/ExecuteCommand_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.835623 UTC +// Generated at: 2024-01-12 03:09:35.188052 UTC // Is deprecated: yes // Fixed port-ID: 435 // Full name: uavcan.node.ExecuteCommand @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,9 +56,9 @@ #define UAVCAN_NODE_EXECUTE_COMMAND_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -91,22 +95,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -125,8 +149,7 @@ namespace ExecuteCommand /// Instructs the server node to execute or commence execution of a simple predefined command. /// All standard commands are optional; i.e., not guaranteed to be supported by all nodes. /// -[[deprecated("uavcan.node.ExecuteCommand.Request.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Request_1_0 final +struct [[deprecated("uavcan.node.ExecuteCommand.Request.1.0 is reaching the end of its life; there may be a newer version available")]]Request_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -148,11 +171,12 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 115UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using command = std::uint16_t; - using parameter = nunavut::support::VariableLengthArray; + using parameter = std::vector; }; }; @@ -310,11 +334,10 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, obj.parameter.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.parameter.push_back(); - obj.parameter[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.parameter.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -329,8 +352,7 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.node.ExecuteCommand.Response.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Response_1_0 final +struct [[deprecated("uavcan.node.ExecuteCommand.Response.1.0 is reaching the end of its life; there may be a newer version available")]]Response_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -352,6 +374,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/ExecuteCommand_1_1.hpp b/src/types/uavcan/node/ExecuteCommand_1_1.hpp index 67e9558a..b8064309 100644 --- a/src/types/uavcan/node/ExecuteCommand_1_1.hpp +++ b/src/types/uavcan/node/ExecuteCommand_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.829863 UTC +// Generated at: 2024-01-12 03:09:35.181013 UTC // Is deprecated: no // Fixed port-ID: 435 // Full name: uavcan.node.ExecuteCommand @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_EXECUTE_COMMAND_1_1_HPP_INCLUDED #define UAVCAN_NODE_EXECUTE_COMMAND_1_1_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/435.ExecuteCommand.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,11 +163,12 @@ struct Request_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using command = std::uint16_t; - using parameter = nunavut::support::VariableLengthArray; + using parameter = std::vector; }; }; @@ -301,11 +326,10 @@ inline nunavut::support::SerializeResult deserialize(Request_1_1& obj, obj.parameter.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.parameter.push_back(); - obj.parameter[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.parameter.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -342,6 +366,7 @@ struct Response_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/GetInfo_1_0.hpp b/src/types/uavcan/node/GetInfo_1_0.hpp index e30e8f24..af5c0ae9 100644 --- a/src/types/uavcan/node/GetInfo_1_0.hpp +++ b/src/types/uavcan/node/GetInfo_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.840605 UTC +// Generated at: 2024-01-12 03:09:35.194109 UTC // Is deprecated: no // Fixed port-ID: 430 // Full name: uavcan.node.GetInfo @@ -21,34 +21,38 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_GET_INFO_1_0_HPP_INCLUDED #define UAVCAN_NODE_GET_INFO_1_0_HPP_INCLUDED #include -#include #include #include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_include == 0, + "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/430.GetInfo.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,7 +166,9 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Request_1_0& obj, @@ -190,6 +216,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 313UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -198,9 +225,9 @@ struct Response_1_0 final using software_version = uavcan::node::Version_1_0; using software_vcs_revision_id = std::uint64_t; using unique_id = std::array; - using name = nunavut::support::VariableLengthArray; - using software_image_crc = nunavut::support::VariableLengthArray; - using certificate_of_authenticity = nunavut::support::VariableLengthArray; + using name = std::vector; + using software_image_crc = std::vector; + using certificate_of_authenticity = std::vector; }; }; @@ -211,9 +238,9 @@ struct Response_1_0 final /// The Cyphal protocol version implemented on this node, both major and minor. /// Not to be changed while the node is running. /// - _traits_::TypeOf::protocol_version protocol_version; + _traits_::TypeOf::protocol_version protocol_version{}; - _traits_::TypeOf::hardware_version hardware_version; + _traits_::TypeOf::hardware_version hardware_version{}; /// /// The version information shall not be changed while the node is running. /// The correct hardware version shall be reported at all times, excepting software-only nodes, in which @@ -221,7 +248,7 @@ struct Response_1_0 final /// If the node is equipped with a Cyphal-capable bootloader, the bootloader should report the software /// version of the installed application, if there is any; if no application is found, zeros should be reported. /// - _traits_::TypeOf::software_version software_version; + _traits_::TypeOf::software_version software_version{}; /// /// A version control system (VCS) revision number or hash. Not to be changed while the node is running. /// For example, this field can be used for reporting the short git commit hash of the current @@ -501,11 +528,10 @@ inline nunavut::support::SerializeResult deserialize(Response_1_0& obj, obj.name.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.name.push_back(); - obj.name[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.name.push_back(std::move(_tmp0_)); } } // saturated uint64[<=1] software_image_crc @@ -520,11 +546,10 @@ inline nunavut::support::SerializeResult deserialize(Response_1_0& obj, obj.software_image_crc.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.software_image_crc.push_back(); - obj.software_image_crc[_index5_] = in_buffer.getU64(64U); + std::uint64_t _tmp0_ = std::uint64_t(); + _tmp0_ = in_buffer.getU64(64U); in_buffer.add_offset(64U); + obj.software_image_crc.push_back(std::move(_tmp0_)); } } // saturated uint8[<=222] certificate_of_authenticity @@ -539,11 +564,10 @@ inline nunavut::support::SerializeResult deserialize(Response_1_0& obj, obj.certificate_of_authenticity.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.certificate_of_authenticity.push_back(); - obj.certificate_of_authenticity[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.certificate_of_authenticity.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/node/GetTransportStatistics_0_1.hpp b/src/types/uavcan/node/GetTransportStatistics_0_1.hpp index 7f68b333..5f9a1326 100644 --- a/src/types/uavcan/node/GetTransportStatistics_0_1.hpp +++ b/src/types/uavcan/node/GetTransportStatistics_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.846936 UTC +// Generated at: 2024-01-12 03:09:35.201578 UTC // Is deprecated: no // Fixed port-ID: 434 // Full name: uavcan.node.GetTransportStatistics @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_GET_TRANSPORT_STATISTICS_0_1_HPP_INCLUDED #define UAVCAN_NODE_GET_TRANSPORT_STATISTICS_0_1_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_include == 0, + "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/434.GetTransportStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -140,7 +164,9 @@ struct Request_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Request_0_1& obj, @@ -188,11 +214,12 @@ struct Response_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 61UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using transfer_statistics = uavcan::node::IOStatistics_0_1; - using network_interface_statistics = nunavut::support::VariableLengthArray; + using network_interface_statistics = std::vector; }; }; @@ -212,7 +239,7 @@ struct Response_0_1 final /// the number of Cyphal transfers successfully sent, successfully received, and failed. /// The methods of error counting are implementation-defined. /// - _traits_::TypeOf::transfer_statistics transfer_statistics; + _traits_::TypeOf::transfer_statistics transfer_statistics{}; /// /// Network interface statistics, separate per interface. /// E.g., for a doubly redundant transport, this array would contain two elements, @@ -323,13 +350,11 @@ inline nunavut::support::SerializeResult deserialize(Response_0_1& obj, obj.network_interface_statistics.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.network_interface_statistics.push_back(); + uavcan::node::IOStatistics_0_1 _tmp0_ = uavcan::node::IOStatistics_0_1(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize(obj.network_interface_statistics[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -338,6 +363,7 @@ inline nunavut::support::SerializeResult deserialize(Response_0_1& obj, } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + obj.network_interface_statistics.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/node/Health_1_0.hpp b/src/types/uavcan/node/Health_1_0.hpp index 8bbee1fb..3cd56fdb 100644 --- a/src/types/uavcan/node/Health_1_0.hpp +++ b/src/types/uavcan/node/Health_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.850645 UTC +// Generated at: 2024-01-12 03:09:35.206219 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.Health @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_HEALTH_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/Health.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct Health_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/Heartbeat_1_0.hpp b/src/types/uavcan/node/Heartbeat_1_0.hpp index a57885df..281466c4 100644 --- a/src/types/uavcan/node/Heartbeat_1_0.hpp +++ b/src/types/uavcan/node/Heartbeat_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.853089 UTC +// Generated at: 2024-01-12 03:09:35.209284 UTC // Is deprecated: no // Fixed port-ID: 7509 // Full name: uavcan.node.Heartbeat @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_HEARTBEAT_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/7509.Heartbeat.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -143,6 +167,7 @@ struct Heartbeat_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 7UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -182,13 +207,13 @@ struct Heartbeat_1_0 final /// /// The abstract health status of this node. /// - _traits_::TypeOf::health health; + _traits_::TypeOf::health health{}; /// /// The abstract operating mode of the publishing node. /// This field indicates the general level of readiness that can be further elaborated on a per-activity basis /// using various specialized interfaces. /// - _traits_::TypeOf::mode mode; + _traits_::TypeOf::mode mode{}; /// /// Optional, vendor-specific node status code, e.g. a fault code or a status bitmask. /// diff --git a/src/types/uavcan/node/ID_1_0.hpp b/src/types/uavcan/node/ID_1_0.hpp index 6c516e0c..99a8b288 100644 --- a/src/types/uavcan/node/ID_1_0.hpp +++ b/src/types/uavcan/node/ID_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.856722 UTC +// Generated at: 2024-01-12 03:09:35.213710 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.ID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_ID_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct ID_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/IOStatistics_0_1.hpp b/src/types/uavcan/node/IOStatistics_0_1.hpp index 842a0451..57eb7a2a 100644 --- a/src/types/uavcan/node/IOStatistics_0_1.hpp +++ b/src/types/uavcan/node/IOStatistics_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.858674 UTC +// Generated at: 2024-01-12 03:09:35.216168 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.IOStatistics @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_IO_STATISTICS_0_1_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/IOStatistics.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -137,6 +161,7 @@ struct IOStatistics_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 15UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/Mode_1_0.hpp b/src/types/uavcan/node/Mode_1_0.hpp index 59d82787..3f4c33d9 100644 --- a/src/types/uavcan/node/Mode_1_0.hpp +++ b/src/types/uavcan/node/Mode_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.861236 UTC +// Generated at: 2024-01-12 03:09:35.219307 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.Mode @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_MODE_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/Mode.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Mode_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/Version_1_0.hpp b/src/types/uavcan/node/Version_1_0.hpp index 2ef55acb..e01170c4 100644 --- a/src/types/uavcan/node/Version_1_0.hpp +++ b/src/types/uavcan/node/Version_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.863577 UTC +// Generated at: 2024-01-12 03:09:35.222221 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.Version @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_VERSION_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/Version.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Version_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/port/ID_1_0.hpp b/src/types/uavcan/node/port/ID_1_0.hpp index 95fba7b8..ccf0ccb1 100644 --- a/src/types/uavcan/node/port/ID_1_0.hpp +++ b/src/types/uavcan/node/port/ID_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.865796 UTC +// Generated at: 2024-01-12 03:09:35.224998 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.port.ID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_ID_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/ID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct ID_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 3UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -146,6 +171,7 @@ struct ID_1_0 final using service_id = uavcan::node::port::ServiceID_1_0; }; }; + class VariantType final : public std::variant< _traits_::TypeOf::subject_id, diff --git a/src/types/uavcan/node/port/List_0_1.hpp b/src/types/uavcan/node/port/List_0_1.hpp index 2708b50c..f8a49ac8 100644 --- a/src/types/uavcan/node/port/List_0_1.hpp +++ b/src/types/uavcan/node/port/List_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.872975 UTC +// Generated at: 2024-01-12 03:09:35.233880 UTC // Is deprecated: yes // Fixed port-ID: 7510 // Full name: uavcan.node.port.List @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -94,22 +98,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,8 +157,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// - At the OPTIONAL priority level at least every MAX_PUBLICATION_PERIOD seconds. /// - At the OPTIONAL or SLOW priority level within MAX_PUBLICATION_PERIOD after the port configuration is changed. /// -[[deprecated("uavcan.node.port.List.0.1 is reaching the end of its life; there may be a newer version available")]] -struct List_0_1 final +struct [[deprecated("uavcan.node.port.List.0.1 is reaching the end of its life; there may be a newer version available")]]List_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -154,6 +177,7 @@ struct List_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 8466UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -177,13 +201,13 @@ struct List_0_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::publishers publishers; + _traits_::TypeOf::publishers publishers{}; - _traits_::TypeOf::subscribers subscribers; + _traits_::TypeOf::subscribers subscribers{}; - _traits_::TypeOf::clients clients; + _traits_::TypeOf::clients clients{}; - _traits_::TypeOf::servers servers; + _traits_::TypeOf::servers servers{}; }; inline nunavut::support::SerializeResult serialize(const List_0_1& obj, diff --git a/src/types/uavcan/node/port/List_1_0.hpp b/src/types/uavcan/node/port/List_1_0.hpp index 34fc2ca3..751960f4 100644 --- a/src/types/uavcan/node/port/List_1_0.hpp +++ b/src/types/uavcan/node/port/List_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.868853 UTC +// Generated at: 2024-01-12 03:09:35.228837 UTC // Is deprecated: no // Fixed port-ID: 7510 // Full name: uavcan.node.port.List @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_LIST_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/7510.List.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -145,6 +169,7 @@ struct List_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8466UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -168,13 +193,13 @@ struct List_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::publishers publishers; + _traits_::TypeOf::publishers publishers{}; - _traits_::TypeOf::subscribers subscribers; + _traits_::TypeOf::subscribers subscribers{}; - _traits_::TypeOf::clients clients; + _traits_::TypeOf::clients clients{}; - _traits_::TypeOf::servers servers; + _traits_::TypeOf::servers servers{}; }; inline nunavut::support::SerializeResult serialize(const List_1_0& obj, diff --git a/src/types/uavcan/node/port/ServiceIDList_0_1.hpp b/src/types/uavcan/node/port/ServiceIDList_0_1.hpp index 1c72ff74..2a184897 100644 --- a/src/types/uavcan/node/port/ServiceIDList_0_1.hpp +++ b/src/types/uavcan/node/port/ServiceIDList_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.881171 UTC +// Generated at: 2024-01-12 03:09:35.244156 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.node.port.ServiceIDList @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -125,8 +149,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// This is a trivial constant-size bitmask with some reserved space in case the range of service-ID is increased /// in a future revision of the protocol. /// -[[deprecated("uavcan.node.port.ServiceIDList.0.1 is reaching the end of its life; there may be a newer version available")]] -struct ServiceIDList_0_1 final +struct [[deprecated("uavcan.node.port.ServiceIDList.0.1 is reaching the end of its life; there may be a newer version available")]]ServiceIDList_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -147,6 +170,7 @@ struct ServiceIDList_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 64UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/port/ServiceIDList_1_0.hpp b/src/types/uavcan/node/port/ServiceIDList_1_0.hpp index c30dc99c..277254a9 100644 --- a/src/types/uavcan/node/port/ServiceIDList_1_0.hpp +++ b/src/types/uavcan/node/port/ServiceIDList_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.878892 UTC +// Generated at: 2024-01-12 03:09:35.241265 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.port.ServiceIDList @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_SERVICE_ID_LIST_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct ServiceIDList_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 64UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/port/ServiceID_1_0.hpp b/src/types/uavcan/node/port/ServiceID_1_0.hpp index ffd918da..32205c22 100644 --- a/src/types/uavcan/node/port/ServiceID_1_0.hpp +++ b/src/types/uavcan/node/port/ServiceID_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.876829 UTC +// Generated at: 2024-01-12 03:09:35.238660 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.port.ServiceID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_SERVICE_ID_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/ServiceID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct ServiceID_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/node/port/SubjectIDList_0_1.hpp b/src/types/uavcan/node/port/SubjectIDList_0_1.hpp index e872c2c4..bd80daed 100644 --- a/src/types/uavcan/node/port/SubjectIDList_0_1.hpp +++ b/src/types/uavcan/node/port/SubjectIDList_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.889313 UTC +// Generated at: 2024-01-12 03:09:35.254281 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.node.port.SubjectIDList @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -52,12 +56,12 @@ #define UAVCAN_NODE_PORT_SUBJECT_ID_LIST_0_1_HPP_INCLUDED #include -#include #include #include #include #include #include +#include namespace uavcan { @@ -96,22 +100,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -129,8 +153,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, /// resource-constrained systems. To address that, we provide two extra options: a simple variable-length list, /// and a special case that indicates that every subject-ID is in use. /// -[[deprecated("uavcan.node.port.SubjectIDList.0.1 is reaching the end of its life; there may be a newer version available")]] -struct SubjectIDList_0_1 final +struct [[deprecated("uavcan.node.port.SubjectIDList.0.1 is reaching the end of its life; there may be a newer version available")]]SubjectIDList_0_1 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -151,11 +174,12 @@ struct SubjectIDList_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1025UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using mask = std::bitset<8192>; - using sparse_list = nunavut::support::VariableLengthArray; + using sparse_list = std::vector; using total = uavcan::primitive::Empty_1_0; }; }; @@ -435,13 +459,11 @@ inline nunavut::support::SerializeResult deserialize(SubjectIDList_0_1& obj, (*_ptr1_).reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - (*_ptr1_).push_back(); + uavcan::node::port::SubjectID_1_0 _tmp0_ = uavcan::node::port::SubjectID_1_0(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize((*_ptr1_)[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -450,6 +472,7 @@ inline nunavut::support::SerializeResult deserialize(SubjectIDList_0_1& obj, } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + (*_ptr1_).push_back(std::move(_tmp0_)); } } } diff --git a/src/types/uavcan/node/port/SubjectIDList_1_0.hpp b/src/types/uavcan/node/port/SubjectIDList_1_0.hpp index e74ba816..b48f4f54 100644 --- a/src/types/uavcan/node/port/SubjectIDList_1_0.hpp +++ b/src/types/uavcan/node/port/SubjectIDList_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.885378 UTC +// Generated at: 2024-01-12 03:09:35.249429 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.port.SubjectIDList @@ -21,35 +21,39 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_SUBJECT_ID_LIST_1_0_HPP_INCLUDED #define UAVCAN_NODE_PORT_SUBJECT_ID_LIST_1_0_HPP_INCLUDED #include -#include #include #include #include #include #include +#include namespace uavcan { @@ -88,22 +92,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectIDList.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -142,11 +166,12 @@ struct SubjectIDList_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1025UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using mask = std::bitset<8192>; - using sparse_list = nunavut::support::VariableLengthArray; + using sparse_list = std::vector; using total = uavcan::primitive::Empty_1_0; }; }; @@ -426,13 +451,11 @@ inline nunavut::support::SerializeResult deserialize(SubjectIDList_1_0& obj, (*_ptr1_).reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - (*_ptr1_).push_back(); + uavcan::node::port::SubjectID_1_0 _tmp0_ = uavcan::node::port::SubjectID_1_0(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize((*_ptr1_)[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -441,6 +464,7 @@ inline nunavut::support::SerializeResult deserialize(SubjectIDList_1_0& obj, } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + (*_ptr1_).push_back(std::move(_tmp0_)); } } } diff --git a/src/types/uavcan/node/port/SubjectID_1_0.hpp b/src/types/uavcan/node/port/SubjectID_1_0.hpp index c3800269..3a637f9c 100644 --- a/src/types/uavcan/node/port/SubjectID_1_0.hpp +++ b/src/types/uavcan/node/port/SubjectID_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.883366 UTC +// Generated at: 2024-01-12 03:09:35.246892 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.node.port.SubjectID @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_NODE_PORT_SUBJECT_ID_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/node/port/SubjectID.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct SubjectID_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/pnp/NodeIDAllocationData_1_0.hpp b/src/types/uavcan/pnp/NodeIDAllocationData_1_0.hpp index fdcdd8b7..f12e4053 100644 --- a/src/types/uavcan/pnp/NodeIDAllocationData_1_0.hpp +++ b/src/types/uavcan/pnp/NodeIDAllocationData_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.753375 UTC +// Generated at: 2024-01-12 03:09:34.950356 UTC // Is deprecated: no // Fixed port-ID: 8166 // Full name: uavcan.pnp.NodeIDAllocationData @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_NODE_ID_ALLOCATION_DATA_1_0_HPP_INCLUDED #define UAVCAN_PNP_NODE_ID_ALLOCATION_DATA_1_0_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/8166.NodeIDAllocationData.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -183,11 +207,12 @@ struct NodeIDAllocationData_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 9UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using unique_id_hash = std::uint64_t; - using allocated_node_id = nunavut::support::VariableLengthArray; + using allocated_node_id = std::vector; }; }; @@ -287,13 +312,11 @@ inline nunavut::support::SerializeResult deserialize(NodeIDAllocationData_1_0& o obj.allocated_node_id.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.allocated_node_id.push_back(); + uavcan::node::ID_1_0 _tmp0_ = uavcan::node::ID_1_0(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize(obj.allocated_node_id[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -302,6 +325,7 @@ inline nunavut::support::SerializeResult deserialize(NodeIDAllocationData_1_0& o } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + obj.allocated_node_id.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/pnp/NodeIDAllocationData_2_0.hpp b/src/types/uavcan/pnp/NodeIDAllocationData_2_0.hpp index 3430d02a..d0e9c7ce 100644 --- a/src/types/uavcan/pnp/NodeIDAllocationData_2_0.hpp +++ b/src/types/uavcan/pnp/NodeIDAllocationData_2_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl -// Generated at: 2023-03-10 05:17:53.747239 UTC +// Generated at: 2024-01-12 03:09:34.942566 UTC // Is deprecated: no // Fixed port-ID: 8165 // Full name: uavcan.pnp.NodeIDAllocationData @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_NODE_ID_ALLOCATION_DATA_2_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/8165.NodeIDAllocationData.2.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -298,6 +322,7 @@ struct NodeIDAllocationData_2_0 final static constexpr std::size_t SerializationBufferSizeBytes = 18UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -321,7 +346,7 @@ struct NodeIDAllocationData_2_0 final /// If a free node-ID could not be found, the allocator will restart the search from the preferred node-ID /// downward, until a free node-ID is found. /// - _traits_::TypeOf::node_id node_id; + _traits_::TypeOf::node_id node_id{}; /// /// The unique-ID of the allocatee. This is the SAME value that is reported via uavcan.node.GetInfo. /// The value is subjected to the same set of constraints; e.g., it can't be changed while the node is running, diff --git a/src/types/uavcan/pnp/cluster/AppendEntries_1_0.hpp b/src/types/uavcan/pnp/cluster/AppendEntries_1_0.hpp index fea9cd5a..6863a689 100644 --- a/src/types/uavcan/pnp/cluster/AppendEntries_1_0.hpp +++ b/src/types/uavcan/pnp/cluster/AppendEntries_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.757079 UTC +// Generated at: 2024-01-12 03:09:34.954907 UTC // Is deprecated: no // Fixed port-ID: 390 // Full name: uavcan.pnp.cluster.AppendEntries @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_CLUSTER_APPEND_ENTRIES_1_0_HPP_INCLUDED #define UAVCAN_PNP_CLUSTER_APPEND_ENTRIES_1_0_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/390.AppendEntries.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -196,6 +220,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 35UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -203,7 +228,7 @@ struct Request_1_0 final using prev_log_term = std::uint32_t; using prev_log_index = std::uint16_t; using leader_commit = std::uint16_t; - using entries = nunavut::support::VariableLengthArray; + using entries = std::vector; }; }; @@ -377,13 +402,11 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, obj.entries.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.entries.push_back(); + uavcan::pnp::cluster::Entry_1_0 _tmp0_ = uavcan::pnp::cluster::Entry_1_0(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize(obj.entries[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -392,6 +415,7 @@ inline nunavut::support::SerializeResult deserialize(Request_1_0& obj, } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + obj.entries.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); @@ -428,6 +452,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 5UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/pnp/cluster/Discovery_1_0.hpp b/src/types/uavcan/pnp/cluster/Discovery_1_0.hpp index bf97517f..2fab8e95 100644 --- a/src/types/uavcan/pnp/cluster/Discovery_1_0.hpp +++ b/src/types/uavcan/pnp/cluster/Discovery_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.763632 UTC +// Generated at: 2024-01-12 03:09:34.962730 UTC // Is deprecated: no // Fixed port-ID: 8164 // Full name: uavcan.pnp.cluster.Discovery @@ -21,33 +21,37 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_CLUSTER_DISCOVERY_1_0_HPP_INCLUDED #define UAVCAN_PNP_CLUSTER_DISCOVERY_1_0_HPP_INCLUDED #include -#include #include #include #include +#include namespace uavcan { @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/8164.Discovery.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -143,11 +167,12 @@ struct Discovery_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; using configured_cluster_size = std::uint8_t; - using known_nodes = nunavut::support::VariableLengthArray; + using known_nodes = std::vector; }; }; @@ -275,13 +300,11 @@ inline nunavut::support::SerializeResult deserialize(Discovery_1_0& obj, obj.known_nodes.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.known_nodes.push_back(); + uavcan::node::ID_1_0 _tmp0_ = uavcan::node::ID_1_0(); { std::size_t _size_bytes1_ = in_buffer.size() / 8U; { - const auto _err1_ = deserialize(obj.known_nodes[_index5_], in_buffer.subspan()); + const auto _err1_ = deserialize(_tmp0_, in_buffer.subspan()); if(_err1_){ _size_bytes1_ = _err1_.value(); }else{ @@ -290,6 +313,7 @@ inline nunavut::support::SerializeResult deserialize(Discovery_1_0& obj, } in_buffer.add_offset(_size_bytes1_ * 8U); // Advance by the size of the nested serialized representation. } + obj.known_nodes.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/pnp/cluster/Entry_1_0.hpp b/src/types/uavcan/pnp/cluster/Entry_1_0.hpp index 54e32b74..74f6e361 100644 --- a/src/types/uavcan/pnp/cluster/Entry_1_0.hpp +++ b/src/types/uavcan/pnp/cluster/Entry_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.767095 UTC +// Generated at: 2024-01-12 03:09:34.966909 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.pnp.cluster.Entry @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_CLUSTER_ENTRY_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/Entry.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -138,6 +162,7 @@ struct Entry_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 22UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -161,7 +186,7 @@ struct Entry_1_0 final /// /// Node-ID of this allocation. /// - _traits_::TypeOf::node_id node_id; + _traits_::TypeOf::node_id node_id{}; }; inline nunavut::support::SerializeResult serialize(const Entry_1_0& obj, diff --git a/src/types/uavcan/pnp/cluster/RequestVote_1_0.hpp b/src/types/uavcan/pnp/cluster/RequestVote_1_0.hpp index 9124cf38..06c687f4 100644 --- a/src/types/uavcan/pnp/cluster/RequestVote_1_0.hpp +++ b/src/types/uavcan/pnp/cluster/RequestVote_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.769864 UTC +// Generated at: 2024-01-12 03:09:34.970230 UTC // Is deprecated: no // Fixed port-ID: 391 // Full name: uavcan.pnp.cluster.RequestVote @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PNP_CLUSTER_REQUEST_VOTE_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/pnp/cluster/391.RequestVote.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -139,6 +163,7 @@ struct Request_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 10UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -252,6 +277,7 @@ struct Response_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 5UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/Empty_1_0.hpp b/src/types/uavcan/primitive/Empty_1_0.hpp index 2f2d49f1..b2916128 100644 --- a/src/types/uavcan/primitive/Empty_1_0.hpp +++ b/src/types/uavcan/primitive/Empty_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.773559 UTC +// Generated at: 2024-01-12 03:09:34.689785 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.Empty @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_EMPTY_1_0_HPP_INCLUDED @@ -81,22 +85,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/Empty.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -130,7 +154,9 @@ struct Empty_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Empty_1_0& obj, diff --git a/src/types/uavcan/primitive/String_1_0.hpp b/src/types/uavcan/primitive/String_1_0.hpp index 6d22a3ff..d6e34d5a 100644 --- a/src/types/uavcan/primitive/String_1_0.hpp +++ b/src/types/uavcan/primitive/String_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.775168 UTC +// Generated at: 2024-01-12 03:09:34.691850 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.String @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_STRING_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_STRING_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/String.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,10 +159,11 @@ struct String_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -206,11 +231,10 @@ inline nunavut::support::SerializeResult deserialize(String_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/Unstructured_1_0.hpp b/src/types/uavcan/primitive/Unstructured_1_0.hpp index bd25f14e..c5661369 100644 --- a/src/types/uavcan/primitive/Unstructured_1_0.hpp +++ b/src/types/uavcan/primitive/Unstructured_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.777494 UTC +// Generated at: 2024-01-12 03:09:34.694769 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.Unstructured @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_UNSTRUCTURED_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_UNSTRUCTURED_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/Unstructured.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Unstructured_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Unstructured_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Bit_1_0.hpp b/src/types/uavcan/primitive/array/Bit_1_0.hpp index 1ffafedf..032a0319 100644 --- a/src/types/uavcan/primitive/array/Bit_1_0.hpp +++ b/src/types/uavcan/primitive/array/Bit_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.803234 UTC +// Generated at: 2024-01-12 03:09:34.727495 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Bit @@ -21,31 +21,35 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_BIT_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_BIT_1_0_HPP_INCLUDED #include -#include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,10 +159,11 @@ struct Bit_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Bit_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getBit(); + bool _tmp0_ = bool(); + _tmp0_ = in_buffer.getBit(); in_buffer.add_offset(1U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Integer16_1_0.hpp b/src/types/uavcan/primitive/array/Integer16_1_0.hpp index 8f84d7d9..e7ed750b 100644 --- a/src/types/uavcan/primitive/array/Integer16_1_0.hpp +++ b/src/types/uavcan/primitive/array/Integer16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.805495 UTC +// Generated at: 2024-01-12 03:09:34.730339 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Integer16 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_INTEGER16_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_INTEGER16_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Integer16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Integer16_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getI16(16U); + std::int16_t _tmp0_ = std::int16_t(); + _tmp0_ = in_buffer.getI16(16U); in_buffer.add_offset(16U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Integer32_1_0.hpp b/src/types/uavcan/primitive/array/Integer32_1_0.hpp index f9cf31b8..62cfbe66 100644 --- a/src/types/uavcan/primitive/array/Integer32_1_0.hpp +++ b/src/types/uavcan/primitive/array/Integer32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.807680 UTC +// Generated at: 2024-01-12 03:09:34.733104 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Integer32 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_INTEGER32_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_INTEGER32_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Integer32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Integer32_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getI32(32U); + std::int32_t _tmp0_ = std::int32_t(); + _tmp0_ = in_buffer.getI32(32U); in_buffer.add_offset(32U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Integer64_1_0.hpp b/src/types/uavcan/primitive/array/Integer64_1_0.hpp index 0e6bbbdc..2a84ddc5 100644 --- a/src/types/uavcan/primitive/array/Integer64_1_0.hpp +++ b/src/types/uavcan/primitive/array/Integer64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.809870 UTC +// Generated at: 2024-01-12 03:09:34.735829 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Integer64 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_INTEGER64_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_INTEGER64_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Integer64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Integer64_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getI64(64U); + std::int64_t _tmp0_ = std::int64_t(); + _tmp0_ = in_buffer.getI64(64U); in_buffer.add_offset(64U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Integer8_1_0.hpp b/src/types/uavcan/primitive/array/Integer8_1_0.hpp index e66b6163..decff6cb 100644 --- a/src/types/uavcan/primitive/array/Integer8_1_0.hpp +++ b/src/types/uavcan/primitive/array/Integer8_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.812053 UTC +// Generated at: 2024-01-12 03:09:34.738572 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Integer8 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_INTEGER8_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_INTEGER8_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Integer8_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Integer8_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getI8(8U); + std::int8_t _tmp0_ = std::int8_t(); + _tmp0_ = in_buffer.getI8(8U); in_buffer.add_offset(8U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Natural16_1_0.hpp b/src/types/uavcan/primitive/array/Natural16_1_0.hpp index df7c7456..3b6e083f 100644 --- a/src/types/uavcan/primitive/array/Natural16_1_0.hpp +++ b/src/types/uavcan/primitive/array/Natural16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.814252 UTC +// Generated at: 2024-01-12 03:09:34.741337 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Natural16 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_NATURAL16_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_NATURAL16_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Natural16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Natural16_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU16(16U); + std::uint16_t _tmp0_ = std::uint16_t(); + _tmp0_ = in_buffer.getU16(16U); in_buffer.add_offset(16U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Natural32_1_0.hpp b/src/types/uavcan/primitive/array/Natural32_1_0.hpp index 98f6f073..34960181 100644 --- a/src/types/uavcan/primitive/array/Natural32_1_0.hpp +++ b/src/types/uavcan/primitive/array/Natural32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.816539 UTC +// Generated at: 2024-01-12 03:09:34.744092 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Natural32 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_NATURAL32_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_NATURAL32_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Natural32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Natural32_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU32(32U); + std::uint32_t _tmp0_ = std::uint32_t(); + _tmp0_ = in_buffer.getU32(32U); in_buffer.add_offset(32U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Natural64_1_0.hpp b/src/types/uavcan/primitive/array/Natural64_1_0.hpp index 15917fb0..313e16d3 100644 --- a/src/types/uavcan/primitive/array/Natural64_1_0.hpp +++ b/src/types/uavcan/primitive/array/Natural64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.818737 UTC +// Generated at: 2024-01-12 03:09:34.746835 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Natural64 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_NATURAL64_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_NATURAL64_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Natural64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Natural64_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU64(64U); + std::uint64_t _tmp0_ = std::uint64_t(); + _tmp0_ = in_buffer.getU64(64U); in_buffer.add_offset(64U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Natural8_1_0.hpp b/src/types/uavcan/primitive/array/Natural8_1_0.hpp index 812ed992..30d3a5b2 100644 --- a/src/types/uavcan/primitive/array/Natural8_1_0.hpp +++ b/src/types/uavcan/primitive/array/Natural8_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.820920 UTC +// Generated at: 2024-01-12 03:09:34.749589 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Natural8 @@ -21,32 +21,36 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_NATURAL8_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_NATURAL8_1_0_HPP_INCLUDED #include -#include #include #include +#include namespace uavcan { @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,10 +158,11 @@ struct Natural8_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 258UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -205,11 +230,10 @@ inline nunavut::support::SerializeResult deserialize(Natural8_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getU8(8U); + std::uint8_t _tmp0_ = std::uint8_t(); + _tmp0_ = in_buffer.getU8(8U); in_buffer.add_offset(8U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Real16_1_0.hpp b/src/types/uavcan/primitive/array/Real16_1_0.hpp index 83a8ccae..b8e7796d 100644 --- a/src/types/uavcan/primitive/array/Real16_1_0.hpp +++ b/src/types/uavcan/primitive/array/Real16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.823111 UTC +// Generated at: 2024-01-12 03:09:34.752336 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Real16 @@ -21,31 +21,35 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_REAL16_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_REAL16_1_0_HPP_INCLUDED #include -#include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,10 +159,11 @@ struct Real16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -217,11 +242,10 @@ inline nunavut::support::SerializeResult deserialize(Real16_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getF16(); + float _tmp0_ = float(); + _tmp0_ = in_buffer.getF16(); in_buffer.add_offset(16U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Real32_1_0.hpp b/src/types/uavcan/primitive/array/Real32_1_0.hpp index 21c25ed2..504007fb 100644 --- a/src/types/uavcan/primitive/array/Real32_1_0.hpp +++ b/src/types/uavcan/primitive/array/Real32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.825412 UTC +// Generated at: 2024-01-12 03:09:34.755209 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Real32 @@ -21,31 +21,35 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_REAL32_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_REAL32_1_0_HPP_INCLUDED #include -#include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,10 +159,11 @@ struct Real32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -207,11 +232,10 @@ inline nunavut::support::SerializeResult deserialize(Real32_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getF32(); + float _tmp0_ = float(); + _tmp0_ = in_buffer.getF32(); in_buffer.add_offset(32U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/array/Real64_1_0.hpp b/src/types/uavcan/primitive/array/Real64_1_0.hpp index bf0ad2be..83f5c6b1 100644 --- a/src/types/uavcan/primitive/array/Real64_1_0.hpp +++ b/src/types/uavcan/primitive/array/Real64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.827621 UTC +// Generated at: 2024-01-12 03:09:34.758031 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.array.Real64 @@ -21,31 +21,35 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_ARRAY_REAL64_1_0_HPP_INCLUDED #define UAVCAN_PRIMITIVE_ARRAY_REAL64_1_0_HPP_INCLUDED #include -#include #include +#include namespace uavcan { @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/array/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,10 +159,11 @@ struct Real64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 257UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; - using value = nunavut::support::VariableLengthArray; + using value = std::vector; }; }; @@ -207,11 +232,10 @@ inline nunavut::support::SerializeResult deserialize(Real64_1_0& obj, obj.value.reserve(_size0_); for (std::size_t _index5_ = 0U; _index5_ < _size0_; ++_index5_) { - // TODO This is terribly inefficient. We need to completely refactor this template to use C++ emplace and - // move semantics instead of assuming C-style containers - obj.value.push_back(); - obj.value[_index5_] = in_buffer.getF64(); + double _tmp0_ = double(); + _tmp0_ = in_buffer.getF64(); in_buffer.add_offset(64U); + obj.value.push_back(std::move(_tmp0_)); } } in_buffer.align_offset_to<8U>(); diff --git a/src/types/uavcan/primitive/scalar/Bit_1_0.hpp b/src/types/uavcan/primitive/scalar/Bit_1_0.hpp index bc004114..c65e0beb 100644 --- a/src/types/uavcan/primitive/scalar/Bit_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Bit_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.779699 UTC +// Generated at: 2024-01-12 03:09:34.697644 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Bit @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_BIT_1_0_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Bit.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -132,6 +156,7 @@ struct Bit_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Integer16_1_0.hpp b/src/types/uavcan/primitive/scalar/Integer16_1_0.hpp index 5cd3f52c..902c6c67 100644 --- a/src/types/uavcan/primitive/scalar/Integer16_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Integer16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.781683 UTC +// Generated at: 2024-01-12 03:09:34.700165 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Integer16 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_INTEGER16_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Integer16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Integer32_1_0.hpp b/src/types/uavcan/primitive/scalar/Integer32_1_0.hpp index 81905eea..e56d6bf1 100644 --- a/src/types/uavcan/primitive/scalar/Integer32_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Integer32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.783636 UTC +// Generated at: 2024-01-12 03:09:34.702645 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Integer32 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_INTEGER32_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Integer32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Integer64_1_0.hpp b/src/types/uavcan/primitive/scalar/Integer64_1_0.hpp index ccda0630..10a9350c 100644 --- a/src/types/uavcan/primitive/scalar/Integer64_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Integer64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.785625 UTC +// Generated at: 2024-01-12 03:09:34.705123 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Integer64 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_INTEGER64_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Integer64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Integer8_1_0.hpp b/src/types/uavcan/primitive/scalar/Integer8_1_0.hpp index aa635217..c207e937 100644 --- a/src/types/uavcan/primitive/scalar/Integer8_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Integer8_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.787553 UTC +// Generated at: 2024-01-12 03:09:34.707573 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Integer8 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_INTEGER8_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Integer8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Integer8_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Natural16_1_0.hpp b/src/types/uavcan/primitive/scalar/Natural16_1_0.hpp index a965141a..99aab6ad 100644 --- a/src/types/uavcan/primitive/scalar/Natural16_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Natural16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.789495 UTC +// Generated at: 2024-01-12 03:09:34.710056 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Natural16 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_NATURAL16_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Natural16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Natural32_1_0.hpp b/src/types/uavcan/primitive/scalar/Natural32_1_0.hpp index d6a40359..3a2edd80 100644 --- a/src/types/uavcan/primitive/scalar/Natural32_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Natural32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.791423 UTC +// Generated at: 2024-01-12 03:09:34.712527 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Natural32 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_NATURAL32_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Natural32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Natural64_1_0.hpp b/src/types/uavcan/primitive/scalar/Natural64_1_0.hpp index 1371b833..72f47434 100644 --- a/src/types/uavcan/primitive/scalar/Natural64_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Natural64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.793355 UTC +// Generated at: 2024-01-12 03:09:34.714986 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Natural64 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_NATURAL64_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Natural64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Natural8_1_0.hpp b/src/types/uavcan/primitive/scalar/Natural8_1_0.hpp index 59329901..e5571aee 100644 --- a/src/types/uavcan/primitive/scalar/Natural8_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Natural8_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.795320 UTC +// Generated at: 2024-01-12 03:09:34.717451 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Natural8 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_NATURAL8_1_0_HPP_INCLUDED @@ -84,22 +88,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Natural8.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -133,6 +157,7 @@ struct Natural8_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Real16_1_0.hpp b/src/types/uavcan/primitive/scalar/Real16_1_0.hpp index 2309741f..32a64f05 100644 --- a/src/types/uavcan/primitive/scalar/Real16_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Real16_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.797245 UTC +// Generated at: 2024-01-12 03:09:34.719886 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Real16 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_REAL16_1_0_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real16.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -132,6 +156,7 @@ struct Real16_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Real32_1_0.hpp b/src/types/uavcan/primitive/scalar/Real32_1_0.hpp index 7857b96f..f92529c6 100644 --- a/src/types/uavcan/primitive/scalar/Real32_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Real32_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.799302 UTC +// Generated at: 2024-01-12 03:09:34.722530 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Real32 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_REAL32_1_0_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real32.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -132,6 +156,7 @@ struct Real32_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/primitive/scalar/Real64_1_0.hpp b/src/types/uavcan/primitive/scalar/Real64_1_0.hpp index e8e38958..192d6a6f 100644 --- a/src/types/uavcan/primitive/scalar/Real64_1_0.hpp +++ b/src/types/uavcan/primitive/scalar/Real64_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.801244 UTC +// Generated at: 2024-01-12 03:09:34.725025 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.primitive.scalar.Real64 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_PRIMITIVE_SCALAR_REAL64_1_0_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/primitive/scalar/Real64.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -132,6 +156,7 @@ struct Real64_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/sample/acceleration/Scalar_1_0.hpp b/src/types/uavcan/si/sample/acceleration/Scalar_1_0.hpp index 23cbac8e..d38e8c75 100644 --- a/src/types/uavcan/si/sample/acceleration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/acceleration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.711589 UTC +// Generated at: 2024-01-12 03:09:35.045800 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.acceleration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ACCELERATION_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter_per_second_per_second meter_per_second_per_second{}; }; diff --git a/src/types/uavcan/si/sample/acceleration/Vector3_1_0.hpp b/src/types/uavcan/si/sample/acceleration/Vector3_1_0.hpp index 41b8a6d6..b59f84a7 100644 --- a/src/types/uavcan/si/sample/acceleration/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/acceleration/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.713947 UTC +// Generated at: 2024-01-12 03:09:35.048754 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.acceleration.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ACCELERATION_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter_per_second_per_second meter_per_second_per_second{}; }; diff --git a/src/types/uavcan/si/sample/angle/Quaternion_1_0.hpp b/src/types/uavcan/si/sample/angle/Quaternion_1_0.hpp index 17562e9c..21d400a7 100644 --- a/src/types/uavcan/si/sample/angle/Quaternion_1_0.hpp +++ b/src/types/uavcan/si/sample/angle/Quaternion_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.730722 UTC +// Generated at: 2024-01-12 03:09:35.004392 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angle.Quaternion @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGLE_QUATERNION_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Quaternion_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 23UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Quaternion_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::wxyz wxyz{}; }; diff --git a/src/types/uavcan/si/sample/angle/Scalar_1_0.hpp b/src/types/uavcan/si/sample/angle/Scalar_1_0.hpp index 780207bb..ca41e32f 100644 --- a/src/types/uavcan/si/sample/angle/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/angle/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.733149 UTC +// Generated at: 2024-01-12 03:09:35.007568 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angle.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGLE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::radian radian{}; }; diff --git a/src/types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp b/src/types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp index 22739610..c0a70215 100644 --- a/src/types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/angular_acceleration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.699433 UTC +// Generated at: 2024-01-12 03:09:35.028081 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angular_acceleration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGULAR_ACCELERATION_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::radian_per_second_per_second radian_per_second_per_second{}; }; diff --git a/src/types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp b/src/types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp index 0552c127..f7b628ed 100644 --- a/src/types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/angular_acceleration/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.701844 UTC +// Generated at: 2024-01-12 03:09:35.031030 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angular_acceleration.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGULAR_ACCELERATION_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::radian_per_second_per_second radian_per_second_per_second{}; }; diff --git a/src/types/uavcan/si/sample/angular_velocity/Scalar_1_0.hpp b/src/types/uavcan/si/sample/angular_velocity/Scalar_1_0.hpp index 06ecb4ad..f0c11798 100644 --- a/src/types/uavcan/si/sample/angular_velocity/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/angular_velocity/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.716421 UTC +// Generated at: 2024-01-12 03:09:34.980817 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angular_velocity.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGULAR_VELOCITY_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::radian_per_second radian_per_second{}; }; diff --git a/src/types/uavcan/si/sample/angular_velocity/Vector3_1_0.hpp b/src/types/uavcan/si/sample/angular_velocity/Vector3_1_0.hpp index 075c0135..21e27694 100644 --- a/src/types/uavcan/si/sample/angular_velocity/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/angular_velocity/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.718760 UTC +// Generated at: 2024-01-12 03:09:34.983758 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.angular_velocity.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ANGULAR_VELOCITY_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::radian_per_second radian_per_second{}; }; diff --git a/src/types/uavcan/si/sample/duration/Scalar_1_0.hpp b/src/types/uavcan/si/sample/duration/Scalar_1_0.hpp index eeaaf574..8a8b3a13 100644 --- a/src/types/uavcan/si/sample/duration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/duration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.687736 UTC +// Generated at: 2024-01-12 03:09:34.995656 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.duration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_DURATION_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::second second{}; }; diff --git a/src/types/uavcan/si/sample/duration/WideScalar_1_0.hpp b/src/types/uavcan/si/sample/duration/WideScalar_1_0.hpp index 3d30708d..c932da71 100644 --- a/src/types/uavcan/si/sample/duration/WideScalar_1_0.hpp +++ b/src/types/uavcan/si/sample/duration/WideScalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.690085 UTC +// Generated at: 2024-01-12 03:09:34.998585 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.duration.WideScalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_DURATION_WIDE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct WideScalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 15UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct WideScalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::second second{}; }; diff --git a/src/types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp b/src/types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp index 5a627fc6..30fbe663 100644 --- a/src/types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/electric_charge/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.744907 UTC +// Generated at: 2024-01-12 03:09:35.078297 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.electric_charge.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ELECTRIC_CHARGE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::coulomb coulomb{}; }; diff --git a/src/types/uavcan/si/sample/electric_current/Scalar_1_0.hpp b/src/types/uavcan/si/sample/electric_current/Scalar_1_0.hpp index 83a2eae3..64cd72d4 100644 --- a/src/types/uavcan/si/sample/electric_current/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/electric_current/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.683067 UTC +// Generated at: 2024-01-12 03:09:35.051696 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.electric_current.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ELECTRIC_CURRENT_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::ampere ampere{}; }; diff --git a/src/types/uavcan/si/sample/energy/Scalar_1_0.hpp b/src/types/uavcan/si/sample/energy/Scalar_1_0.hpp index adfbf145..1091fb68 100644 --- a/src/types/uavcan/si/sample/energy/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/energy/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.685414 UTC +// Generated at: 2024-01-12 03:09:35.034030 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.energy.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_ENERGY_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::joule joule{}; }; diff --git a/src/types/uavcan/si/sample/force/Scalar_1_0.hpp b/src/types/uavcan/si/sample/force/Scalar_1_0.hpp index 294d49a3..3692503b 100644 --- a/src/types/uavcan/si/sample/force/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/force/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.656841 UTC +// Generated at: 2024-01-12 03:09:35.081264 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.force.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_FORCE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::newton newton{}; }; diff --git a/src/types/uavcan/si/sample/force/Vector3_1_0.hpp b/src/types/uavcan/si/sample/force/Vector3_1_0.hpp index 7781adf0..dcab50f2 100644 --- a/src/types/uavcan/si/sample/force/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/force/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.659235 UTC +// Generated at: 2024-01-12 03:09:35.084188 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.force.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_FORCE_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::newton newton{}; }; diff --git a/src/types/uavcan/si/sample/frequency/Scalar_1_0.hpp b/src/types/uavcan/si/sample/frequency/Scalar_1_0.hpp index d9ddde9c..b6e256d7 100644 --- a/src/types/uavcan/si/sample/frequency/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/frequency/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.692391 UTC +// Generated at: 2024-01-12 03:09:35.036991 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.frequency.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_FREQUENCY_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::hertz hertz{}; }; diff --git a/src/types/uavcan/si/sample/length/Scalar_1_0.hpp b/src/types/uavcan/si/sample/length/Scalar_1_0.hpp index 4cea754c..8b599555 100644 --- a/src/types/uavcan/si/sample/length/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/length/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.735476 UTC +// Generated at: 2024-01-12 03:09:35.016341 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.length.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_LENGTH_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter meter{}; }; diff --git a/src/types/uavcan/si/sample/length/Vector3_1_0.hpp b/src/types/uavcan/si/sample/length/Vector3_1_0.hpp index 052e15a1..02085ecb 100644 --- a/src/types/uavcan/si/sample/length/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/length/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.737810 UTC +// Generated at: 2024-01-12 03:09:35.019256 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.length.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_LENGTH_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter meter{}; }; diff --git a/src/types/uavcan/si/sample/length/WideScalar_1_0.hpp b/src/types/uavcan/si/sample/length/WideScalar_1_0.hpp index deba0b46..ef44c2c9 100644 --- a/src/types/uavcan/si/sample/length/WideScalar_1_0.hpp +++ b/src/types/uavcan/si/sample/length/WideScalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.740203 UTC +// Generated at: 2024-01-12 03:09:35.022227 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.length.WideScalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_LENGTH_WIDE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct WideScalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 15UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct WideScalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter meter{}; }; diff --git a/src/types/uavcan/si/sample/length/WideVector3_1_0.hpp b/src/types/uavcan/si/sample/length/WideVector3_1_0.hpp index b3e1277f..c958a2c2 100644 --- a/src/types/uavcan/si/sample/length/WideVector3_1_0.hpp +++ b/src/types/uavcan/si/sample/length/WideVector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.742501 UTC +// Generated at: 2024-01-12 03:09:35.025048 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.length.WideVector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_LENGTH_WIDE_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct WideVector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 31UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct WideVector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter meter{}; }; diff --git a/src/types/uavcan/si/sample/luminance/Scalar_1_0.hpp b/src/types/uavcan/si/sample/luminance/Scalar_1_0.hpp index 555faa94..856aa417 100644 --- a/src/types/uavcan/si/sample/luminance/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/luminance/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.728366 UTC +// Generated at: 2024-01-12 03:09:35.013407 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.luminance.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_LUMINANCE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::candela_per_square_meter candela_per_square_meter{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_0.hpp b/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_0.hpp index efc2cfdb..3ab49f2b 100644 --- a/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.675799 UTC +// Generated at: 2024-01-12 03:09:35.057629 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_field_strength.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -94,22 +98,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -122,8 +146,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.si.sample.magnetic_field_strength.Scalar.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Scalar_1_0 final +struct [[deprecated("uavcan.si.sample.magnetic_field_strength.Scalar.1.0 is reaching the end of its life; there may be a newer version available")]]Scalar_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -144,6 +167,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -156,7 +180,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::tesla tesla{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_1.hpp b/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_1.hpp index b74ae946..59292bbc 100644 --- a/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_1.hpp +++ b/src/types/uavcan/si/sample/magnetic_field_strength/Scalar_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.673470 UTC +// Generated at: 2024-01-12 03:09:35.054635 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_field_strength.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_MAGNETIC_FIELD_STRENGTH_SCALAR_1_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::ampere_per_meter ampere_per_meter{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_0.hpp b/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_0.hpp index 17ec393d..5a989d3c 100644 --- a/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.680582 UTC +// Generated at: 2024-01-12 03:09:35.063542 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_field_strength.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -95,22 +99,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -123,8 +147,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.si.sample.magnetic_field_strength.Vector3.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Vector3_1_0 final +struct [[deprecated("uavcan.si.sample.magnetic_field_strength.Vector3.1.0 is reaching the end of its life; there may be a newer version available")]]Vector3_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -145,6 +168,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -157,7 +181,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::tesla tesla{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp b/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp index e4d72df4..847ac025 100644 --- a/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp +++ b/src/types/uavcan/si/sample/magnetic_field_strength/Vector3_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.678108 UTC +// Generated at: 2024-01-12 03:09:35.060505 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_field_strength.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_MAGNETIC_FIELD_STRENGTH_VECTOR3_1_1_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_1 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::ampere_per_meter ampere_per_meter{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_flux_density/Scalar_1_0.hpp b/src/types/uavcan/si/sample/magnetic_flux_density/Scalar_1_0.hpp index 59341400..efdc9002 100644 --- a/src/types/uavcan/si/sample/magnetic_flux_density/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/magnetic_flux_density/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.664008 UTC +// Generated at: 2024-01-12 03:09:35.069464 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_flux_density.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_MAGNETIC_FLUX_DENSITY_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::tesla tesla{}; }; diff --git a/src/types/uavcan/si/sample/magnetic_flux_density/Vector3_1_0.hpp b/src/types/uavcan/si/sample/magnetic_flux_density/Vector3_1_0.hpp index 7b02a28a..b89d27b1 100644 --- a/src/types/uavcan/si/sample/magnetic_flux_density/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/magnetic_flux_density/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.666344 UTC +// Generated at: 2024-01-12 03:09:35.072394 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.magnetic_flux_density.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_MAGNETIC_FLUX_DENSITY_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::tesla tesla{}; }; diff --git a/src/types/uavcan/si/sample/mass/Scalar_1_0.hpp b/src/types/uavcan/si/sample/mass/Scalar_1_0.hpp index 9c2046d8..596c2938 100644 --- a/src/types/uavcan/si/sample/mass/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/mass/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.661693 UTC +// Generated at: 2024-01-12 03:09:34.974698 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.mass.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_MASS_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::kilogram kilogram{}; }; diff --git a/src/types/uavcan/si/sample/power/Scalar_1_0.hpp b/src/types/uavcan/si/sample/power/Scalar_1_0.hpp index 601842ca..2b0acd8a 100644 --- a/src/types/uavcan/si/sample/power/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/power/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.694720 UTC +// Generated at: 2024-01-12 03:09:34.977879 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.power.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_POWER_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::watt watt{}; }; diff --git a/src/types/uavcan/si/sample/pressure/Scalar_1_0.hpp b/src/types/uavcan/si/sample/pressure/Scalar_1_0.hpp index f1aa604b..8bcbe1d1 100644 --- a/src/types/uavcan/si/sample/pressure/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/pressure/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.709193 UTC +// Generated at: 2024-01-12 03:09:35.066514 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.pressure.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_PRESSURE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::pascal pascal{}; }; diff --git a/src/types/uavcan/si/sample/temperature/Scalar_1_0.hpp b/src/types/uavcan/si/sample/temperature/Scalar_1_0.hpp index 17f9a74d..b703c158 100644 --- a/src/types/uavcan/si/sample/temperature/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/temperature/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.671138 UTC +// Generated at: 2024-01-12 03:09:35.010430 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.temperature.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_TEMPERATURE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::kelvin kelvin{}; }; diff --git a/src/types/uavcan/si/sample/torque/Scalar_1_0.hpp b/src/types/uavcan/si/sample/torque/Scalar_1_0.hpp index b993bd34..140c91e6 100644 --- a/src/types/uavcan/si/sample/torque/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/torque/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.704341 UTC +// Generated at: 2024-01-12 03:09:34.986813 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.torque.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_TORQUE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::newton_meter newton_meter{}; }; diff --git a/src/types/uavcan/si/sample/torque/Vector3_1_0.hpp b/src/types/uavcan/si/sample/torque/Vector3_1_0.hpp index 6e1a6a7e..174ccf4e 100644 --- a/src/types/uavcan/si/sample/torque/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/torque/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.706687 UTC +// Generated at: 2024-01-12 03:09:34.989732 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.torque.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_TORQUE_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::newton_meter newton_meter{}; }; diff --git a/src/types/uavcan/si/sample/velocity/Scalar_1_0.hpp b/src/types/uavcan/si/sample/velocity/Scalar_1_0.hpp index d7fcf54c..643e44c8 100644 --- a/src/types/uavcan/si/sample/velocity/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/velocity/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.721233 UTC +// Generated at: 2024-01-12 03:09:35.039898 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.velocity.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_VELOCITY_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter_per_second meter_per_second{}; }; diff --git a/src/types/uavcan/si/sample/velocity/Vector3_1_0.hpp b/src/types/uavcan/si/sample/velocity/Vector3_1_0.hpp index aba27bd9..1deae824 100644 --- a/src/types/uavcan/si/sample/velocity/Vector3_1_0.hpp +++ b/src/types/uavcan/si/sample/velocity/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.723593 UTC +// Generated at: 2024-01-12 03:09:35.042829 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.velocity.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_VELOCITY_VECTOR3_1_0_HPP_INCLUDED @@ -87,22 +91,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -136,6 +160,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 19UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -148,7 +173,7 @@ struct Vector3_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::meter_per_second meter_per_second{}; }; diff --git a/src/types/uavcan/si/sample/voltage/Scalar_1_0.hpp b/src/types/uavcan/si/sample/voltage/Scalar_1_0.hpp index 7129cc09..877f45d1 100644 --- a/src/types/uavcan/si/sample/voltage/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/voltage/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.668808 UTC +// Generated at: 2024-01-12 03:09:35.001446 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.voltage.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_VOLTAGE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::volt volt{}; }; diff --git a/src/types/uavcan/si/sample/volume/Scalar_1_0.hpp b/src/types/uavcan/si/sample/volume/Scalar_1_0.hpp index 6dd3026b..bd18ee74 100644 --- a/src/types/uavcan/si/sample/volume/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/volume/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.726070 UTC +// Generated at: 2024-01-12 03:09:35.075365 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.volume.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_VOLUME_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::cubic_meter cubic_meter{}; }; diff --git a/src/types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp b/src/types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp index f34bbda0..8a450e55 100644 --- a/src/types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp +++ b/src/types/uavcan/si/sample/volumetric_flow_rate/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.697044 UTC +// Generated at: 2024-01-12 03:09:34.992727 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.sample.volumetric_flow_rate.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_SAMPLE_VOLUMETRIC_FLOW_RATE_SCALAR_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/sample/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 11UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -147,7 +172,7 @@ struct Scalar_1_0 final // | FIELDS // +----------------------------------------------------------------------+ - _traits_::TypeOf::timestamp timestamp; + _traits_::TypeOf::timestamp timestamp{}; _traits_::TypeOf::cubic_meter_per_second cubic_meter_per_second{}; }; diff --git a/src/types/uavcan/si/unit/acceleration/Scalar_1_0.hpp b/src/types/uavcan/si/unit/acceleration/Scalar_1_0.hpp index ac4e8ecf..09c1d647 100644 --- a/src/types/uavcan/si/unit/acceleration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/acceleration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.585774 UTC +// Generated at: 2024-01-12 03:09:35.175975 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.acceleration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ACCELERATION_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/acceleration/Vector3_1_0.hpp b/src/types/uavcan/si/unit/acceleration/Vector3_1_0.hpp index cef51350..a34cbcd6 100644 --- a/src/types/uavcan/si/unit/acceleration/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/acceleration/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.587851 UTC +// Generated at: 2024-01-12 03:09:35.178396 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.acceleration.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ACCELERATION_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angle/Quaternion_1_0.hpp b/src/types/uavcan/si/unit/angle/Quaternion_1_0.hpp index 14c36ff0..ab440c2e 100644 --- a/src/types/uavcan/si/unit/angle/Quaternion_1_0.hpp +++ b/src/types/uavcan/si/unit/angle/Quaternion_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.652583 UTC +// Generated at: 2024-01-12 03:09:35.128975 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angle.Quaternion @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGLE_QUATERNION_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Quaternion.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Quaternion_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 16UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angle/Scalar_1_0.hpp b/src/types/uavcan/si/unit/angle/Scalar_1_0.hpp index 50281f80..1bbfc038 100644 --- a/src/types/uavcan/si/unit/angle/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/angle/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.654852 UTC +// Generated at: 2024-01-12 03:09:35.131553 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angle.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGLE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angle/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp b/src/types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp index bf93edff..4120c506 100644 --- a/src/types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/angular_acceleration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.592063 UTC +// Generated at: 2024-01-12 03:09:35.148781 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angular_acceleration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGULAR_ACCELERATION_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp b/src/types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp index 48726d3a..a462b97e 100644 --- a/src/types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/angular_acceleration/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.594136 UTC +// Generated at: 2024-01-12 03:09:35.151186 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angular_acceleration.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGULAR_ACCELERATION_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_acceleration/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp b/src/types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp index df20f32b..b69689a2 100644 --- a/src/types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/angular_velocity/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.617188 UTC +// Generated at: 2024-01-12 03:09:35.111514 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angular_velocity.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGULAR_VELOCITY_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp b/src/types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp index 7290763b..805fa500 100644 --- a/src/types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/angular_velocity/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.619327 UTC +// Generated at: 2024-01-12 03:09:35.113937 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.angular_velocity.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ANGULAR_VELOCITY_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/angular_velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/duration/Scalar_1_0.hpp b/src/types/uavcan/si/unit/duration/Scalar_1_0.hpp index f2d36b60..921bf0ad 100644 --- a/src/types/uavcan/si/unit/duration/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/duration/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.633929 UTC +// Generated at: 2024-01-12 03:09:35.087141 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.duration.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_DURATION_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/duration/WideScalar_1_0.hpp b/src/types/uavcan/si/unit/duration/WideScalar_1_0.hpp index 123911c9..7dfe9486 100644 --- a/src/types/uavcan/si/unit/duration/WideScalar_1_0.hpp +++ b/src/types/uavcan/si/unit/duration/WideScalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.635990 UTC +// Generated at: 2024-01-12 03:09:35.089659 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.duration.WideScalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_DURATION_WIDE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/duration/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct WideScalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp b/src/types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp index 8e5cde5a..4af050a2 100644 --- a/src/types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/electric_charge/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.590019 UTC +// Generated at: 2024-01-12 03:09:35.096879 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.electric_charge.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ELECTRIC_CHARGE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_charge/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/electric_current/Scalar_1_0.hpp b/src/types/uavcan/si/unit/electric_current/Scalar_1_0.hpp index 194e53d5..db060728 100644 --- a/src/types/uavcan/si/unit/electric_current/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/electric_current/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.637956 UTC +// Generated at: 2024-01-12 03:09:35.173576 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.electric_current.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ELECTRIC_CURRENT_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/electric_current/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/energy/Scalar_1_0.hpp b/src/types/uavcan/si/unit/energy/Scalar_1_0.hpp index 9e1745d8..002195fd 100644 --- a/src/types/uavcan/si/unit/energy/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/energy/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.650530 UTC +// Generated at: 2024-01-12 03:09:35.133943 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.energy.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_ENERGY_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/energy/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/force/Scalar_1_0.hpp b/src/types/uavcan/si/unit/force/Scalar_1_0.hpp index d7012a51..5ee58147 100644 --- a/src/types/uavcan/si/unit/force/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/force/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.646236 UTC +// Generated at: 2024-01-12 03:09:35.136342 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.force.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_FORCE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/force/Vector3_1_0.hpp b/src/types/uavcan/si/unit/force/Vector3_1_0.hpp index 54088ff9..e8a531e2 100644 --- a/src/types/uavcan/si/unit/force/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/force/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.648305 UTC +// Generated at: 2024-01-12 03:09:35.138726 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.force.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_FORCE_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/force/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/frequency/Scalar_1_0.hpp b/src/types/uavcan/si/unit/frequency/Scalar_1_0.hpp index 4450e8a4..6f402e3d 100644 --- a/src/types/uavcan/si/unit/frequency/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/frequency/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.644149 UTC +// Generated at: 2024-01-12 03:09:35.092045 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.frequency.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_FREQUENCY_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/frequency/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/length/Scalar_1_0.hpp b/src/types/uavcan/si/unit/length/Scalar_1_0.hpp index 1b9bf8b2..3ca2a7f2 100644 --- a/src/types/uavcan/si/unit/length/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/length/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.602607 UTC +// Generated at: 2024-01-12 03:09:35.153784 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.length.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_LENGTH_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/length/Vector3_1_0.hpp b/src/types/uavcan/si/unit/length/Vector3_1_0.hpp index 8cfb488f..b51e0a22 100644 --- a/src/types/uavcan/si/unit/length/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/length/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.604624 UTC +// Generated at: 2024-01-12 03:09:35.156182 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.length.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_LENGTH_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/length/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/length/WideScalar_1_0.hpp b/src/types/uavcan/si/unit/length/WideScalar_1_0.hpp index f81d0cf9..fb4c0d38 100644 --- a/src/types/uavcan/si/unit/length/WideScalar_1_0.hpp +++ b/src/types/uavcan/si/unit/length/WideScalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.606688 UTC +// Generated at: 2024-01-12 03:09:35.158746 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.length.WideScalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_LENGTH_WIDE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideScalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct WideScalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 8UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/length/WideVector3_1_0.hpp b/src/types/uavcan/si/unit/length/WideVector3_1_0.hpp index a2df5317..9f1eca02 100644 --- a/src/types/uavcan/si/unit/length/WideVector3_1_0.hpp +++ b/src/types/uavcan/si/unit/length/WideVector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.608657 UTC +// Generated at: 2024-01-12 03:09:35.161160 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.length.WideVector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_LENGTH_WIDE_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/length/WideVector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct WideVector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 24UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/luminance/Scalar_1_0.hpp b/src/types/uavcan/si/unit/luminance/Scalar_1_0.hpp index c6fe2559..a788b00e 100644 --- a/src/types/uavcan/si/unit/luminance/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/luminance/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.640017 UTC +// Generated at: 2024-01-12 03:09:35.101698 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.luminance.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_LUMINANCE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/luminance/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp b/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp index 4bffcd46..6b543235 100644 --- a/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.579254 UTC +// Generated at: 2024-01-12 03:09:35.121370 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_field_strength.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -93,22 +97,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -121,8 +145,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.si.unit.magnetic_field_strength.Scalar.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Scalar_1_0 final +struct [[deprecated("uavcan.si.unit.magnetic_field_strength.Scalar.1.0 is reaching the end of its life; there may be a newer version available")]]Scalar_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -143,6 +166,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp b/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp index c8991798..2e5dbe5d 100644 --- a/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp +++ b/src/types/uavcan/si/unit/magnetic_field_strength/Scalar_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.576994 UTC +// Generated at: 2024-01-12 03:09:35.118947 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_field_strength.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_MAGNETIC_FIELD_STRENGTH_SCALAR_1_1_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Scalar.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp b/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp index 07946326..31328230 100644 --- a/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.583551 UTC +// Generated at: 2024-01-12 03:09:35.126336 UTC // Is deprecated: yes // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_field_strength.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes // _____ ______ _____ _____ ______ _____ _______ ______ _____ @@ -94,22 +98,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -122,8 +146,7 @@ static_assert( nunavut::support::options::enable_allocator_support == 0, // | your code will not be backwards compatible with the C++14 version of this object. // +-------------------------------------------------------------------------------------------------------------------+ -[[deprecated("uavcan.si.unit.magnetic_field_strength.Vector3.1.0 is reaching the end of its life; there may be a newer version available")]] -struct Vector3_1_0 final +struct [[deprecated("uavcan.si.unit.magnetic_field_strength.Vector3.1.0 is reaching the end of its life; there may be a newer version available")]]Vector3_1_0 final { struct _traits_ // The name is surrounded with underscores to avoid collisions with DSDL attributes. { @@ -144,6 +167,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp b/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp index ab3abdea..c70b7edd 100644 --- a/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp +++ b/src/types/uavcan/si/unit/magnetic_field_strength/Vector3_1_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl -// Generated at: 2023-03-10 05:17:53.581310 UTC +// Generated at: 2024-01-12 03:09:35.123734 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_field_strength.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_MAGNETIC_FIELD_STRENGTH_VECTOR3_1_1_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_field_strength/Vector3.1.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_1 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp b/src/types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp index a835a57a..60077ef3 100644 --- a/src/types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/magnetic_flux_density/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.610891 UTC +// Generated at: 2024-01-12 03:09:35.166155 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_flux_density.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_MAGNETIC_FLUX_DENSITY_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp b/src/types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp index 6d06b4e0..90382adb 100644 --- a/src/types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/magnetic_flux_density/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.612917 UTC +// Generated at: 2024-01-12 03:09:35.168585 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.magnetic_flux_density.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_MAGNETIC_FLUX_DENSITY_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/magnetic_flux_density/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/mass/Scalar_1_0.hpp b/src/types/uavcan/si/unit/mass/Scalar_1_0.hpp index 55efe1ef..58c462b5 100644 --- a/src/types/uavcan/si/unit/mass/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/mass/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.600462 UTC +// Generated at: 2024-01-12 03:09:35.163734 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.mass.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_MASS_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/mass/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/power/Scalar_1_0.hpp b/src/types/uavcan/si/unit/power/Scalar_1_0.hpp index a3c71179..5d5d23bb 100644 --- a/src/types/uavcan/si/unit/power/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/power/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.631855 UTC +// Generated at: 2024-01-12 03:09:35.171153 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.power.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_POWER_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/power/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/pressure/Scalar_1_0.hpp b/src/types/uavcan/si/unit/pressure/Scalar_1_0.hpp index 4721ae41..1eabd196 100644 --- a/src/types/uavcan/si/unit/pressure/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/pressure/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.627718 UTC +// Generated at: 2024-01-12 03:09:35.141365 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.pressure.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_PRESSURE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/pressure/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/temperature/Scalar_1_0.hpp b/src/types/uavcan/si/unit/temperature/Scalar_1_0.hpp index 0cf67fce..187182ee 100644 --- a/src/types/uavcan/si/unit/temperature/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/temperature/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.615086 UTC +// Generated at: 2024-01-12 03:09:35.116549 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.temperature.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_TEMPERATURE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/temperature/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/torque/Scalar_1_0.hpp b/src/types/uavcan/si/unit/torque/Scalar_1_0.hpp index aa041e91..4e8c8f54 100644 --- a/src/types/uavcan/si/unit/torque/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/torque/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.621480 UTC +// Generated at: 2024-01-12 03:09:35.106512 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.torque.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_TORQUE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/torque/Vector3_1_0.hpp b/src/types/uavcan/si/unit/torque/Vector3_1_0.hpp index 1548933d..d2b161d3 100644 --- a/src/types/uavcan/si/unit/torque/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/torque/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.623445 UTC +// Generated at: 2024-01-12 03:09:35.108945 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.torque.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_TORQUE_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/torque/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/velocity/Scalar_1_0.hpp b/src/types/uavcan/si/unit/velocity/Scalar_1_0.hpp index 929d6e9e..1a12fab7 100644 --- a/src/types/uavcan/si/unit/velocity/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/velocity/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.596263 UTC +// Generated at: 2024-01-12 03:09:35.143753 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.velocity.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_VELOCITY_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/velocity/Vector3_1_0.hpp b/src/types/uavcan/si/unit/velocity/Vector3_1_0.hpp index e1fdf109..ff6ca8a8 100644 --- a/src/types/uavcan/si/unit/velocity/Vector3_1_0.hpp +++ b/src/types/uavcan/si/unit/velocity/Vector3_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.598383 UTC +// Generated at: 2024-01-12 03:09:35.146167 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.velocity.Vector3 @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_VELOCITY_VECTOR3_1_0_HPP_INCLUDED @@ -86,22 +90,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/velocity/Vector3.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct Vector3_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 12UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/voltage/Scalar_1_0.hpp b/src/types/uavcan/si/unit/voltage/Scalar_1_0.hpp index 35f2d851..18cd11dd 100644 --- a/src/types/uavcan/si/unit/voltage/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/voltage/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.642082 UTC +// Generated at: 2024-01-12 03:09:35.094451 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.voltage.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_VOLTAGE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/voltage/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/volume/Scalar_1_0.hpp b/src/types/uavcan/si/unit/volume/Scalar_1_0.hpp index c9786ad4..5743a327 100644 --- a/src/types/uavcan/si/unit/volume/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/volume/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.625613 UTC +// Generated at: 2024-01-12 03:09:35.104096 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.volume.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_VOLUME_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/volume/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp b/src/types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp index 220e744b..55960f25 100644 --- a/src/types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp +++ b/src/types/uavcan/si/unit/volumetric_flow_rate/Scalar_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.629783 UTC +// Generated at: 2024-01-12 03:09:35.099281 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.si.unit.volumetric_flow_rate.Scalar @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_SI_UNIT_VOLUMETRIC_FLOW_RATE_SCALAR_1_0_HPP_INCLUDED @@ -85,22 +89,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/si/unit/volumetric_flow_rate/Scalar.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct Scalar_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 4UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp b/src/types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp index c47fa3c6..0c5b94d5 100644 --- a/src/types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp +++ b/src/types/uavcan/time/GetSynchronizationMasterInfo_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.540735 UTC +// Generated at: 2024-01-12 03:09:34.772462 UTC // Is deprecated: no // Fixed port-ID: 510 // Full name: uavcan.time.GetSynchronizationMasterInfo @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_TIME_GET_SYNCHRONIZATION_MASTER_INFO_0_1_HPP_INCLUDED @@ -83,22 +87,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_include == 0, + "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/time/510.GetSynchronizationMasterInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -145,7 +169,9 @@ struct Request_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 0UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + }; + }; inline nunavut::support::SerializeResult serialize(const Request_0_1& obj, @@ -193,6 +219,7 @@ struct Response_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 7UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; @@ -219,12 +246,12 @@ struct Response_0_1 final /// Time system currently in use by the master. /// Cannot be changed while the network is operating. /// - _traits_::TypeOf::time_system time_system; + _traits_::TypeOf::time_system time_system{}; /// /// Actual information about TAI provided by this master, if supported. /// The fields in this data type are optional. /// - _traits_::TypeOf::tai_info tai_info; + _traits_::TypeOf::tai_info tai_info{}; }; inline nunavut::support::SerializeResult serialize(const Response_0_1& obj, diff --git a/src/types/uavcan/time/Synchronization_1_0.hpp b/src/types/uavcan/time/Synchronization_1_0.hpp index 3bd562ed..bdb27d7e 100644 --- a/src/types/uavcan/time/Synchronization_1_0.hpp +++ b/src/types/uavcan/time/Synchronization_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.544596 UTC +// Generated at: 2024-01-12 03:09:34.777206 UTC // Is deprecated: no // Fixed port-ID: 7168 // Full name: uavcan.time.Synchronization @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_TIME_SYNCHRONIZATION_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/time/7168.Synchronization.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -291,6 +315,7 @@ struct Synchronization_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 7UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/time/SynchronizedTimestamp_1_0.hpp b/src/types/uavcan/time/SynchronizedTimestamp_1_0.hpp index e4ca9332..a56f2259 100644 --- a/src/types/uavcan/time/SynchronizedTimestamp_1_0.hpp +++ b/src/types/uavcan/time/SynchronizedTimestamp_1_0.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl -// Generated at: 2023-03-10 05:17:53.549146 UTC +// Generated at: 2024-01-12 03:09:34.782857 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.time.SynchronizedTimestamp @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_TIME_SYNCHRONIZED_TIMESTAMP_1_0_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/time/SynchronizedTimestamp.1.0.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -134,6 +158,7 @@ struct SynchronizedTimestamp_1_0 final static constexpr std::size_t SerializationBufferSizeBytes = 7UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/time/TAIInfo_0_1.hpp b/src/types/uavcan/time/TAIInfo_0_1.hpp index 4029115a..d35a809a 100644 --- a/src/types/uavcan/time/TAIInfo_0_1.hpp +++ b/src/types/uavcan/time/TAIInfo_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.551525 UTC +// Generated at: 2024-01-12 03:09:34.785770 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.time.TAIInfo @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_TIME_TAI_INFO_0_1_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/time/TAIInfo.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -144,6 +168,7 @@ struct TAIInfo_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 2UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete; diff --git a/src/types/uavcan/time/TimeSystem_0_1.hpp b/src/types/uavcan/time/TimeSystem_0_1.hpp index 8cd1f45b..38c65f52 100644 --- a/src/types/uavcan/time/TimeSystem_0_1.hpp +++ b/src/types/uavcan/time/TimeSystem_0_1.hpp @@ -5,9 +5,9 @@ // Checking this file under version control is not recommended since metadata in this header will change for each // build invocation. TODO: add --reproducible option to prevent any volatile metadata from being generated. // -// Generator: nunavut-2.0.9 (serialization was enabled) +// Generator: nunavut-2.3.1 (serialization was enabled) // Source file: /tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl -// Generated at: 2023-03-10 05:17:53.554381 UTC +// Generated at: 2024-01-12 03:09:34.789277 UTC // Is deprecated: no // Fixed port-ID: None // Full name: uavcan.time.TimeSystem @@ -21,23 +21,27 @@ // version: (1, 0, 0) // Platform // python_implementation: CPython -// python_version: 3.10.6 +// python_version: 3.10.12 // python_release_level: final -// python_build: ('main', 'Nov 14 2022 16:10:14') -// python_compiler: GCC 11.3.0 +// python_build: ('main', 'Nov 20 2023 15:14:05') +// python_compiler: GCC 11.4.0 // python_revision: // python_xoptions: {} -// runtime_platform: Linux-5.19.0-35-generic-x86_64-with-glibc2.35 +// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35 // Language Options // target_endianness: any // omit_float_serialization_support: False // enable_serialization_asserts: False // enable_override_variable_array_capacity: False // std: c++17 -// variable_array_type_template: -// variable_array_type_include: // cast_format: static_cast<{type}>({value}) -// enable_allocator_support: False +// variable_array_type_include: +// variable_array_type_template: std::vector<{TYPE}> +// variable_array_type_constructor_args: +// allocator_include: +// allocator_type: +// allocator_is_default_constructible: True +// ctor_convention: default // Uses Language Features // Uses std_variant:yes #ifndef UAVCAN_TIME_TIME_SYSTEM_0_1_HPP_INCLUDED @@ -82,22 +86,42 @@ static_assert( nunavut::support::options::std == 628873475, "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_template == 0, +static_assert( nunavut::support::options::cast_format == 1407868567, "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::variable_array_type_include == 0, +static_assert( nunavut::support::options::variable_array_type_include == 3320664631, "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::cast_format == 1407868567, +static_assert( nunavut::support::options::variable_array_type_template == 4227611599, + "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::variable_array_type_constructor_args == 0, + "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_include == 0, "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " "allowed." ); -static_assert( nunavut::support::options::enable_allocator_support == 0, +static_assert( nunavut::support::options::allocator_type == 0, + "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::allocator_is_default_constructible == 1, + "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " + "is trying to use a serialization library that was compiled with " + "different language options. This is dangerous and therefore not " + "allowed." ); +static_assert( nunavut::support::options::ctor_convention == 3814588639, "/tmp/public_regulated_data_types/uavcan/time/TimeSystem.0.1.dsdl " "is trying to use a serialization library that was compiled with " "different language options. This is dangerous and therefore not " @@ -135,6 +159,7 @@ struct TimeSystem_0_1 final static constexpr std::size_t SerializationBufferSizeBytes = 1UL; static_assert(ExtentBytes >= SerializationBufferSizeBytes, "Internal constraint violation"); static_assert(ExtentBytes < (std::numeric_limits::max() / 8U), "This message is too large to be handled by the selected types"); + struct TypeOf { TypeOf() = delete;