Skip to content

Commit b6f9ef8

Browse files
authored
fix: fix internal door interface qos (#9144)
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
1 parent e1bc982 commit b6f9ef8

File tree

2 files changed

+3
-2
lines changed
  • common/autoware_component_interface_specs/include/autoware/component_interface_specs
  • simulator/vehicle_door_simulator/src

2 files changed

+3
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct DoorStatus
9292
static constexpr char name[] = "/vehicle/doors/status";
9393
static constexpr size_t depth = 1;
9494
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
95-
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
95+
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
9696
};
9797

9898
} // namespace autoware::component_interface_specs::vehicle

simulator/vehicle_door_simulator/src/dummy_doors.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ DummyDoors::DummyDoors() : Node("dummy_doors")
2929
srv_layout_ = create_service<GetDoorLayout>(
3030
"~/doors/layout", std::bind(&DummyDoors::on_layout, this, _1, _2));
3131

32-
pub_status_ = create_publisher<DoorStatusArray>("~/doors/status", rclcpp::QoS(1));
32+
pub_status_ =
33+
create_publisher<DoorStatusArray>("~/doors/status", rclcpp::QoS(1).transient_local());
3334

3435
const auto period = rclcpp::Rate(5.0).period();
3536
timer_ = rclcpp::create_timer(this, get_clock(), period, [this]() { on_timer(); });

0 commit comments

Comments
 (0)