Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update black version #87

Open
wants to merge 3 commits into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion src/trajectory_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(std::ceil( max_duration / upsampled_timestep_ ));
size_t max_num_waypoints = static_cast<size_t>(std::ceil(max_duration / upsampled_timestep_));

// Initialize a trajectory generator for each joint
for (size_t joint = 0; joint < kNumDof; ++joint)
Expand Down