Skip to content

Commit

Permalink
Add zero angular velocity constraint to zero velocity requested paths
Browse files Browse the repository at this point in the history
  • Loading branch information
camearle20 committed Feb 11, 2024
1 parent 0beef02 commit cd9294d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trajectory_native/src/trajectory_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ class VehicleTrajectoryService final
fmt::print("Adding implicit zero velocity constraint to waypoint {}\n",
segment_start_offset + waypoint_idx);
builder.WptZeroVelocity(segment_start_offset + waypoint_idx);
builder.WptZeroAngularVelocity(segment_start_offset + waypoint_idx);
}
break;
case vts::Waypoint::kZeroVelocity:
fmt::print("Adding zero velocity constraint to waypoint {}\n",
segment_start_offset + waypoint_idx);
builder.WptZeroVelocity(segment_start_offset + waypoint_idx);
builder.WptZeroAngularVelocity(segment_start_offset + waypoint_idx);
break;
case vts::Waypoint::kVehicleVelocity:
fmt::print("Adding vehicle velocity constraint ({}, {}, {}) to waypoint {}\n",
Expand Down

0 comments on commit cd9294d

Please sign in to comment.