Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ class DefinitionNotFoundError : public std::exception
class ROSBAG2_CPP_PUBLIC LocalMessageDefinitionSource final
{
public:
/**
* Concatenate the message definition with its dependencies into a self-contained schema.
* The format is different for MSG/SRV/ACTION and IDL definitions, and is described fully in
* docs/message_definition_encoding.md
* For SRV type, root_type must include a string '/srv/'.
* For ACTION type, root_type must include a string '/action/'.
*/
[[deprecated("Use get_full_text_ext() instead, which allows specifying the topic name and "
"provides more flexibility in how the message definition is constructed.")]]
rosbag2_storage::MessageDefinition get_full_text(const std::string & root_type);

/**
* \brief Try to get the message definition and concatenate it with its dependencies into a
* self-contained schema.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,6 @@ const LocalMessageDefinitionSource::MessageSpec & LocalMessageDefinitionSource::
return spec;
}

rosbag2_storage::MessageDefinition LocalMessageDefinitionSource::get_full_text(
const std::string & root_type)
{
return get_full_text_ext(root_type, std::string{});
}

rosbag2_storage::MessageDefinition LocalMessageDefinitionSource::get_full_text_ext(
const std::string & root_type,
const std::string & topic_name)
Expand Down
37 changes: 0 additions & 37 deletions rosbag2_py/rosbag2_py/_transport.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -54,38 +54,16 @@ class PlayOptions:
def __init__(self) -> None: ...

class Player:
@overload
def __init__(self) -> None: ...
@overload
def __init__(self, log_level: str) -> None: ...
@overload
def __init__(self, storage_options: rosbag2_py._storage.StorageOptions, play_options: PlayOptions, log_level: str = ..., node_name: str = ...) -> None: ...
@overload
def __init__(self, storage_options: List[rosbag2_py._storage.StorageOptions], play_options: PlayOptions, log_level: str = ..., node_name: str = ...) -> None: ...
@overload
def burst(self, num_messages: int) -> int: ...
@overload
def burst(self, constsize_t) -> Any: ...
@overload
def burst(self, storage_options: rosbag2_py._storage.StorageOptions, play_options: PlayOptions, num_messages: int) -> None: ...
@overload
def burst(self, num_messages) -> Any: ...
@staticmethod
def cancel() -> None: ...
def get_playback_duration(self) -> int: ...
def get_starting_time(self) -> int: ...
def is_paused(self) -> bool: ...
def pause(self) -> None: ...
@overload
def play(self) -> None: ...
@overload
def play(self, storage_options: rosbag2_py._storage.StorageOptions, play_options: PlayOptions) -> None: ...
@overload
def play(self) -> Any: ...
@overload
def play(self, storage_options: List[rosbag2_py._storage.StorageOptions], play_options: PlayOptions) -> None: ...
@overload
def play(self) -> Any: ...
def play_next(self) -> bool: ...
def resume(self) -> None: ...
def seek(self, time_point: int) -> None: ...
Expand Down Expand Up @@ -123,7 +101,6 @@ class RecordOptions:
regex: str
repeat_all_transient_local_depth: int
repeat_transient_local_messages: Dict[str, int]
rmw_serialization_format: str
services: List[str]
start_paused: bool
static_topics_uri: str
Expand All @@ -136,24 +113,10 @@ class RecordOptions:
def __init__(self) -> None: ...

class Recorder:
@overload
def __init__(self) -> None: ...
@overload
def __init__(self, arg: str) -> None: ...
@overload
def __init__(self, storage_options: rosbag2_py._storage.StorageOptions, record_options: RecordOptions, log_level: str = ..., node_name: str = ...) -> None: ...
@staticmethod
def cancel() -> None: ...
def is_paused(self) -> bool: ...
def pause(self) -> None: ...
@overload
def record(self) -> None: ...
@overload
def record(self) -> Any: ...
@overload
def record(self, storage_options: rosbag2_py._storage.StorageOptions, record_options: RecordOptions, node_name: str = ...) -> None: ...
@overload
def record(self) -> Any: ...
def resume(self) -> None: ...
def start_spin(self) -> None: ...
def stop(self) -> None: ...
Expand Down
11 changes: 0 additions & 11 deletions rosbag2_py/src/rosbag2_py/_message_definitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ PYBIND11_MODULE(_message_definitions, m) {
pybind11::class_<rosbag2_cpp::LocalMessageDefinitionSource>(
m, "LocalMessageDefinitionSource")
.def(pybind11::init<>())
.def(
"get_full_text",
[](rosbag2_cpp::LocalMessageDefinitionSource & self, const std::string & root_type) {
PyErr_WarnEx(PyExc_DeprecationWarning,
"get_full_text() is deprecated, use get_full_text_ext() instead.", 1);
return self.get_full_text_ext(root_type, "");
},
pybind11::arg("root_type"),
"The root type of the message definition. (Internally calls get_full_text_ext with an empty"
" topic name)"
)
.def(
"get_full_text_ext", &rosbag2_cpp::LocalMessageDefinitionSource::get_full_text_ext);
}
Loading
Loading