ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.1k stars 9.69k forks source link

mainboard multi dag list file #13190

Closed sinopec closed 1 year ago

sinopec commented 3 years ago

In mainboard source code, each dag file must be placed after an "-d" parameter. But in cyber_launch,while multi dag files are used in s single process, cyber_launch will place all dag files after a single -d parameter.,this will cause a mainboard open error.

daohu527 commented 3 years ago

I test below command and it realy work, so can you describe your problem in detail ?

mainboard -d modules/dag/1.dag modules/dag/2.dag
lfcarol commented 3 years ago

You mean 'cyber_launch' execute a command like this 'mainboard -d XXXX.dag YYYYY.dag' ?

daohu527 commented 3 years ago

Yes, when you want to run mutil dag, you can write like perception_all.launch. It will final run the cmd mainboard -d modules/dag/1.dag modules/dag/2.dag.

I think you may write like this?

    <module>
        <name>motion_service</name>
        <dag_conf>/apollo/modules/perception/production/dag/dag_motion_service.dag</dag_conf>
        <dag_conf>/apollo/modules/perception/production/dag/dag_motion_service1.dag</dag_conf>
        <process_name></process_name>
        <version>1.0.0</version>
    </module>