From ec3247686e09571c0d880ab175da48da85b222d0 Mon Sep 17 00:00:00 2001 From: Stephanie Eng Date: Thu, 31 Mar 2022 10:25:31 -0400 Subject: [PATCH 1/3] Update black version --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d825d039ebe1395054a508103b6a13897319c410 Mon Sep 17 00:00:00 2001 From: Stephanie Eng Date: Thu, 31 Mar 2022 10:32:21 -0400 Subject: [PATCH 2/3] Update trajectory_generator.cpp --- src/trajectory_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trajectory_generator.cpp b/src/trajectory_generator.cpp index 55ea48d..3556bdc 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) From 7898340d9175c649e9c272696a1848b1c63d8f31 Mon Sep 17 00:00:00 2001 From: Stephanie Eng Date: Thu, 31 Mar 2022 10:34:06 -0400 Subject: [PATCH 3/3] Update trajectory_generator.cpp --- src/trajectory_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trajectory_generator.cpp b/src/trajectory_generator.cpp index 3556bdc..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)