rosidl_parser.definition.type
Define IDL types.
- abstract class
AbstractType; AbstractTypeAll subclasses overridetoString,toHashandopEquals.- abstract class
AbstractNestableType: rosidl_parser.definition.type.AbstractType; AbstractNestableType- class
BasicType: rosidl_parser.definition.type.AbstractNestableType; BasicTypeThe following identifiers will beBasicType(comes fromrosidl_parser.definition.identifier.basicTypes)shortlonglong longunsined shortunsigned longunsigned long longfloatdoublelong doublecharwcharbooleanoctetint8int16int32int64uint8uint16uint32uint64
- const const(string)
name; - Typename (e.g. boolean)
- this(in string name);
- class
NamedType: rosidl_parser.definition.type.AbstractNestableType; NamedTypeNamedTypeis a type which is neither BasicType nor NamespecedType. (e.g.boolean__3)- const const(string)
name; - Typename
- this(in string name);
- class
NamespacedType: rosidl_parser.definition.type.AbstractNestableType; NamespacedTypeNamespacedTypeis a type who has namespace. To extract namespace, the identifier must have at least two sub identifiers separated by::, or must be constructed with namespaces like module. (e.g.pkgname::msg::MyMessage)- const(string)[]
namespaces; - Namespace (e.g. [pkgname, msg])
- const const(string)
name; - Typename (e.g. MyMessage)
- this(in string[] namespaces, in string name);
- const auto
joinedName(in string sep = "::"); - Get a fullname joined by
sep.Parameters:string sep Separator Returns: Joined name
- abstract class
AbstractGenericString: rosidl_parser.definition.type.AbstractNestableType; AbstractGenericString- abstract class
AbstractString: rosidl_parser.definition.type.AbstractGenericString; AbstractString- class
BoundedString: rosidl_parser.definition.type.AbstractString; BoundedStringString withmaximumSize- const const(string)
maximumSize; - Maximum size of the string
- this(in string maximumSize);
- class
UnboundedString: rosidl_parser.definition.type.AbstractString; UnboundedStringString without capacity- abstract class
AbstractWString: rosidl_parser.definition.type.AbstractGenericString; AbstractWString- class
BoundedWString: rosidl_parser.definition.type.AbstractWString; BoundedWStringWide String withmaximumSize- const const(string)
maximumSize; - Maximum size of the string
- this(in string maximumSize);
- class
UnboundedWString: rosidl_parser.definition.type.AbstractWString; UnboundedWStringWide String without capacity- abstract class
AbstractNestedType: rosidl_parser.definition.type.AbstractType; AbstractNestedTypeNestedType will hold the other NestableType.- const const(AbstractNestableType)
valueType; - Value type
- this(in AbstractNestableType valueType);
- class
ArrayType: rosidl_parser.definition.type.AbstractNestedType; ArrayTypeArray type will be a static array- string
size; - Size of array
- this(in AbstractNestableType valueType, in string size);
- abstract class
AbstractSequence: rosidl_parser.definition.type.AbstractNestedType; AbstractSequenceAbstractSequencewill be a dynamic array- this(in AbstractNestableType valueType);
- class
BoundedSequence: rosidl_parser.definition.type.AbstractSequence; BoundedSequenceBoundedSequenceis a dynamic array but has capacitymaximumSize.- string
maximumSize; - Maximum size of the sequence.
- this(in AbstractNestableType valueType, in string maximumSize);
- class
UnboundedSequence: rosidl_parser.definition.type.AbstractSequence; UnboundedSequenceUnboundedSequenceis a dynamic array without capacity.- this(in AbstractNestableType valueType);