Skip to content
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