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

车辆在apollo内反复闪动,在carla内不动 #101

Closed
zsan2023 opened this issue May 23, 2023 · 39 comments
Closed

车辆在apollo内反复闪动,在carla内不动 #101

zsan2023 opened this issue May 23, 2023 · 39 comments

Comments

@zsan2023
Copy link

视频如下:

simplescreenrecorder-2023-05-23_16.13.51.mp4
@PhilWallace
Copy link
Contributor

I met the exact same problem. Hope it will be fixed soon.

@PhilWallace
Copy link
Contributor

你可以把Sim Control关掉再试试。Sim Control会让车完美跟踪planning模块的轨迹,而不是让车根据control模块的输出行动。联合仿真的情况下,Sim Control应该是关闭状态(虽然我的车也有其他问题动不了。。。)

@WilliaJing
Copy link
Contributor

Hi,Only when you only turn on Sim Control, it is related to Apollo, which has nothing to do with Bridge.
You can close the Bridge container and only run the Apollo container to see.

@zsan2023
Copy link
Author

关掉了sim control之后车确实不会闪动,但是车不会动。以下是carla_spawn_objects.py的输出:
image

@WilliaJing
Copy link
Contributor

关掉了sim control之后车确实不会闪动,但是车不会动。以下是carla_spawn_objects.py的输出: image

This error is related to the conversion of carla radar messages.,we have fixed it in #85, Please wait for the code to be merged,
now you can ignore this error.
you can restart by following the steps,and you can observe if there are any other error messages?

@zsan2023
Copy link
Author

车辆不会移动。每当我点击一次“SETUP”,就会弹出一条之前的报错:

E0525 08:53:16.762575 6876 channel_manager.cc:326] [spawn_objects] newly added writer(belongs to node[conti_radar_front])'s message type[apollo.drivers.ContiRadar] does not match the exsited writer(belongs to node[cyber_bridge_node])'s message type[apollo.drivers.PointCloud].

但是车辆是一直没有移动的

image

image

image

@WilliaJing
Copy link
Contributor

image

This should be MKz Example. You can select this one first, then restart bridge.py and carla_spawn_objects.py.
Normally, the default selection here is MKz Example. I don't know why you didn't select it.please refer #102

@PhilWallace
Copy link
Contributor

I solved it by selecting the vehicle model. I didn't select before because I wasn't sure whether it should be selected or not, as I noticed that the demo on the main page actually did not select the vehicle model:

image

Maybe some instructions on selecting this vehicle model can be added to the page.

@zsan2023
Copy link
Author

finish change to MKZ example and restart , the vehicle still can not move.

image

image

@zsan2023
Copy link
Author

i found that everytime when i click "setup",the bridge.py says:
image
and the carla_spawn_objects.py says:
image

@PhilWallace
Copy link
Contributor

I tried today and met the same problem... So sad. I might go to read the source code and try to find out why.

@zsan2023
Copy link
Author

I tried today and met the same problem... So sad. I might go to read the source code and try to find out why.

hello,do you find out why?

@PhilWallace
Copy link
Contributor

PhilWallace commented May 29, 2023

I tried today and met the same problem... So sad. I might go to read the source code and try to find out why.

hello,do you find out why?

我之前的docker环境有一些问题(必须以sudo运行)。现在我重新调整了docker权限,跑通了,车可以动了,但是仍然有这个error信息。这个error讲的是点云和Radar信息不匹配,我猜测可能与其他页面提到的点云转了90度的bug有关。不过目前至少并不影响routing -> planning -> control这个数据流。希望官方尽早修吧。

你也可以看看你的docker是不是有问题,确保在host terminal下可以不用sudo直接运行。

@meua
Copy link
Contributor

meua commented May 30, 2023

I tried today and met the same problem... So sad. I might go to read the source code and try to find out why.

hello,do you find out why?

我之前的docker环境有一些问题(必须以sudo运行)。现在我重新调整了docker权限,跑通了,车可以动了,但是仍然有这个error信息。这个error讲的是点云和Radar信息不匹配,我猜测可能与其他页面提到的点云转了90度的bug有关。不过目前至少并不影响routing -> planning -> control这个数据流。希望官方尽早修吧。

你也可以看看你的docker是不是有问题,确保在host terminal下可以不用sudo直接运行。

Please pay attention to this pr #100, the problem is being fixed.

@PhilWallace
Copy link
Contributor

finish change to MKZ example and restart , the vehicle still can not move.

image

image

你可以试着在modules中手动启动prediction模块,再等几秒看看Module Delay中是否有数据。我今天又遇到车不动的问题,靠这个方法解决了。

@zsan2023
Copy link
Author

大概明后天会依此尝试这些方法,最近太忙了。非常感谢你!

@zsan2023
Copy link
Author

我调整了我的docker权限,但是我发现我的predition模块无法打开,当我打开prediction之后一段时间,它会自己关闭

@zsan2023
Copy link
Author

我发现我的planning,control没有module delay.我觉得怀疑可能是planning/control编译问题?或者是设备问题

@WilliaJing
Copy link
Contributor

Are these two modules planning/control open in the Module controller

@zsan2023
Copy link
Author

image

@zsan2023
Copy link
Author

image

@WilliaJing
Copy link
Contributor

You can try to close these three containers and execute them again by readme.txt.

