Skip to content

Commit

Permalink
correct initialization of rmw_qos_profile_t struct instances
Browse files Browse the repository at this point in the history
Signed-off-by: Miaofei <miaofei@amazon.com>
  • Loading branch information
mm318 committed Apr 12, 2019
1 parent a5d2c6d commit b8bf455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions test_rclcpp/test/test_client_scope_consistency_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@ TEST(CLASSNAME(service_client, RMW_IMPLEMENTATION), client_scope_consistency_reg
auto node = rclcpp::Node::make_shared("client_scope_consistency_regression_test");

// Replicate the settings that caused https://github.com/ros2/system_tests/issues/153
rmw_qos_profile_t rmw_qos_profile =
{
RMW_QOS_POLICY_HISTORY_KEEP_LAST,
10,
RMW_QOS_POLICY_RELIABILITY_RELIABLE,
RMW_QOS_POLICY_DURABILITY_VOLATILE,
false
};
rmw_qos_profile_t rmw_qos_profile = rmw_qos_profile_default;
rclcpp::executor::FutureReturnCode ret1;

// Extra scope so the first client will be deleted afterwards
Expand Down
9 changes: 1 addition & 8 deletions test_rclcpp/test/test_client_scope_consistency_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ int main(int argc, char ** argv)
auto node = rclcpp::Node::make_shared("client_scope_consistency_regression_test_server");

// Replicate the settings that caused https://github.com/ros2/system_tests/issues/153
rmw_qos_profile_t rmw_qos_profile =
{
RMW_QOS_POLICY_HISTORY_KEEP_LAST,
10,
RMW_QOS_POLICY_RELIABILITY_RELIABLE,
RMW_QOS_POLICY_DURABILITY_VOLATILE,
false
};
rmw_qos_profile_t rmw_qos_profile = rmw_qos_profile_default;
auto service = node->create_service<test_rclcpp::srv::AddTwoInts>(
"client_scope", handle_add_two_ints, rmw_qos_profile);

Expand Down

0 comments on commit b8bf455

Please sign in to comment.