Documentation ¶
Index ¶
- Variables
- func DumpTableDefinitions(path string) error
- func NewBuffer() (b *bytes.Buffer)
- func ReadString(r io.Reader, delim byte) (string, error)
- type RosBag
- func (r *RosBag) DumpChunkInfo(filename string) error
- func (r *RosBag) DumpChunks(filename string) error
- func (r *RosBag) DumpMessageDefinitions(filename string) error
- func (r *RosBag) GetSource() string
- func (r *RosBag) ParseTopicsToJSON(extraFields string, timeFilter func(int64) bool, topicFilter func(string) bool, ...) (err error)
- func (r *RosBag) Read(input io.Reader) error
- func (r *RosBag) SetSource(source string)
- func (r *RosBag) WriteJSON(w io.Writer) error
- func (r *RosBag) WriteTopicsJSON(outputPath string, startTime int64, endTime int64, topicsFilter []string) error
- type RosChunk
- type RosConnection
- type RosIndex
- type RosIndexData
- type RosIndexMessageOffsets
- type RosRecordHeader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BufCache is a buffer cache BufCache chan *bytes.Buffer // BagCache is a bag cache BagCache chan *RosBag )
Functions ¶
func DumpTableDefinitions ¶
DumpTableDefinitions dumps HIVE definitions of topics
Types ¶
type RosBag ¶
type RosBag struct { Version string Length int Headers []RosRecordHeader Chunks []RosChunk Indexes []RosIndex Connections map[int32]RosConnection TopicsAsJSON map[string]*bytes.Buffer // contains filtered or unexported fields }
RosBag is main interface to interact with single ROS bag
func (*RosBag) DumpChunkInfo ¶
DumpChunkInfo dumps all messages with related data for debuging
func (*RosBag) DumpChunks ¶
DumpChunks dumps all messages with related data for debuging
func (*RosBag) DumpMessageDefinitions ¶
DumpMessageDefinitions dumps all messages with related data for debuging
func (*RosBag) ParseTopicsToJSON ¶
func (r *RosBag) ParseTopicsToJSON(extraFields string, timeFilter func(int64) bool, topicFilter func(string) bool, addTopicToMeta bool) (err error)
ParseTopicsToJSON parses messages into JSON inside bag structure
type RosChunk ¶
type RosChunk struct {
// contains filtered or unexported fields
}
RosChunk holds data about ROS chunk in the bag
type RosConnection ¶
type RosConnection struct { ConnectionID int32 HeaderTopic string Topic string ConnectionType string MD5sum string MessageDefinition []byte CallerID string Latching string }
RosConnection holds data about ROS connections in the bag
type RosIndex ¶
type RosIndex struct {
Index []RosIndexData
}
RosIndex holds data about index records
type RosIndexData ¶
type RosIndexData struct { ConnectionID int32 MessageCount int32 OffsetArray []RosIndexMessageOffsets }
RosIndexData holds data about index records
type RosIndexMessageOffsets ¶
type RosIndexMessageOffsets struct {
// contains filtered or unexported fields
}
RosIndexMessageOffsets holds data about index records
type RosRecordHeader ¶
type RosRecordHeader struct {
// contains filtered or unexported fields
}
RosRecordHeader holds data about ROS record header
Click to show internal directories.
Click to hide internal directories.