@zsan2023
Copy link
Author

i run them by readme.md. Is readme.txt another file?

@WilliaJing
Copy link
Contributor

I was wrong ,it's readme.md.

@zsan2023
Copy link
Author

my command order is :

  1. the carlasim/carla:0.9.14 container will auto-start when the computer is turned-on.so i do not have to run it by myself.

  2. then i run apollo :

cd apollo
bash docker/scripts/dev_start.sh
bash docker/scripts/dev_into.sh
./scripts/bootstrap.sh

3.then the bridge:

cd carla_apollo_bridge/docker
./run_docker.sh

docker exec -ti carla_cyber_0.9.14 bash
./apollo.sh build_cyber opt (i have to do this everytime. if not , the bridge.py can not run normaly )
cd /apollo/cyber/carla_bridge
python carla_cyber_bridge/bridge.py

then open another terminal:

docker exec -ti carla_cyber_0.9.14 bash
cd /apollo/cyber/carla_bridge
python carla_spawn_objects/carla_spawn_objects.py

all the commands are above.

@WilliaJing
Copy link
Contributor

image

@zsan2023
Copy link
Author

i have run this before. do i need to run this command everytime when i start co-simulation?

@WilliaJing
Copy link
Contributor

Under normal circumstances, there is no need to restart the Apollo container,
but you are currently not working properly,so you can run again.

@zsan2023
Copy link
Author

when i run ./apollo.sh build_gpu in apollo container, i must add sudo. is that normal?

@PhilWallace
Copy link
Contributor

Here's what my modules like when the car could finally move:

image

I had the same problem as yours. What I did is as follow:

  1. select "Mkz Example" in --vehicle-- Before running the python scripts in bridge docker.
  2. Click "Setup" in Quick Start.
  3. I disabled the "Recorder" module in Modules, because it will consume too much space ("I'm not sure whether this step is related to this problem").
  4. The "Prediction" module will fail to start, and I manually started this module in Module Controller.
  5. I waited for a few seconds, and then there are data shown in Module Delay:

Screenshot from 2023-06-01 01-30-42

These steps works for me also after I reboot my system and dockers. This seems to be some problem in the Apollo docker itself. Hope there will be a more robust version soon.

@PhilWallace
Copy link
Contributor

when i run ./apollo.sh build_gpu in apollo container, i must add sudo. is that normal?

For me, sudo is not needed in the docker. Maybe you can try to update or reinstall docker. Or use "sudo chown -R 1000:1000 /apollo" to set the execution privilege (not sure whether this will work).

@zsan2023
Copy link
Author

i will rebuild everything from the start.My environment is in a mess.come back later.

@meua
Copy link
Contributor

meua commented May 31, 2023

when i run ./apollo.sh build_gpu in apollo container, i must add sudo. is that normal?

If your docker commands require sudo to run, you can avoid it by doing:

sudo usermod -aG docker $USER
sudo gpasswd -a $USER docker
sudo chmod 666 /var/run/docker.sock
systemctl restart docker

@zsan2023
Copy link
Author

问题最终解决了。环境没有任何问题,就是单纯的配置不行。后来我是使用rtx 3090很轻松就跑起来了。麻烦各位了,非常感谢

@caixxuan
Copy link

I tried today and met the same problem... So sad. I might go to read the source code and try to find out why.

hello,do you find out why?

我之前的docker环境有一些问题(必须以sudo运行)。现在我重新调整了docker权限,跑通了,车可以动了,但是仍然有这个error信息。这个error讲的是点云和Radar信息不匹配,我猜测可能与其他页面提到的点云转了90度的bug有关。不过目前至少并不影响routing -> planning -> control这个数据流。希望官方尽早修吧。

你也可以看看你的docker是不是有问题,确保在host terminal下可以不用sudo直接运行。

请问如何设置docker权限

@caixxuan
Copy link

我调整了我的docker权限,但是我发现我的predition模块无法打开,当我打开prediction之后一段时间,它会自己关闭

我也无法打开,请问如何解决

@meua
Copy link
Contributor

meua commented Aug 22, 2023

我调整了我的docker权限,但是我发现我的predition模块无法打开,当我打开prediction之后一段时间,它会自己关闭

我也无法打开,请问如何解决

Please describe more details to reproduce your problem.

@caixxuan
Copy link

我调整了我的docker权限,但是我发现我的predition模块无法打开,当我打开prediction之后一段时间,它会自己关闭

我也无法打开,请问如何解决

Please describe more details to reproduce your problem.

the same as the question described before, the bridge is connected but the car cannot move at all, and the prediction cannot open, i have tried the method before, but it cannot work

@meua
Copy link
Contributor

meua commented Aug 22, 2023

我调整了我的docker权限,但是我发现我的predition模块无法打开,当我打开prediction之后一段时间,它会自己关闭

我也无法打开,请问如何解决

Please describe more details to reproduce your problem.

the same as the question described before, the bridge is connected but the car cannot move at all, and the prediction cannot open, i have tried the method before, but it cannot work

Try to modify the file: apollo/modules/dreamview/conf/hmi_modes/mkz_standard_debug.pb.txt, the key is Localization and the value is changed to dag_streaming_rtk_localization.dag file. Then recompile and run apollo to try: ./apollo.sh build_gpu.

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

5 participants