File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
whole_body_controllers/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ auto IKController::on_init() -> controller_interface::CallbackReturn
80
80
*model_ = reduced_model;
81
81
data_ = std::make_shared<pinocchio::Data>(*model_);
82
82
83
- position_interface_names_.reserve (model_->nq );
84
- velocity_interface_names_.reserve (model_->nv );
83
+ position_interface_names_.resize (model_->nq );
84
+ velocity_interface_names_.resize (model_->nv );
85
85
86
86
// save the interface names in the same order as the model
87
87
// start at index 1 to skip the universe joint
@@ -283,8 +283,8 @@ auto IKController::update_reference_from_subscribers(const rclcpp::Time & /*time
283
283
for (std::size_t i = 0 ; i < reference.size (); ++i) {
284
284
reference_interfaces_[i] = reference[i];
285
285
}
286
-
287
286
common::messages::reset_message (current_reference);
287
+
288
288
return controller_interface::return_type::OK;
289
289
}
290
290
You can’t perform that action at this time.
0 commit comments