Skip to content

Commit

Permalink
fix: fix internal door interface qos (autowarefoundation#9144)
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi authored and mkuri committed Nov 7, 2024
1 parent 8f03868 commit 787f215
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct DoorStatus
static constexpr char name[] = "/vehicle/doors/status";
static constexpr size_t depth = 1;
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
};

} // namespace vehicle_interface
Expand Down
3 changes: 2 additions & 1 deletion simulator/vehicle_door_simulator/src/dummy_doors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ DummyDoors::DummyDoors() : Node("dummy_doors")
srv_layout_ = create_service<GetDoorLayout>(
"~/doors/layout", std::bind(&DummyDoors::on_layout, this, _1, _2));

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

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

0 comments on commit 787f215

Please sign in to comment.