How to change sim_control start point?
Closed this issue · 8 comments
You can modify the following code and try
*start_point = lane->GetSmoothPoint(10.0) // start at 10m
@daohu527 Thanks for reply! I solved the problem.
I have to one more question.
How to change sim_control speed?
The speed is only 4-5km/h at the maximum.
Your maximum speed is dependent on the planning module "modules/planning/conf/planning.conf"
--planning_upper_speed_limit=20.00
--default_cruise_speed=11.18
Considering that your speed is too low, I think there may be other problems, you may need to check the log to analyze
@daohu527 Thanks!!
Changing the maximum speed solved it.
There is a problem that does not completely terminate after using sim control.
How should this be solved?
I'm using the following command:
./script/bootstrap.sh stop
- sim_control don't need control module
- ./script/bootstrap.sh stop just stop dreamview but not planning and routing
- The strange thing is that you have so many control modules. Normally, you cannot start multiple control modules. Do you modify some codes?
I can give you some advice. You can change the sim control like #13727. Then you make a tool to publish localization message.
Before you open sim control, you need to use the tool to publish the localization where you want. Then after open sim control, it will publish the latest localization as start point
I can give you some advice. You can change the sim control like #13727. Then you make a tool to publish localization message.
Before you open sim control, you need to use the tool to publish the localization where you want. Then after open sim control, it will publish the latest localization as start point
Hi, Thank you for your PR!
I tried to publish /apollo/localization/pose message with playing a bag, but the start point is still a dummy point, not the point I published. That means localization_reader_->empty()
in sim_control.cc is still true, Do you konw what's the problem? Thank you very much!
Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.