foxglove-sdk 0.6.2__cp312-cp312-win32.whl → 0.16.6__cp312-cp312-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ class CloudSink:
2
+ """
3
+ A cloud sink for remote visualization and teleop.
4
+ """
5
+
6
+ def __init__(self) -> None: ...
7
+ def stop(self) -> None:
8
+ """Gracefully disconnect from the cloud sink, waiting for shutdown to complete."""
9
+ ...
@@ -0,0 +1,125 @@
1
+ from enum import Enum
2
+ from typing import Any
3
+
4
+ class MCAPCompression(Enum):
5
+ """
6
+ Compression options for content in an MCAP file.
7
+ """
8
+
9
+ Zstd = 0
10
+ Lz4 = 1
11
+
12
+ class MCAPWriteOptions:
13
+ """
14
+ Options for the MCAP writer.
15
+
16
+ :param compression: Specifies the compression that should be used on chunks. Defaults to Zstd.
17
+ Pass `None` to disable compression.
18
+ :param profile: Specifies the profile that should be written to the MCAP Header record.
19
+ :param chunk_size: Specifies the target uncompressed size of each chunk.
20
+ :param use_chunks: Specifies whether to use chunks for storing messages.
21
+ :param emit_statistics: Specifies whether to write a statistics record in the summary section.
22
+ :param emit_summary_offsets: Specifies whether to write summary offset records.
23
+ :param emit_message_indexes: Specifies whether to write message index records after each chunk.
24
+ :param emit_chunk_indexes: Specifies whether to write chunk index records in the summary
25
+ section.
26
+ :param disable_seeking: Specifies whether to disable seeking backwards/forwards when writing.
27
+ Use this when writing to a non-seekable file-like object (e.g. a wrapped pipe or network
28
+ socket). The seek() implementation must still support `seek(0, SEEK_CUR)` and
29
+ `seek(current_position, SEEK_SET)`.
30
+ :param repeat_channels: Specifies whether to repeat each channel record from the data section
31
+ in the summary section.
32
+ :param repeat_schemas: Specifies whether to repeat each schema record from the data section in
33
+ the summary section.
34
+ :param calculate_chunk_crcs: Specifies whether to calculate and write CRCs for chunk records.
35
+ :param calculate_data_section_crc: Specifies whether to calculate and write a data section CRC
36
+ into the DataEnd record.
37
+ :param calculate_summary_section_crc: Specifies whether to calculate and write a summary section
38
+ CRC into the Footer record.
39
+ """
40
+
41
+ def __init__(
42
+ self,
43
+ *,
44
+ compression: MCAPCompression | None = MCAPCompression.Zstd,
45
+ profile: str | None = None,
46
+ chunk_size: int | None = None,
47
+ use_chunks: bool = False,
48
+ emit_statistics: bool = True,
49
+ emit_summary_offsets: bool = True,
50
+ emit_message_indexes: bool = True,
51
+ emit_chunk_indexes: bool = True,
52
+ disable_seeking: bool = False,
53
+ repeat_channels: bool = True,
54
+ repeat_schemas: bool = True,
55
+ calculate_chunk_crcs: bool = True,
56
+ calculate_data_section_crc: bool = True,
57
+ calculate_summary_section_crc: bool = True,
58
+ ) -> None: ...
59
+
60
+ class MCAPWriter:
61
+ """
62
+ A writer for logging messages to an MCAP file.
63
+
64
+ Obtain an instance by calling :py:func:`open_mcap`.
65
+
66
+ This class may be used as a context manager, in which case the writer will
67
+ be closed when you exit the context.
68
+
69
+ If the writer is not closed by the time it is garbage collected, it will be
70
+ closed automatically, and any errors will be logged.
71
+ """
72
+
73
+ def __init__(
74
+ self,
75
+ *,
76
+ allow_overwrite: bool | None = False,
77
+ writer_options: MCAPWriteOptions | None = None,
78
+ ) -> None: ...
79
+ def __enter__(self) -> "MCAPWriter": ...
80
+ def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
81
+ def close(self) -> None:
82
+ """
83
+ Close the writer explicitly.
84
+
85
+ You may call this to explicitly close the writer. Note that the writer
86
+ will be automatically closed when it is garbage-collected, or when
87
+ exiting the context manager.
88
+ """
89
+ ...
90
+
91
+ def write_metadata(self, name: str, metadata: dict[str, str]) -> None:
92
+ """
93
+ Write metadata to the MCAP file.
94
+
95
+ Metadata consists of key-value string pairs associated with a name.
96
+ If the metadata dictionary is empty, this method does nothing.
97
+
98
+ :param name: Name identifier for this metadata record
99
+ :param metadata: Dictionary of key-value pairs to store
100
+ """
101
+ ...
102
+
103
+ def attach(
104
+ self,
105
+ *,
106
+ log_time: int,
107
+ create_time: int,
108
+ name: str,
109
+ media_type: str,
110
+ data: bytes,
111
+ ) -> None:
112
+ """
113
+ Write an attachment to the MCAP file.
114
+
115
+ Attachments are arbitrary binary data that can be stored alongside messages.
116
+ Common uses include storing configuration files, calibration data, or other
117
+ reference material related to the recording.
118
+
119
+ :param log_time: Time at which the attachment was logged, in nanoseconds since epoch.
120
+ :param create_time: Time at which the attachment data was created, in nanoseconds since epoch.
121
+ :param name: Name of the attachment (e.g., "config.json").
122
+ :param media_type: MIME type of the attachment (e.g., "application/json").
123
+ :param data: Binary content of the attachment.
124
+ """
125
+ ...