ros2_control - jazzy
Loading...
Searching...
No Matches
resource_manager_params.hpp
1// Copyright 2025 ros2_control Development Team
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef HARDWARE_INTERFACE__TYPES__RESOURCE_MANAGER_PARAMS_HPP_
16#define HARDWARE_INTERFACE__TYPES__RESOURCE_MANAGER_PARAMS_HPP_
17
18#include <memory>
19#include <string>
20#include "rclcpp/rclcpp.hpp"
21
22namespace hardware_interface
23{
24
30{
31 ResourceManagerParams() = default;
37 std::string robot_description = "";
38
43 rclcpp::Clock::SharedPtr clock = nullptr;
44
49 rclcpp::Logger logger = rclcpp::get_logger("resource_manager");
50
56 rclcpp::Executor::SharedPtr executor = nullptr;
57
62 bool activate_all = false;
63
69 unsigned int update_rate = 100;
70};
71
72} // namespace hardware_interface
73
74#endif // HARDWARE_INTERFACE__TYPES__RESOURCE_MANAGER_PARAMS_HPP_
Definition actuator.hpp:22
Parameters required for the construction and initial setup of a ResourceManager. This struct is typic...
Definition resource_manager_params.hpp:30
std::string robot_description
The URDF string describing the robot's hardware components. Can be empty if ResourceManager is constr...
Definition resource_manager_params.hpp:37
bool activate_all
Flag indicating if all hardware components found in the URDF should be automatically activated after ...
Definition resource_manager_params.hpp:62
unsigned int update_rate
The update rate (in Hz) of the ControllerManager. This can be used by ResourceManager to configure as...
Definition resource_manager_params.hpp:69
rclcpp::Executor::SharedPtr executor
Shared pointer to the rclcpp::Executor instance that the ResourceManager and its components (includin...
Definition resource_manager_params.hpp:56
rclcpp::Logger logger
Logger instance used by the ResourceManager. This is typically obtained from the node via get_logger(...
Definition resource_manager_params.hpp:49
rclcpp::Clock::SharedPtr clock
Shared pointer to the Clock used by the ResourceManager. This is typically obtained from the node via...
Definition resource_manager_params.hpp:43