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

在 CARLA 中更改鸟瞰视图报错 #36

Open
hao-xiaoxing opened this issue Oct 18, 2024 · 19 comments
Open

在 CARLA 中更改鸟瞰视图报错 #36

hao-xiaoxing opened this issue Oct 18, 2024 · 19 comments

Comments

@hao-xiaoxing
Copy link

执行如下指令无反应

(lim) hxx@hxx-System-Product-Name:/workspace/SIM/test/LimSim$ python ./ModelExample.py
Model initialized at 18:17:59.793.
Network building finished at 18:18:02.059.
Retrying in 1 seconds
Network information commited at 18:18:02.113.

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

I'm sorry to hear you're having this issue. However, I didn't understand what you did. Could you show the specific code you modified?

@hao-xiaoxing
Copy link
Author

I'm sorry to hear you're having this issue. However, I didn't understand what you did. Could you show the specific code you modified?

我按照这个流程进行操作。run_model(net_file, rou_file, ego_veh_id="4", carla_cosim=True),当carla_cosim为False可执行,为True则任何反应

limsim

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

Do you download and replace the run_synchronization.py file?

@hao-xiaoxing
Copy link
Author

I'm sorry to hear you're having this issue. However, I didn't understand what you did. Could you show the specific code you modified?

我按照这个流程进行操作。run_model(net_file, rou_file, ego_veh_id="4", carla_cosim=True),当carla_cosim为False可执行,为True则任何反应

limsim

carla第一个终端执行 ./CarlaUE4.sh -world-port=2000 -resx=400 -resy=300 -quality-level=Epic;第二个终端执行 python3 config.py --map Town05;然后按照替换run_synchronization.py,并确保ego_id=‘4’,最后执行ModelExample.py

@hao-xiaoxing
Copy link
Author

Do you download and replace the run_synchronization.py file?

yes

@hao-xiaoxing
Copy link
Author

Do you download and replace the run_synchronization.py file?

我重新下载安装了limsim代码,以及其对应的虚拟环境;并重新下载替换了run_synchronization.py,确保ego_id匹配(都为4),但结果仍然与之前一致

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

Could you show me the output messages of the three terminals?

@hao-xiaoxing
Copy link
Author

01
02
03
结果如上

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

It seems that you weren't successful in switching maps on the second terminal. This might be due to a mismatch between your simulator version and your API version.

@hao-xiaoxing
Copy link
Author

当我设置为carla_cosim为False,其可以出现展示的结果,但终端仍然是下图这样,
04
如果simulator与API 版本不一致,如何解决?

@hao-xiaoxing
Copy link
Author

It seems that you weren't successful in switching maps on the second terminal. This might be due to a mismatch between your simulator version and your API version.

我执行第二个终端时,map切换成功了

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

When you set carla_cosim=False, there is actually no connection with CARLA, so it can run correctly. For version selection between the simulator and API, please refer to the official CARLA documentation.

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

当我设置为carla_cosim为False,其可以出现展示的结果,但终端仍然是下图这样, 04 如果simulator与API 版本不一致,如何解决?

Actually, this is indeed the correct output.

@hao-xiaoxing
Copy link
Author

这个是我的版本:
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.15
WARNING: Simulator API version = 0.9.15-228-geeb507e58

这个是carla官网的问题和答案:
05
06

carla官网是将client版本提升至0.9.15,而0.9.15-228-geeb507e58 是不可更改的。如果方便,您可以提供一下您的Client API version和Simulator API version 吗?

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

In the your_carla_path/PythonAPI/carla/dist folder, there are compiled files for the CARLA API. You can try installing them.

@hao-xiaoxing
Copy link
Author

In the your_carla_path/PythonAPI/carla/dist folder, there are compiled files for the CARLA API. You can try installing them

我尝试了,没有任何改变,我觉着这是实现这个功能。Client API version = 0.9.15,而我本身就是这样的

@Fdarco
Copy link
Collaborator

Fdarco commented Oct 21, 2024

Based on the information you provided, we cannot pinpoint the specific issue. Perhaps you could try LimSim++, as it is easier to implement co-simulation.

@hao-xiaoxing
Copy link
Author

Based on the information you provided, we cannot pinpoint the specific issue. Perhaps you could try LimSim++, as it is easier to implement co-simulation.

ok,thank you!

@hao-xiaoxing
Copy link
Author

Based on the information you provided, we cannot pinpoint the specific issue. Perhaps you could try LimSim++, as it is easier to implement co-simulation.

抱歉,我目前遇到两种carla版本,一种是网页版,带有./CarlaUE4.sh文件;另一种是git clone https://github.com/carla-simulator/carla,不带./CarlaUE4.sh;我按照操作感觉应该是第一种,但是我在carla官网报错的解决方案都是第二种的解决方案
07
如果方便,麻烦给个联系方式,我好跟您请教一下,确实刚接触这个方向!

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