PhilWallace / apollo-8.0.0_control_opt

Apollo 8.0 controller optimized
Apache License 2.0
1 stars 1 forks source link

Code library missing during compilation. #1

Open zhouyu102030 opened 6 months ago

zhouyu102030 commented 6 months ago

Hello, I encountered the following bug during the compilation of the project. How should I fix it?

(12:52:47) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:28:10: fatal error: torch/script.h: No such file or directory

include <torch/script.h>

      ^~~~~~~~~~~~~~~~

compilation terminated. (12:52:49) INFO: Elapsed time: 230.743s, Critical Path: 85.81s (12:52:49) INFO: 13026 processes: 8612 internal, 4414 local. (12:52:49) FAILED: Build did NOT complete successfully

PhilWallace commented 6 months ago

Hello, I encountered the following bug during the compilation of the project. How should I fix it?

(12:52:47) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:28:10: fatal error: torch/script.h: No such file or directory #include <torch/script.h> ^~~~ compilation terminated. (12:52:49) INFO: Elapsed time: 230.743s, Critical Path: 85.81s (12:52:49) INFO: 13026 processes: 8612 internal, 4414 local. (12:52:49) FAILED: Build did NOT complete successfully

Hello. I installed torch libraries in my machine to test some other stuffs, and it is not necessary to run this project. You can simple remove the redundant includes.

I've removed the two lines of redundant include of torch, and updated this .h file:

https://github.com/PhilWallace/apollo-8.0.0_control_opt/blob/main/modules/control/controller/mpc_controller.h

Please replace the old .h with the file above and try again.

Btw, very cute and interesting avatar. Liked it : )

zhouyu102030 commented 6 months ago

Hello, I encountered the following bug during the compilation of the project. How should I fix it? (12:52:47) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:28:10: fatal error: torch/script.h: No such file or directory #include <torch/script.h> ^~~~ compilation terminated. (12:52:49) INFO: Elapsed time: 230.743s, Critical Path: 85.81s (12:52:49) INFO: 13026 processes: 8612 internal, 4414 local. (12:52:49) FAILED: Build did NOT complete successfully

Hello. I installed torch libraries in my machine to test some other stuffs, and it is not necessary to run this project. You can simple remove the redundant includes.

I've removed the two lines of redundant include of torch, and updated this .h file:

https://github.com/PhilWallace/apollo-8.0.0_control_opt/blob/main/modules/control/controller/mpc_controller.h

Please replace the old .h with the file above and try again.

Btw, very cute and interesting avatar. Liked it : )

Thank you for your response. After commenting out the unnecessary includes, the project encountered the following bug during compilation again.

(13:30:35) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:30:10: fatal error: modules/common/configs/proto/vehicle_config.pb.h: No such file or directory

include "modules/common/configs/proto/vehicle_config.pb.h"

^~~~~~~~~~~~~~ compilation terminated. (13:30:35) INFO: Elapsed time: 26.244s, Critical Path: 21.05s (13:30:35) INFO: 2075 processes: 1651 internal, 424 local. (13:30:35) FAILED: Build did NOT complete successfully

I suspect that an incorrect path was introduced. After changing the path to ' #include "modules/common_msgs/config_msgs/vehicle_config.pb.h" ' from the Apollo source code, the compilation succeeded again. However, when running in conjunction with Carla, the vehicle fails to start, and there are no errors reported by the bridge.Do you know how to address this? image image Also, I likewise find the avatar adorable!

PhilWallace commented 6 months ago

Hello, I encountered the following bug during the compilation of the project. How should I fix it? (12:52:47) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:28:10: fatal error: torch/script.h: No such file or directory #include <torch/script.h> ^~~~ compilation terminated. (12:52:49) INFO: Elapsed time: 230.743s, Critical Path: 85.81s (12:52:49) INFO: 13026 processes: 8612 internal, 4414 local. (12:52:49) FAILED: Build did NOT complete successfully

Hello. I installed torch libraries in my machine to test some other stuffs, and it is not necessary to run this project. You can simple remove the redundant includes. I've removed the two lines of redundant include of torch, and updated this .h file: https://github.com/PhilWallace/apollo-8.0.0_control_opt/blob/main/modules/control/controller/mpc_controller.h Please replace the old .h with the file above and try again. Btw, very cute and interesting avatar. Liked it : )

