Skip to content

Commit

Permalink
Update keep_last values
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Oct 3, 2024
1 parent 1350d54 commit f61f8bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rmf_fleet_adapter/src/rmf_fleet_adapter/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ TaskManagerPtr TaskManager::make(
TaskStateUpdateTopicName, reliable_transient_qos);
mgr->_task_log_update_pub =
mgr->_context->node()->create_publisher<TaskLogUpdateMsg>(
TaskLogUpdateTopicName, reliable_transient_qos);
TaskLogUpdateTopicName, reliable_transient_qos.keep_last(100));

const std::vector<nlohmann::json> schemas = {
rmf_api_msgs::schemas::task_state,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,10 @@ class FleetUpdateHandle::Implementation

handle->_pimpl->fleet_state_update_pub =
handle->_pimpl->node->create_publisher<FleetStateUpdateMsg>(
FleetStateUpdateTopicName, reliable_transient_qos);
FleetStateUpdateTopicName, reliable_transient_qos.keep_last(10));
handle->_pimpl->fleet_log_update_pub =
handle->_pimpl->node->create_publisher<FleetLogUpdateMsg>(
FleetLogUpdateTopicName, reliable_transient_qos);
FleetLogUpdateTopicName, reliable_transient_qos.keep_last(100));

// Add PerformAction event to deserialization
auto validator = handle->_pimpl->deserialization.make_validator_shared(
Expand Down

0 comments on commit f61f8bd

Please sign in to comment.