diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 866be4e..2956c63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black diff --git a/src/trajectory_generator.cpp b/src/trajectory_generator.cpp index 55ea48d..1057dc7 100644 --- a/src/trajectory_generator.cpp +++ b/src/trajectory_generator.cpp @@ -47,7 +47,7 @@ TrajectoryGenerator::TrajectoryGenerator(uint num_dof, double timestep, double d { // Upsample if num. waypoints would be short. Helps with accuracy upsample(); - size_t max_num_waypoints = static_cast(std::ceil( max_duration / upsampled_timestep_ )); + size_t max_num_waypoints = static_cast(std::ceil(max_duration / upsampled_timestep_)); // Initialize a trajectory generator for each joint for (size_t joint = 0; joint < kNumDof; ++joint)