Documentation ¶
Index ¶
Constants ¶
View Source
const COMMENT = 57349
View Source
const CONSTANT = 57350
View Source
const IDENTIFIER = 57346
View Source
const INTEGER = 57348
View Source
const LEFTBRACKET = 57352
View Source
const MSGDEF = 57354
View Source
const NAMESPACESEPARATOR = 57355
View Source
const NEWLINE = 57351
View Source
const RIGHTBRACKET = 57353
View Source
const SIMPLETYPE = 57347
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageField ¶
type MessageField struct { VariableType string IsComplexType bool IsBaseType bool IsArray bool ArrayLength int32 VariableName string Namespace []string ComplexTypeFormat *MessageFormat BinaryRead func(*bytes.Buffer, []byte, int32, int32) int32 }
MessageField contains single datafield definition
type MessageFormat ¶
type MessageFormat struct { Namespace []string Name string Fullname string Fields []MessageField MessageFormats []MessageFormat }
MessageFormat contains everything we need to read given format
func Compile ¶
func Compile(source []byte, rootmessageFullName string) (*MessageFormat, error)
Compile compiles ros msg format into AST
func (*MessageFormat) DebugPrint ¶
func (message *MessageFormat) DebugPrint()
DebugPrint dumps selected content from compiled message
Click to show internal directories.
Click to hide internal directories.