Show / Hide Table of Contents

Class RosBag

Represents a ROSbag

Inheritance
System.Object
RosBag
Namespace: RosNet.DataModel
Assembly: RosNet.dll
Syntax
public class RosBag : object

Constructors

| Improve this Doc View Source

RosBag(String)

Creates an empty rosbag

Declaration
public RosBag(string path)
Parameters
Type Name Description
System.String path

Properties

| Improve this Doc View Source

BagStartTime

Declaration
public Time BagStartTime { get; }
Property Value
Type Description
Time
| Improve this Doc View Source

Connections

Declaration
public Dictionary<int, Connection> Connections { get; }
Property Value
Type Description
Dictionary<System.Int32, Connection>
| Improve this Doc View Source

Path

Declaration
public string Path { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetConnectionFields()

Makes a dictionary of all the topics and fieldnames in rosbag

Declaration
public Dictionary<string, List<string>> GetConnectionFields()
Returns
Type Description
Dictionary<System.String, List<System.String>>

Dictionary with topics and corresponding fieldnames

| Improve this Doc View Source

GetTimeSeries(String, String)

Makes a dictionary of timestamps and fieldvalues of field with fieldname fieldName

Declaration
public List<(Time, FieldValue)> GetTimeSeries(string topic, string fieldName)
Parameters
Type Name Description
System.String topic
System.String fieldName
Returns
Type Description
List<System.ValueTuple<Time, FieldValue>>

Dictionary with time and corresponding fieldvalue

| Improve this Doc View Source

Read()

Reads the rosbag and updates the fields

Declaration
public void Read()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX