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

Problems running the script run_bridge.py #8

Open
Hffmann opened this issue Oct 5, 2020 · 6 comments
Open

Problems running the script run_bridge.py #8

Hffmann opened this issue Oct 5, 2020 · 6 comments

Comments

@Hffmann
Copy link

Hffmann commented Oct 5, 2020

I can't run the script with any python version, running with python 2 outputs incompatibilities with the generated egg (python 3.8 in my case) and running with python 3 generates incompatibility errors when using importlib.

In which version did you build the PythonAPI ?

@AngelJA
Copy link
Collaborator

AngelJA commented Oct 5, 2020

Hi! There are different versions of the carla python api egg files. One for python2 and one for python3. You need to use python2 for compatibility with the cyber python api.

@Hffmann
Copy link
Author

Hffmann commented Oct 6, 2020

It worked perfectly !. Now i am facing an issue when running dreamview, when i attempt the connection and open dreamview i receive the log:

E1006 12:01:20.078724 6825 file.cc:73] [dreamview] Failed to open file /apollo/modules/map/data/carla_town03/default_end_way_point.txt in text mode.

In dreamview theres no presentation of the map and the task bar sensors are disabled.

It may be related to the use of the latest carla version, i'd appreciate your opinion.

@AngelJA
Copy link
Collaborator

AngelJA commented Oct 6, 2020

That dreamview error is normal and shouldn't cause any issues. Things will remain greyed out and you won't see the map until apollo receives localization from the simulator. If you're following the step-by-step guide, that should happen when you run the manual_control.py script.

@Hffmann
Copy link
Author

Hffmann commented Oct 7, 2020

Sorry for extending this thread with so many points, but i followed all steps and i end up with the following results:

dreamview
manual

As seen, carla, apollo and the bridge seem to be working accordingly although the logs in the right (first image) indicate an error managing the lidar sensor (run_bridge script), and the manual control script outputs the following one, right down below.

When enabling the sim control i end up with the map presentation with a random location:

sim

I am using carla0.9.10.

@AngelJA
Copy link
Collaborator

AngelJA commented Oct 9, 2020

Not sure, but this could be related to the Carla version. I've only tested this up to 0.9.9 so try that. It makes sense that you don't see the map until you turn on sim control, since the bridge script is crashing.

I see there were some Lidar related changes in 0.9.10 so the bridge may need to be updated if that is what's causing your error.

@marcusvinicius178
Copy link

marcusvinicius178 commented Jan 19, 2022

HI @AngelJA, could you please tell me which CARLA versions work with this cyber bridge 5.0 you have set?

I am testing just 0.9.6 with Docker, because the 0.9.6 installation from source is too old and the rquired libraries and compilers conflicts are crashing my ubuntu 20.04...

Does the bridge works with the simulator running locally too? and which versions of CARLA does it work:

  1. Simulator in Docker?

  2. Simulator Locally?

  3. To work with simulator locally...must Apollo Stack and Carla-Apollo bridge be installed locally? Or an image from Apollo container and Carla-Apollo bridge container (Docker) are enough to communicate with CARLA simulator locally?

Thanks in advance

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

3 participants