Thank you for your response. After commenting out the unnecessary includes, the project encountered the following bug during compilation again.

(13:30:35) ERROR: /apollo/modules/control/controller/BUILD:82:11: C++ compilation of rule '//modules/control/controller:mpc_controller' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (remaining 185 argument(s) skipped) In file included from modules/control/controller/mpc_controller.cc:17:0: ./modules/control/controller/mpc_controller.h:30:10: fatal error: modules/common/configs/proto/vehicle_config.pb.h: No such file or directory

include "modules/common/configs/proto/vehicle_config.pb.h"

^~~~~~~~~~~~~~ compilation terminated. (13:30:35) INFO: Elapsed time: 26.244s, Critical Path: 21.05s (13:30:35) INFO: 2075 processes: 1651 internal, 424 local. (13:30:35) FAILED: Build did NOT complete successfully

I suspect that an incorrect path was introduced. After changing the path to ' #include "modules/common_msgs/config_msgs/vehicle_config.pb.h" ' from the Apollo source code, the compilation succeeded again. However, when running in conjunction with Carla, the vehicle fails to start, and there are no errors reported by the bridge.Do you know how to address this? image image Also, I likewise find the avatar adorable!

Have you activated all modules required? I saw the green and red lines on Dreamview so I think Routing and Planning should work well. How about the Prediction and Control module?

zhouyu102030 commented 6 months ago

您好,我在项目编译过程中遇到了如下bug。我应该如何修复它? (12:52:47)错误:/apollo/modules/control/controller/BUILD:82:11: Rule'//modules/ control/controller:mpc_controller'的C++编译失败(出口1):crosstool_wrapper_driver_is_not_gcc失败:执行错误命令 external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/ controller/_objs/mpc_controller/mpc_controller.pic.d ... (剩余185个参数)跳过)在modules/control/controller/mpc_controller.cc:17:0中包含的文件中:./modules/control/controller /mpc_controller.h:28:10:致命错误:torch/script.h:没有这样的文件或目录 #include <torch/script.h> ^~~~ 编译(12:52:49) 信息:已使用时间:230.743 ,关键路径:85.81 秒 (12:52:49) 信息:13026 个进程:8612 个内部进程,4414 个本地进程。 (12:52 :49) 失败:构建未成功完成

你好。我在我的机器上安装了 torch 库来测试其他一些东西,并且没有必要运行这个项目。您可以简单地 删除了 torch 的两行迭代的包含,并更新了这个 .h文件: https ://github.com/PhilWallace/apollo-8.0.0_control_opt/blob/main/modules/control/controller/mpc_controller.h 调用旧的 .h 替换为上面的文件,然后重试。说一句,非常可爱又有趣的头像。喜欢它:)

感谢您的答复。注释掉了不必要的包含后,项目在编译时再次遇到了以下错误。

(13:30:35) 错误:/apollo/modules/control/controller/BUILD:82:11:规则 '//modules/control/controller:mpc_controller' 的 C++ 编译失败(退出 1):crosstool_wrapper_driver_is_not_gcc 失败:执行时错误命令 external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (剩余 185 个参数) )跳过) 在modules/control/controller/mpc_controller.cc:17:0中包含的文件中: ./modules/control/controller/mpc_controller.h:30:10:致命错误:modules/common/configs/proto /vehicle_config。 pb.h: 没有这样的文件或目录

include "modules/common/configs/proto/vehicle_config.pb.h"

^~~~~~ ~~~ ~~~~~~~ 编译终止。 (13:30:35) 信息:已使用时间:26.244秒,关键路径秒:21.05 (13:30:35) 信息:2075个进程:1651个内部进程,424个本地进程。 (13:30:35) 失败:构建未成功完成

我怀疑再次引入了错误的路径。将Apollo源码改为中的路径'#include "modules/common_msgs/config_msgs/vehicle_config.pb.h"'后,编译成功。但是,当与Carla一起运行时,车辆无法启动,并且桥上没有报告任何错误。您知道如何解决这个问题吗?另外,我也觉得头像很可爱!图像 图像

您是否激活了所有需要的模块?我在Dreamview上看到了绿线和红线,所以我认为路由和规划应该运行良好。预测与控制模块怎么样?

Thank you very much for your reply.

