x3的开发版运行脚本run.sh 有点复杂。有大佬看过吗?

x3的开发版运行脚本run.sh 有点复杂。有大佬看过吗?

简单写法, 可以试试-

#!/bin/sh

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib/

chmod +x start_nginx.sh

sh start_nginx.sh

chmod u+x ./face_solution/face_solution

./face_solution/face_solution dev_demo/vio/viof37_config.json.x3dev.cam ./face_solution/configs/face_solution.json ./configs/visualplugin_face.json -i normal

请问您是想要增加新的solution还是新的sensor配置?

如果想自己改的话,我们这边可以提供一个简单的run.sh示例供参考。

想要新增一个solution。

如果是新增一个solution,并且其他选项,如platform(x2,x3,j3),vio_type(单路cam、单路回灌、多路同步、多路异步、一路cam+一路回灌)都是我们目前支持以上几种方式的话,可以在run.sh里在在这几处增加新solution即可:

首先是在choose_solution_func()中增加您的solution选项,如sample_solution:

然后再增加sample_solution的执行命令:

这样就可以在run.sh里增加新的solution了。