apollo icon indicating copy to clipboard operation
apollo copied to clipboard

sim_control cannot reset localization if restart

Open col-in-coding opened this issue 3 years ago • 1 comments

I fixed the bug for sim_control. sim_control won't reset localization if it was restarted.

col-in-coding avatar Aug 18 '22 07:08 col-in-coding

@qwetqwe @changsh726 @daohu527 Hey guys, pls review my recent PR

https://github.com/ApolloAuto/apollo/pull/14563 https://github.com/ApolloAuto/apollo/pull/14562 https://github.com/ApolloAuto/apollo/pull/14509 https://github.com/ApolloAuto/apollo/pull/14503 https://github.com/ApolloAuto/apollo/pull/14499

Thank you so much

col-in-coding avatar Aug 18 '22 07:08 col-in-coding

Hi, hope you are doing well!

I use SimControl and I am curious about why you want to reset localization when restarting SimControl.

Currently, if you pause SimControl and restart it, it will just continue from where it left off. Are you proposing, in the same use case described above, it should reset the vehicle to the initial dummy position map_service_->GetStartPoint(&start_point)?

YuqiHuai avatar Dec 08 '22 05:12 YuqiHuai

Hi, hope you are doing well!

I use SimControl and I am curious about why you want to reset localization when restarting SimControl.

Currently, if you pause SimControl and restart it, it will just continue from where it left off. Are you proposing, in the same use case described above, it should reset the vehicle to the initial dummy position map_service_->GetStartPoint(&start_point)?

By default, you are able to jump to any starting point for different scenarios. Anyone may shuttle down SimControl by mistake, and this functionality not works any more even restart the SimControl

col-in-coding avatar Dec 08 '22 06:12 col-in-coding