Skip to content

Commit

Permalink
Planning: fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjiang2018 authored and xiaoxq committed Jan 14, 2020
1 parent cf7d24a commit 4569786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/planning/on_lane_planning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ void OnLanePlanning::AddPartitionedTrajectory(
open_space_debug.partitioned_trajectories().trajectory()) {
auto* partition_line = chart->add_line();
partition_line->set_label(
absl::StrCat("Patitioned ", partitioned_trajectory_label));
absl::StrCat("Partitioned ", partitioned_trajectory_label));
++partitioned_trajectory_label;
for (const auto& point : partitioned_trajectory.trajectory_point()) {
auto* point_debug = partition_line->add_point();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,16 +700,16 @@ bool IterativeAnchoringSmoother::CombinePathAndSpeed(
CHECK_NOTNULL(discretized_trajectory);
discretized_trajectory->clear();
// TODO(Jinyun): move to confs
const double kDenseTimeResoltuion = 0.1;
const double kDenseTimeResolution = 0.1;
const double time_horizon =
speed_points.TotalTime() + kDenseTimeResoltuion * 1.0e-6;
speed_points.TotalTime() + kDenseTimeResolution * 1.0e-6;
if (path_points.empty()) {
AERROR << "path data is empty";
return false;
}
ADEBUG << "speed_points.TotalTime() " << speed_points.TotalTime();
for (double cur_rel_time = 0.0; cur_rel_time < time_horizon;
cur_rel_time += kDenseTimeResoltuion) {
cur_rel_time += kDenseTimeResolution) {
common::SpeedPoint speed_point;
if (!speed_points.EvaluateByTime(cur_rel_time, &speed_point)) {
AERROR << "Fail to get speed point with relative time " << cur_rel_time;
Expand Down

0 comments on commit 4569786

Please sign in to comment.