Skip to content

Commit

Permalink
Apply changes
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
  • Loading branch information
irenebm committed Nov 24, 2023
1 parent 4ccad5f commit a776e89
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
18 changes: 9 additions & 9 deletions ddsrecorder/src/cpp/tool/DdsRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ DdsRecorder::DdsRecorder(
// Create MCAP Handler configuration
participants::McapHandlerConfiguration handler_config(
mcap_output_settings,
configuration.max_pending_samples,
configuration.buffer_size,
configuration.event_window,
configuration.cleanup_period,
configuration.log_publish_time,
configuration.only_with_type,
configuration.mcap_writer_options,
configuration.record_types,
configuration.ros2_types);
configuration_.max_pending_samples,
configuration_.buffer_size,
configuration_.event_window,
configuration_.cleanup_period,
configuration_.log_publish_time,
configuration_.only_with_type,
configuration_.mcap_writer_options,
configuration_.record_types,
configuration_.ros2_types);

// Create MCAP Handler
mcap_handler_ = std::make_shared<participants::McapHandler>(
Expand Down
1 change: 0 additions & 1 deletion ddsrecorder_participants/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ enable_language(CXX)
###############################################################################
# Package cmake_utils is required to get every cmake macro needed
find_package(cmake_utils REQUIRED)
find_package(cpp_utils REQUIRED)

###############################################################################
# Project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,9 @@ mcap::ChannelId McapHandler::create_channel_id_nts_(
// Create new channel
mcap::KeyValueMap metadata = {};
metadata[QOS_SERIALIZATION_QOS] = serialize_qos_(topic.topic_qos);
metadata[ROS2_TYPES] =
configuration_.ros2_types ? topic.m_topic_name.rfind("rt/",
0) == 0 ? "true" : "false" : "false";
std::string topic_name =
configuration_.ros2_types ? utils::demangle_if_ros_topic(topic.m_topic_name) : topic.m_topic_name;
metadata[ROS2_TYPES] = topic_name.compare(topic.m_topic_name) == 0 ? "true" : "false";
mcap::Channel new_channel(topic_name, "cdr", schema_id, metadata);
mcap_writer_.addChannel(new_channel);
auto channel_id = new_channel.id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

#include <cpp_utils/exception/InconsistencyException.hpp>
#include <cpp_utils/Log.hpp>
#include <cpp_utils/ros2_mangling.hpp>
#include <cpp_utils/time/time_utils.hpp>
#include <cpp_utils/types/cast.hpp>
#include <cpp_utils/utils.hpp>
#include <cpp_utils/ros2_mangling.hpp>

#include <ddspipe_core/types/data/RtpsPayloadData.hpp>
#include <ddspipe_core/types/dds/Payload.hpp>

#include <ddspipe_participants/reader/auxiliar/BlankReader.hpp>
#include <ddspipe_participants/writer/auxiliar/BlankWriter.hpp>

#include <ddsrecorder_participants/replayer/McapReaderParticipant.hpp>
#include <ddsrecorder_participants/constants.hpp>
#include <ddsrecorder_participants/replayer/McapReaderParticipant.hpp>

namespace eprosima {
namespace ddsrecorder {
Expand Down
2 changes: 0 additions & 2 deletions ddsreplayer/src/cpp/tool/DdsReplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,6 @@ void DdsReplayer::create_dynamic_writer_(
"Failed to create " << topic->type_name << " DynamicType, aborting dynamic writer creation...");
return;
}
logWarning(DDSREPLAYER_REPLAYER,
"Succesfully create " << topic->type_name << " DynamicType...");

fastdds::dds::TypeSupport type(new fastrtps::types::DynamicPubSubType(dyn_type));

Expand Down
4 changes: 2 additions & 2 deletions docs/rst/notes/forthcoming_version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Next release will include the following **DDS Recorder tool configuration featur
* New configuration options (``timestamp-format`` and ``local-timestamp``) available for :ref:`output file <recorder_usage_configuration_outputfile>` settings.
* New configuration option (``topics``) to configure the :ref:`Manual Topics <recorder_manual_topics>`.
* Rename ``max-reception-rate`` to ``max-rx-rate``.
* Record information in either ROS 2 format or the raw DDS format (see :ref:`Topic Type Format <recorder_usage_configuration_topictypeformat>`).
* Record data in either ROS 2 format or the raw DDS format (see :ref:`Topic Type Format <recorder_usage_configuration_topictypeformat>`).

Next release will include the following **DDS Replayer tool configuration features**:

* New configuration option (``topics``) to configure the :ref:`Manual Topics <replayer_manual_topics>`.
* New configuration option (``max-tx-rate``) to configure the :ref:`Max transmission rate <replayer_max_tx_rate>`.
* Remove the support for `Built-in Topics <https://dds-recorder.readthedocs.io/en/v0.2.0/rst/replaying/usage/configuration.html#built-in-topics>`_.
* Replay information in either ROS 2 format or the raw DDS format.
* Read data in either ROS 2 format or the raw DDS format.

0 comments on commit a776e89

Please sign in to comment.