Skip to content

Commit

Permalink
chore(behavior_velocity): add debug cout
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 committed Feb 21, 2022
1 parent 2f49b89 commit d12056d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace behavior_velocity_planner
{
class StopLineModule : public SceneModuleInterface
{
int counter = 0;
using StopLineWithLaneId = std::pair<lanelet::ConstLineString3d, int64_t>;

public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ bool StopLineModule::modifyPathVelocity(
}
}

if (counter % 50 == 0) {
std::cout << "path start_idx: " << start_idx << " stop_idx: " << stop_pose_with_index->index
<< " stop_line_id: " << lane_id_ << " arclength: " << signed_arc_dist_to_stop_point
<< " current_state: " << static_cast<int>(state_) << std::endl;
}
counter++;
return true;
}

Expand Down

0 comments on commit d12056d

Please sign in to comment.