apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Vehicle does not stop at the routing end point

Open gulshan216 opened this issue 8 years ago • 5 comments

Hi,

I am using Apollo 2.5, when trying to add my own route and sending the routing request, but the vehicle does not seem to stop at the routing endpoint. In Dreamview it shows the vehicle keeps on going forward after the routing endpoint for a while and then shows the vehicle stopped at the routing endpoint itself. Seems weird. Can someone explain why? Also which function in planning module handles this?

gulshan216 avatar Jul 26 '18 21:07 gulshan216

Hi gulshan, Vehicle has its Inertia according to its speed and weight, so it isn't perfect control. In planning, destination.cc, build pull-over decision upon arriving at destination,
int Destination::PullOver(common::PointENU* const dest_point) { auto* planning_state = GetPlanningStatus()->mutable_planning_state(); if (!planning_state->has_pull_over() || !planning_state->pull_over().in_pull_over()) { planning_state->clear_pull_over(); auto pull_over = planning_state->mutable_pull_over(); pull_over->set_in_pull_over(true); pull_over->set_reason(PullOverStatus::DESTINATION); pull_over->set_status_set_time(Clock::NowInSeconds());

if (dest_point) {
  pull_over->mutable_inlane_dest_point()->set_x(dest_point->x());
  pull_over->mutable_inlane_dest_point()->set_y(dest_point->y());
}

}

douqian avatar Jul 28 '18 13:07 douqian

This function is not there in Apollo 2.5. It is only included in Apollo 3.0 i guess. So do you think i need to port this functionality from 3.0 or upgrade completely to 3.0 to get the desired functionality.

gulshan216 avatar Jul 30 '18 22:07 gulshan216

@douqian

gulshan216 avatar Aug 01 '18 05:08 gulshan216

Suggest you to upgrade the project to 3.0, because it includes the latest bug fix and new feature.

douqian avatar Aug 01 '18 06:08 douqian

Yes updating to 3.0 solved the problem. Thanks!!

gulshan216 avatar Aug 02 '18 18:08 gulshan216