File tree Expand file tree Collapse file tree 6 files changed +902
-355
lines changed
include/hardware_interface
ros2_control_test_assets/include/ros2_control_test_assets Expand file tree Collapse file tree 6 files changed +902
-355
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,7 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
157
157
{
158
158
// return empty vector by default. For backward compatibility we check if all vectors is empty
159
159
// and if so call on_export_state_interfaces()
160
- std::vector<StateInterface> state_interfaces;
161
- return state_interfaces;
160
+ return {};
162
161
}
163
162
164
163
std::vector<std::shared_ptr<StateInterface>> on_export_state_interfaces ()
@@ -195,8 +194,7 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
195
194
{
196
195
// return empty vector by default. For backward compatibility we check if all vectors is empty
197
196
// and if so call on_export_command_interfaces()
198
- std::vector<CommandInterface> command_interfaces;
199
- return command_interfaces;
197
+ return {};
200
198
}
201
199
202
200
std::vector<std::shared_ptr<CommandInterface>> on_export_command_interfaces ()
Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ class Handle
93
93
const std::string & get_prefix_name () const { return prefix_name_; }
94
94
95
95
double get_value () const
96
- { // BEGIN (Handle export change): for backward compatibility
97
- // TODO(Manuel) return value_ if old functionality is removed
96
+ {
97
+ // BEGIN (Handle export change): for backward compatibility
98
+ // TODO(Manuel) return value_ if old functionality is removed
98
99
THROW_ON_NULLPTR (value_ptr_);
99
100
return *value_ptr_;
100
101
// END
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ class SensorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
141
141
{
142
142
// return empty vector by default. For backward compatibility we check if all vectors is empty
143
143
// and if so call on_export_state_interfaces()
144
- std::vector<StateInterface> state_interfaces;
145
- return state_interfaces;
144
+ return {};
146
145
}
147
146
148
147
std::vector<std::shared_ptr<StateInterface>> on_export_state_interfaces ()
Original file line number Diff line number Diff line change @@ -176,8 +176,7 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
176
176
{
177
177
// return empty vector by default. For backward compatibility we check if all vectors is empty
178
178
// and if so call on_export_state_interfaces()
179
- std::vector<StateInterface> state_interfaces;
180
- return state_interfaces;
179
+ return {};
181
180
}
182
181
183
182
std::vector<std::shared_ptr<StateInterface>> on_export_state_interfaces ()
@@ -227,8 +226,7 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
227
226
{
228
227
// return empty vector by default. For backward compatibility we check if all vectors is empty
229
228
// and if so call on_export_command_interfaces()
230
- std::vector<CommandInterface> command_interfaces;
231
- return command_interfaces;
229
+ return {};
232
230
}
233
231
234
232
std::vector<std::shared_ptr<CommandInterface>> on_export_command_interfaces ()
You can’t perform that action at this time.
0 commit comments