forked from ros2/rosbag2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement service recording and display info about recorded services (r…
…os2#1480) * Implement service record and recorded service info display Signed-off-by: Barry Xu <[email protected]> * Address MichaelOrlov's review comments Signed-off-by: Barry Xu <[email protected]> * Add tests for rosbag2_cpp::Info::read_service_info() Signed-off-by: Barry Xu <[email protected]> * Updated code on exclude parameters Refer to ros2#1483 Signed-off-by: Barry Xu <[email protected]> * Fix flake8 errors Signed-off-by: Barry Xu <[email protected]> * Update code to remove hard-coded values to make the code more readable Signed-off-by: Barry Xu <[email protected]> * Fix a bug on exclude parameter Signed-off-by: Barry Xu <[email protected]> * Update codes on rosbag2 QoS for service event topic Signed-off-by: Barry Xu <[email protected]> * Address the second round of review comments Signed-off-by: Barry Xu <[email protected]> * Updated info test on getting service info Signed-off-by: Barry Xu <[email protected]> * Rename exclude_services to exclude_service_event Signed-off-by: Barry Xu <[email protected]> * Address flakiness in newly added rosbag2_transport tests - Got rid form ambient sleep for waiting for messages to be recorded - Exclude "/rosout" topic from recording Signed-off-by: Michael Orlov <[email protected]> * Use wait_for_srvice_to_be_ready() instead check_service_ready() - Also add default timeout parameter for ClientManager::send_request(..) Signed-off-by: Michael Orlov <[email protected]> * Add rosbag2_test_common::wait_until_condition(..) Signed-off-by: Michael Orlov <[email protected]> * Rewrite get_service_info tests to be more deterministic - Also parameterize tests to use default supported storage plugins Signed-off-by: Michael Orlov <[email protected]> * Renames in the get_service_info tests Signed-off-by: Michael Orlov <[email protected]> * Use `std::filesystem` instead of `rcpputils::fs` functions - Rationale: Deprecation of the rcpputils::fs in future See ros2/rcpputils#164 for details Signed-off-by: Michael Orlov <[email protected]> * Avoid extra metadata readout in `ros2 bag info` verb with `--verbose` Signed-off-by: Michael Orlov <[email protected]> * Add info_end_to_end test with `--verbose` parameter Signed-off-by: Michael Orlov <[email protected]> * Fix bugs in info_with_verbose_option_end_to_end_test Signed-off-by: Barry Xu <[email protected]> * Fix segment fault issue in test_rosbag2_cpp_get_service_info.cpp Signed-off-by: Barry Xu <[email protected]> * Update a fix for info_with_verbose_option_end_to_end_test Signed-off-by: Barry Xu <[email protected]> * Output a warning while setting both '-t' and 'v' for info command Signed-off-by: Barry Xu <[email protected]> * Address comments from Fujita-san Signed-off-by: Barry Xu <[email protected]> * Use topic_in_list instead of service_in_list Signed-off-by: Michael Orlov <[email protected]> * Handle cases when dependent service msg definitions could be in IDL file Signed-off-by: Michael Orlov <[email protected]> * Fix rebase errors - Delete "rosbag2_transport/qos.cpp" which was moved to the rosbag2_storage package during prior PR before rebase Signed-off-by: Michael Orlov <[email protected]> * Fix the path of a library Signed-off-by: Barry Xu <[email protected]> * Resolve the conflicts caused by the rebase Signed-off-by: Barry Xu <[email protected]> * Replace sizeof() with strlen() Signed-off-by: Barry Xu <[email protected]> * Use consistent variable name Signed-off-by: Barry Xu <[email protected]> * Fix a link error on Windows Signed-off-by: Barry Xu <[email protected]> * Use visibility control for format library Signed-off-by: Barry Xu <[email protected]> * Replace rosbag2_format_output by direct source files linkage - Also put `format_service_info(..)` and `format_bag_meta_data(..)` under the rosbag2_py namespace Signed-off-by: Michael Orlov <[email protected]> * Remove header files from pybind modules and delete visibility_control.hpp Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Michael Orlov <[email protected]> Co-authored-by: Michael Orlov <[email protected]>
- Loading branch information
1 parent
cea3fb0
commit 3286736
Showing
62 changed files
with
2,489 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright 2023 Sony Group Corporation. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef ROSBAG2_CPP__SERVICE_UTILS_HPP_ | ||
#define ROSBAG2_CPP__SERVICE_UTILS_HPP_ | ||
|
||
#include <string> | ||
|
||
#include "rosbag2_cpp/visibility_control.hpp" | ||
|
||
namespace rosbag2_cpp | ||
{ | ||
ROSBAG2_CPP_PUBLIC | ||
bool | ||
is_service_event_topic(const std::string & topic, const std::string & topic_type); | ||
|
||
// Call this function after is_service_event_topic() return true | ||
ROSBAG2_CPP_PUBLIC | ||
std::string | ||
service_event_topic_name_to_service_name(const std::string & topic_name); | ||
|
||
// Call this function after is_service_event_topic() return true | ||
ROSBAG2_CPP_PUBLIC | ||
std::string | ||
service_event_topic_type_to_service_type(const std::string & topic_type); | ||
|
||
ROSBAG2_CPP_PUBLIC | ||
size_t | ||
get_serialization_size_for_service_metadata_event(); | ||
|
||
ROSBAG2_CPP_PUBLIC | ||
std::string | ||
service_name_to_service_event_topic_name(const std::string & service_name); | ||
} // namespace rosbag2_cpp | ||
|
||
#endif // ROSBAG2_CPP__SERVICE_UTILS_HPP_ |
Oops, something went wrong.