Skip to content

Commit

Permalink
Add fixes to the added flags
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 3, 2024
1 parent b58f9d4 commit 6edde91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ inline bool check_state_tolerance_per_joint(
if (show_errors)
{
const auto logger = rclcpp::get_logger("tolerances");
RCLCPP_ERROR(logger, "State tolerances failed for joint %d:", joint_idx);
RCLCPP_ERROR(logger, "State tolerances failed for joint %ld:", joint_idx);

if (state_tolerance.position > 0.0 && abs(error_position) > state_tolerance.position)
{
Expand Down
4 changes: 2 additions & 2 deletions pid_controller/src/pid_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ controller_interface::CallbackReturn PidController::on_configure(
if (params_.use_external_measured_states)
{
auto measured_state_callback =
[&](const std::shared_ptr<ControllerMeasuredStateMsg> msg) -> void
[&](const std::shared_ptr<ControllerMeasuredStateMsg> state_msg) -> void
{
// TODO(destogl): Sort the input values based on joint and interface names
measured_state_.writeFromNonRT(msg);
measured_state_.writeFromNonRT(state_msg);
};
measured_state_subscriber_ = get_node()->create_subscription<ControllerMeasuredStateMsg>(
"~/measured_state", subscribers_qos, measured_state_callback);
Expand Down

0 comments on commit 6edde91

Please sign in to comment.