Skip to content

Commit

Permalink
Bump version of pre-commit hooks (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 11, 2024
1 parent 0b43291 commit 28cb552
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 @@ -444,8 +444,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 @@ -515,8 +514,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 @@ -273,10 +273,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 28cb552

Please sign in to comment.