Skip to content

Commit ffdb2cc

Browse files
interimaddTakahisa.Ishikawa
andauthored
fix(component_interface_specs): change ControlCommand QoS to volatile (#833)
* fix(component_interface_specs): change ControlCommand QoS durability to volatile Change the QoS durability of ControlCommand from TRANSIENT_LOCAL to VOLATILE. Signed-off-by: Takahisa.Ishikawa <takahisa.ishikawa@tier4.jp> * test(component_interface_spec): update ControlCommand QoS durability to volatile on test Signed-off-by: Takahisa.Ishikawa <takahisa.ishikawa@tier4.jp> --------- Signed-off-by: Takahisa.Ishikawa <takahisa.ishikawa@tier4.jp> Co-authored-by: Takahisa.Ishikawa <takahisa.ishikawa@tier4.jp>
1 parent 0ae1438 commit ffdb2cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/autoware_component_interface_specs/include/autoware/component_interface_specs/control.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ControlCommand
2929
static constexpr char name[] = "/control/command/control_cmd";
3030
static constexpr size_t depth = 1;
3131
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
32-
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
32+
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
3333
};
3434

3535
} // namespace autoware::component_interface_specs::control

common/autoware_component_interface_specs/test/test_control.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ TEST(control, interface)
2121
size_t depth = 1;
2222
EXPECT_EQ(ControlCommand::depth, depth);
2323
EXPECT_EQ(ControlCommand::reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
24-
EXPECT_EQ(ControlCommand::durability, RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL);
24+
EXPECT_EQ(ControlCommand::durability, RMW_QOS_POLICY_DURABILITY_VOLATILE);
2525

2626
const auto qos = autoware::component_interface_specs::get_qos<ControlCommand>();
2727
EXPECT_EQ(qos.depth(), depth);
2828
EXPECT_EQ(qos.reliability(), rclcpp::ReliabilityPolicy::Reliable);
29-
EXPECT_EQ(qos.durability(), rclcpp::DurabilityPolicy::TransientLocal);
29+
EXPECT_EQ(qos.durability(), rclcpp::DurabilityPolicy::Volatile);
3030
}

0 commit comments

Comments
 (0)