Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Fix RectangularSet2d initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja authored Aug 23, 2023
1 parent 9c9a182 commit 93fa28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path/SwervePathBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void SwervePathBuilder::SgmtVelocityMagnitude(size_t fromIdx, size_t toIdx,
double v, bool includeWpts) {
Set2d set = EllipticalSet2d{v, v, EllipticalSet2d::Direction::kInside};
if (v == 0) {
set = RectangularSet2d{0.0, 0.0, RectangularSet2d::Direction::kInside};
set = RectangularSet2d{0.0, 0.0};
}
SgmtConstraint(fromIdx, toIdx,
HolonomicVelocityConstraint{
Expand Down

0 comments on commit 93fa28e

Please sign in to comment.