Git Product home page Git Product logo

Comments (5)

berndgassmann avatar berndgassmann commented on June 4, 2024

Hi,
no worries. When integrated with CARLA you don't compile ad-rss-lib by doing anything manually from your end within ad-rss-lib. So you don't call colcon yourself, the build system of CARLA is doing that for you. The build commands above from the CARLA documentation refer to the adapted build commands to build CARLA including RSS support. So if you have a look at https://carla.readthedocs.io/en/latest/build_linux/ then you will see that instead of
make package
for integration of RSS with CARLA you just call
make package.rss
Then the build is taking care of downloading ad-rss-lib and integrating it into the CARLA build.

But if you don't want to change anything in the code you might be happy to just download and use the precompiled version with RSS integrated CARLA_0.9.13_RSS.tar.gz from here:
https://github.com/carla-simulator/carla/releases/tag/0.9.13

Then you don't have to compile anything on your own and can just make use of RSS integrated into CARLA.

from ad-rss-lib.

chenhengwei1999 avatar chenhengwei1999 commented on June 4, 2024

Hi, no worries. When integrated with CARLA you don't compile ad-rss-lib by doing anything manually from your end within ad-rss-lib. So you don't call colcon yourself, the build system of CARLA is doing that for you. The build commands above from the CARLA documentation refer to the adapted build commands to build CARLA including RSS support. So if you have a look at https://carla.readthedocs.io/en/latest/build_linux/ then you will see that instead of make package for integration of RSS with CARLA you just call make package.rss Then the build is taking care of downloading ad-rss-lib and integrating it into the CARLA build.

But if you don't want to change anything in the code you might be happy to just download and use the precompiled version with RSS integrated CARLA_0.9.13_RSS.tar.gz from here: https://github.com/carla-simulator/carla/releases/tag/0.9.13

Then you don't have to compile anything on your own and can just make use of RSS integrated into CARLA.

Thank you very much for your reply. I tried to use the precompiled version RSS directly, but I was executing the command "python examples/rss/manual_ control_ rss.py" in the terminal, the following error occurred:


image

Then I checked whether the Carla package was installed correctly in the current conda environment, the Carla package has been installed (As shown in the figure below).


image

In addition, I have also checked whether to import RSS package into Carla according to the tutorial on the official website(As shown in the figure below).This command has been executed.

image

However, the ad Library in Carla cannot be imported.
Excuse me, what else do I need to check to successfully run RSS in Carla? Thanks in advance.

from ad-rss-lib.

berndgassmann avatar berndgassmann commented on June 4, 2024

When compiled together with CARLA, RSS is directly compiled into the CARLA python egg/whl files. It is not using the standalone RSS python library which you can build on your own with ad-rss-lib sources.
Having said that, I would expect that the version of carla python package your conda environment has installed most probably is not the one delivered with the precompiled tarball. Especially the RSS variant is not available via pypi. You have to uninstall the carla python package previously installed via pypi. And then either set the PYTHONPATH variable to the respective egg file, or install the egg or whl file delivered with the tarball under PythonAPI/carla/dist/ directly. See also https://carla.readthedocs.io/en/latest/start_quickstart/#carla-0912
Then the correct interface should be available and the import statement should work fine.

You are using CARLA 0.9.12. Be aware that this bugfix PR carla-simulator/carla#4604 fixing some issues with changed threading behavior of 0.9.12 was integrated in 0.9.13 version. So I would recommend to use 0.9.13 of CARLA.

from ad-rss-lib.

chenhengwei1999 avatar chenhengwei1999 commented on June 4, 2024

When compiled together with CARLA, RSS is directly compiled into the CARLA python egg/whl files. It is not using the standalone RSS python library which you can build on your own with ad-rss-lib sources. Having said that, I would expect that the version of carla python package your conda environment has installed most probably is not the one delivered with the precompiled tarball. Especially the RSS variant is not available via pypi. You have to uninstall the carla python package previously installed via pypi. And then either set the PYTHONPATH variable to the respective egg file, or install the egg or whl file delivered with the tarball under PythonAPI/carla/dist/ directly. See also https://carla.readthedocs.io/en/latest/start_quickstart/#carla-0912 Then the correct interface should be available and the import statement should work fine.

You are using CARLA 0.9.12. Be aware that this bugfix PR carla-simulator/carla#4604 fixing some issues with changed threading behavior of 0.9.12 was integrated in 0.9.13 version. So I would recommend to use 0.9.13 of CARLA.

Thank you very much for your advice, which is very warm for novices.@berndgassmann

I have found the problem, that is, version 0.9.12 Carla needs to be used egg file to enable the carla library. I mistakenly thought that version 0.9.12 belongs to the 0.9.12 + mentioned on the official website (https://carla.readthedocs.io/en/0.9.13/start_quickstart/).

By the way, I'd like to make some suggestions for the official website tutorial (maybe it's just my understanding). When 0.9.12 + is mentioned on the official website, it can be specially noted, that is, 0.9.12 is not included. My advice may be naive, but it would be great if it helped your team.

Thank you again for your patient reply.

from ad-rss-lib.

berndgassmann avatar berndgassmann commented on June 4, 2024

It's not because of Carla 0.9.12 that requires the egg file and not the pypi version, it's actually the special RSS built variant that requires to use the egg/whl from the tarball.

Great that it is now working for you.

from ad-rss-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.