Skip to content

Commit

Permalink
Bump version of pre-commit hooks (#1073) (#1074)
Browse files Browse the repository at this point in the history
(cherry picked from commit 28cb552)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and github-actions[bot] authored Mar 12, 2024
1 parent 6276f96 commit 468e030
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repos:

# CPP hooks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
rev: v18.1.0
hooks:
- id: clang-format
args: ['-fallback-style=none', '-i']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,7 @@ bool JointTrajectoryController::read_state_from_command_interfaces(JointTrajecto
auto interface_has_values = [](const auto & joint_interface)
{
return std::find_if(
joint_interface.begin(), joint_interface.end(),
[](const auto & interface)
joint_interface.begin(), joint_interface.end(), [](const auto & interface)
{ return std::isnan(interface.get().get_value()); }) == joint_interface.end();
};

Expand Down Expand Up @@ -548,8 +547,7 @@ bool JointTrajectoryController::read_commands_from_command_interfaces(
auto interface_has_values = [](const auto & joint_interface)
{
return std::find_if(
joint_interface.begin(), joint_interface.end(),
[](const auto & interface)
joint_interface.begin(), joint_interface.end(), [](const auto & interface)
{ return std::isnan(interface.get().get_value()); }) == joint_interface.end();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,9 @@ class TrajectoryControllerTest : public ::testing::Test
{
auto has_nonzero_vel_param =
std::find_if(
parameters.begin(), parameters.end(),
[](const rclcpp::Parameter & param) {
return param.get_name() == "allow_nonzero_velocity_at_trajectory_end";
}) != parameters.end();
parameters.begin(), parameters.end(), [](const rclcpp::Parameter & param)
{ return param.get_name() == "allow_nonzero_velocity_at_trajectory_end"; }) !=
parameters.end();

std::vector<rclcpp::Parameter> parameters_local = parameters;
if (!has_nonzero_vel_param)
Expand Down

0 comments on commit 468e030

Please sign in to comment.