Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about adding Scenario #15333

Closed
chh0901 opened this issue Mar 12, 2024 · 3 comments
Closed

Questions about adding Scenario #15333

chh0901 opened this issue Mar 12, 2024 · 3 comments

Comments

@chh0901
Copy link

chh0901 commented Mar 12, 2024

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 20.04):
  • Apollo installed from (source or binary):
  • Apollo version (9.0):
  • Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:

After I installed it through package management according to the tutorial, I wanted to add the scene (lanefollowscenario) and follow the scene related documentation:

使用方式

配置加载 LaneFollowScenario 插件
  • modules/planning/planning_component/conf/planning_config.pb.txt文件中增加standard_planning_config的配置,配置使用当前场景插件。
    # modules/planning/planning_component/conf/planning_config.pb.txt
    
    standard_planning_config {
      planner_type: ......
      planner_public_road_config {
        ......
        scenario {
          name: "LANE_FOLLOW"
          type: "LanefollowScenario"
        }
        ......
      }
    }
    
    

When I follow the above steps to add some code to planning_config.pb.txt, the planning module in dreamview cannot be started, and after running bag, an error is displayed:

E0312 20:04:22.025444 12098 file.cc:84] [mainboard]Failed to parse file /apollo/modules/planning/planning_component/conf/planning_config.pb.txt as text proto.
E0312 20:04:22.025497 12098 file.cc:106] [mainboard]Failed to parse file /apollo/modules/planning/planning_component/conf/planning_config.pb.txt as binary proto.
F0312 20:04:22.025518 12098 planning_component.cc:49] Check failed: ComponentBase::GetProtoConfig(&config_) [planning]failed to load planning config file /apollo/modules/planning/planning_component/conf/planning_config.pb.txt

As long as I don't add part of the code in the tutorial, the planning module can run. Is it because I am missing the relevant package installation or there is a problem in the tutorial.

Supporting materials (screenshots, command lines, code/script snippets):

2024-03-12 21-12-27 的屏幕截图

@chh0901 chh0901 closed this as completed Mar 14, 2024
@leizi111
Copy link

大佬你好,我按照官方文档添加planning场景的时候也遇到了同样的问题,请问大佬你是如何解决的?

@chh0901
Copy link
Author

chh0901 commented Jun 21, 2024

现在Apollo9.0更新了,不用自己添加这个场景,在planning_component的conf文件中已经写好了stand_planning_config,自己手动添加会导致于proto文件声明不一致。不用管这个,正常使用就好

@leizi111
Copy link

好的,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants