Skip to content

Commit

Permalink
Add comments to the newly added variables
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 19, 2025
1 parent 934e4fd commit 61ee0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class ControllerManager : public rclcpp::Node
int updated_controllers_index_ = 0;
/// The index of the controllers list being used in the real-time thread.
int used_by_realtime_controllers_index_ = -1;

/// The callback to be called when the list is switched
std::function<void()> on_switch_callback_ = nullptr;
};

Expand Down
1 change: 1 addition & 0 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,7 @@ class ResourceStorage
/// List of all claimed command interfaces
std::unordered_map<std::string, bool> claimed_command_interface_map_;

/// The callback to be called when a component state is switched
std::function<void()> on_component_state_switch_callback_ = nullptr;

// Update rate of the controller manager, and the clock interface of its node
Expand Down

0 comments on commit 61ee0c4

Please sign in to comment.