@foxglove/rosbag2
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -25,10 +25,7 @@ "use strict"; | ||
const rawMessage = res.value; | ||
const { topic, timestamp, data } = rawMessage; | ||
if (this.decoder == undefined) { | ||
return { value: rawMessage, done: false }; | ||
return { value: { topic, timestamp, data, value: undefined }, done: false }; | ||
} | ||
const value = { | ||
topic: rawMessage.topic, | ||
timestamp: rawMessage.timestamp, | ||
data: this.decoder(rawMessage), | ||
}; | ||
const value = { topic, timestamp, data, value: this.decoder(rawMessage) }; | ||
return { value, done: false }; | ||
@@ -35,0 +32,0 @@ } |
@@ -29,3 +29,4 @@ import { Duration, Time } from "@foxglove/rostime"; | ||
timestamp: Time; | ||
data: unknown; | ||
data: Uint8Array; | ||
value: unknown; | ||
}; | ||
@@ -32,0 +33,0 @@ export declare type MessageReadOptions = { |
{ | ||
"name": "@foxglove/rosbag2", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "ROS2 (Robot Operating System) bag reader and writer abstract implementation", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -32,11 +32,8 @@ import type { Message, RawMessage } from "./types"; | ||
const rawMessage = res.value; | ||
const { topic, timestamp, data } = rawMessage; | ||
if (this.decoder == undefined) { | ||
return { value: rawMessage, done: false }; | ||
return { value: { topic, timestamp, data, value: undefined }, done: false }; | ||
} | ||
const value: Message = { | ||
topic: rawMessage.topic, | ||
timestamp: rawMessage.timestamp, | ||
data: this.decoder(rawMessage), | ||
}; | ||
const value: Message = { topic, timestamp, data, value: this.decoder(rawMessage) }; | ||
return { value, done: false }; | ||
@@ -43,0 +40,0 @@ } |
@@ -34,3 +34,4 @@ import { Duration, Time } from "@foxglove/rostime"; | ||
timestamp: Time; | ||
data: unknown; | ||
data: Uint8Array; | ||
value: unknown; | ||
}; | ||
@@ -37,0 +38,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86803
1465