44 std::vector<hardware_interface::StateInterface> export_state_interfaces()
override;
46 std::vector<hardware_interface::CommandInterface> export_command_interfaces()
override;
48 return_type prepare_command_mode_switch(
49 const std::vector<std::string> & start_interfaces,
50 const std::vector<std::string> & stop_interfaces)
override;
52 return_type perform_command_mode_switch(
53 const std::vector<std::string> & start_interfaces,
54 const std::vector<std::string> & stop_interfaces)
override;
56 return_type read(
const rclcpp::Time & time,
const rclcpp::Duration & period)
override;
58 return_type
write(
const rclcpp::Time & ,
const rclcpp::Duration & )
override
60 return return_type::OK;
71 const std::vector<std::string> standard_interfaces_ = {
77 std::size_t joint_index;
78 std::size_t mimicked_joint_index;
79 double multiplier = 1.0;
81 std::vector<MimicJoint> mimic_joints_;
85 std::vector<std::vector<double>> joint_states_;
87 std::vector<std::string> other_interfaces_;
90 std::vector<std::vector<double>> other_states_;
92 std::vector<std::string> sensor_interfaces_;
95 std::vector<std::vector<double>> sensor_states_;
97 std::vector<std::string> gpio_interfaces_;
100 std::vector<std::vector<double>> gpio_commands_;
101 std::vector<std::vector<double>> gpio_states_;
104 template <
typename HandleType>
106 const std::string & name,
const std::vector<std::string> & interface_list,
107 const std::string & interface_name,
const size_t vector_index,
108 std::vector<std::vector<double>> & values, std::vector<HandleType> & interfaces);
110 void initialize_storage_vectors(
111 std::vector<std::vector<double>> & commands, std::vector<std::vector<double>> & states,
112 const std::vector<std::string> & interfaces,
113 const std::vector<hardware_interface::ComponentInfo> & component_infos);
115 template <
typename InterfaceType>
116 bool populate_interfaces(
117 const std::vector<hardware_interface::ComponentInfo> & components,
118 std::vector<std::string> & interfaces, std::vector<std::vector<double>> & storage,
119 std::vector<InterfaceType> & target_interfaces,
bool using_state_interfaces);
121 bool use_mock_gpio_command_interfaces_;
122 bool use_mock_sensor_command_interfaces_;
124 double position_state_following_offset_;
125 std::string custom_interface_with_following_offset_;
126 size_t index_custom_interface_with_following_offset_;
128 bool calculate_dynamics_;
129 std::vector<size_t> joint_control_mode_;
131 bool command_propagation_disabled_;
return_type write(const rclcpp::Time &, const rclcpp::Duration &) override
Write the current command values to the actuator.
Definition generic_system.hpp:58