Skip to content

Commit

Permalink
Fix some small issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl committed Apr 26, 2022
1 parent e4a5275 commit 48c4e6c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ controller_interface::CallbackReturn ChainableForwardController::on_configure(
const rclcpp_lifecycle::State & previous_state)
{
auto ret = execute_configure(previous_state, command_interfaces_);
RCLCPP_ERROR(get_node()->get_logger(), "Configure is successful, now tryting configure ref_itfs");
if (ret != CallbackReturn::SUCCESS)
{
return ret;
Expand All @@ -53,11 +52,6 @@ controller_interface::CallbackReturn ChainableForwardController::on_configure(
reference_interfaces_.resize(
reference_interface_names_.size(), std::numeric_limits<double>::quiet_NaN());

for (const auto & value : reference_interfaces_)
{
RCLCPP_ERROR(get_node()->get_logger(), "Reference interface value is %f", value);
}

return CallbackReturn::SUCCESS;
}

Expand Down Expand Up @@ -124,6 +118,8 @@ controller_interface::return_type ChainableForwardController::update_reference_f
{
reference_interfaces_ = (*joint_commands)->data;
}

return controller_interface::return_type::OK;
}

controller_interface::return_type ChainableForwardController::update_and_write_commands(
Expand Down

0 comments on commit 48c4e6c

Please sign in to comment.