Skip to content

Commit

Permalink
ros2GH-23 Use publisher to serialized message directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Idel-SI authored and anhosi committed Sep 5, 2018
1 parent 363cc67 commit 9f7701e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosbag2/test/rosbag2/rosbag2_write_integration_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class RosBag2IntegrationTestFixture : public Rosbag2TestFixture
auto publisher = publisher_node_->create_publisher<std_msgs::msg::String>(topic_name);

while (rclcpp::ok() && messages_stored_counter_[topic_name] < number_expected_messages) {
publisher->publish(message->serialized_data.get());
publisher->publish(message->serialized_data);
// We need to wait a bit, in order for record to process the messages
std::this_thread::sleep_for(50ms);
}
Expand Down

0 comments on commit 9f7701e

Please sign in to comment.