Open mgmike opened 2 years ago
I was able to find the fix to this issue, but it comes with more questions. I had installed from source ros2 Humble Hawksbill in my home directory so removing it was the fix.
Many versions of Ros are supposed to be able to work along side each other. I didn't include this in the main question, but my $PATH looked like this: /opt/ros/foxy/bin:/home/mike/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-17-oracle/bin:/usr/lib/jvm/java-17-oracle/db/bin
My question then is how does colcon find ros2_humble in my home directory when it wasn't in $PATH? Shouldn't it use environment variables to locate ros?
I am trying to install the conda-ros-bridge from the docs and I am getting the following error. Here is what I have now:
Ubuntu 20.04 Unreal Engine (4.26) and Carla (carla-simulator/focal 0.9.13): https://carla.readthedocs.io/en/latest/build_linux/ Ros2 (Foxy Installed through binary packages) Python 3.8
Here is my $PYTHONPATH: /opt/ros/foxy/lib/python3.8/site-packages
When I run colcon build, I get this error
The first fix I tried was to set the CARLA_ROOT and PYTHONPATH environment variables as recommended in this issue.
My PYTHONPATH looked like this: /opt/ros/foxy/lib/python3.8/site-packages:/opt/carla-simulator/PythonPAI/carla/dist/carla-0.9.13-py3.7-linux-x86_64.egg:/opt/carla-simulator/PythonAPI/carla
Then I ran colcon build again and go this error:
It seems like the build got farther but there is still an issue. I believe it might be a python version issue since Ubuntu 20.04 uses python3.8 by default and the carla egg seems to use python3.7. Would I be correct in thinking this?
I also attempted to build carla from source but was unable to make the PythonAPI because it requires clang8 and Ubuntu20.04 comes with clang10. I then installed carla-simulator/focal via apt which is what I am using. Could this have anything to do with my issue?