There is data in the prediction and control channels, and the positioning module is available in cyber_monitor, but strangely the localization module cannot be opened in Dreamview.

The current ego still doesn't work properly, I'm using apollo which is the publicly available version in your code repository, have you encountered this problem when running this version? Do you know what should be done to fix it?

Here are some screenshots, thanks again for your work!

image image image image image image image

PhilWallace commented 6 months ago

您好,我在项目编译过程中遇到了如下bug。我应该如何修复它? (12:52:47)错误:/apollo/modules/control/controller/BUILD:82:11: Rule'//modules/ control/controller:mpc_controller'的C++编译失败(出口1):crosstool_wrapper_driver_is_not_gcc失败:执行错误命令 external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/ controller/_objs/mpc_controller/mpc_controller.pic.d ... (剩余185个参数)跳过)在modules/control/controller/mpc_controller.cc:17:0中包含的文件中:./modules/control/controller /mpc_controller.h:28:10:致命错误:torch/script.h:没有这样的文件或目录 #include <torch/script.h> ^~~~ 编译(12:52:49) 信息:已使用时间:230.743 ,关键路径:85.81 秒 (12:52:49) 信息:13026 个进程:8612 个内部进程,4414 个本地进程。 (12:52 :49) 失败:构建未成功完成

你好。我在我的机器上安装了 torch 库来测试其他一些东西,并且没有必要运行这个项目。您可以简单地 删除了 torch 的两行迭代的包含,并更新了这个 .h文件: https ://github.com/PhilWallace/apollo-8.0.0_control_opt/blob/main/modules/control/controller/mpc_controller.h 调用旧的 .h 替换为上面的文件,然后重试。说一句,非常可爱又有趣的头像。喜欢它:)

感谢您的答复。注释掉了不必要的包含后,项目在编译时再次遇到了以下错误。

(13:30:35) 错误:/apollo/modules/control/controller/BUILD:82:11:规则 '//modules/control/controller:mpc_controller' 的 C++ 编译失败(退出 1):crosstool_wrapper_driver_is_not_gcc 失败:执行时错误命令 external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-fastbuild/bin/modules/control/controller/_objs/mpc_controller/mpc_controller.pic.d ... (剩余 185 个参数) )跳过) 在modules/control/controller/mpc_controller.cc:17:0中包含的文件中: ./modules/control/controller/mpc_controller.h:30:10:致命错误:modules/common/configs/proto /vehicle_config。 pb.h: 没有这样的文件或目录

include "modules/common/configs/proto/vehicle_config.pb.h"

^~~~~~ ~~~ ~~~~~~~ 编译终止。 (13:30:35) 信息:已使用时间:26.244秒,关键路径秒:21.05 (13:30:35) 信息:2075个进程:1651个内部进程,424个本地进程。 (13:30:35) 失败:构建未成功完成

我怀疑再次引入了错误的路径。将Apollo源码改为中的路径'#include "modules/common_msgs/config_msgs/vehicle_config.pb.h"'后,编译成功。但是,当与Carla一起运行时,车辆无法启动,并且桥上没有报告任何错误。您知道如何解决这个问题吗?另外,我也觉得头像很可爱!图像 图像

您是否激活了所有需要的模块?我在Dreamview上看到了绿线和红线,所以我认为路由和规划应该运行良好。预测与控制模块怎么样?

Thank you very much for your reply.

There is data in the prediction and control channels, and the positioning module is available in cyber_monitor, but strangely the localization module cannot be opened in Dreamview.

The current ego still doesn't work properly, I'm using apollo which is the publicly available version in your code repository, have you encountered this problem when running this version? Do you know what should be done to fix it?

Here are some screenshots, thanks again for your work!

image image image image image image image

Sorry that I didn't meet the problem of cannot activating Localization module. On my machine, localization can be turned on in Dreamview. But some other people met your problem, you can have a look and see if they are helpful (some say it worked by activating Localization in terminal):

https://github.com/guardstrikelab/carla_apollo_bridge/issues/153 https://github.com/guardstrikelab/carla_apollo_bridge/issues/187 https://github.com/guardstrikelab/carla_apollo_bridge/issues?q=localization

If it still doesn't work, you can try restart the machine, recompile the modules, or dive into the log files to find the root cause. Good luck there~