lcmdefrag

package
v1.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package lcmdefrag contains a defragmenter for LCM messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LCMDefragmenter

type LCMDefragmenter struct {
	// contains filtered or unexported fields
}

LCMDefragmenter supports defragmentation of LCM messages.

References

https://lcm-proj.github.io/
https://github.com/lcm-proj/lcm

func NewLCMDefragmenter

func NewLCMDefragmenter() *LCMDefragmenter

NewLCMDefragmenter returns a new LCMDefragmenter.

func (*LCMDefragmenter) Defrag

func (ld *LCMDefragmenter) Defrag(in *layers.LCM) (out *layers.LCM, err error)

Defrag takes a reference to an LCM packet and processes it. In case the packet does not need to be defragmented, it immediately returns the as in passed reference. In case in was the last missing fragment, out will be the defragmented packet. If in was a fragment, but we are awaiting more, out will be set to nil. In the case that in was nil, we will just run the internal cleanup of the defragmenter that times out packages. If an error was encountered during defragmentation, out will also be nil, while err will contain further information on the failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL