Giter Site home page Giter Site logo

Comments (6)

hatem-darweesh avatar hatem-darweesh commented on July 18, 2024

Can you check:
1-
"export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.13-py2.7-linux-x86_64.egg"
you need to download the python egg for 3.10 from the mentioned link. and change the above export to the new egg name.

2- Download the Pointcloud PCD map and create a map folder contains both .osm and .pcd files.

I recommend you familiarize yourself with autoware.universe fist by running both the planning and rosbag simulation mentioned in the documentation.

from op_bridge.

dtonda8 avatar dtonda8 commented on July 18, 2024

Thanks for responding.

  1. You helped me realise that this export does nothing, I don't have carla-0.9.13. It should have looked like this: export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.15-py3.7-linux-x86_64.egg

This export causes this error:
image

The issue is that I can't seem to find the python egg for 3.10. The latest version I could find is the egg file for 3.7. If anyone has found it for 3.10 please let me know.

  1. I'll will this suggestion

from op_bridge.

hatem-darweesh avatar hatem-darweesh commented on July 18, 2024

You need to follow the instruction from the "humble" branch

https://github.com/hatem-darweesh/op_bridge/blob/ros2-humble/README.md

from op_bridge.

dtonda8 avatar dtonda8 commented on July 18, 2024

Thanks for providing the link for the Python3.10 egg file. The homepage of op_bridge repo shows a different README.md than the one you linked above. I think that's why I couldn't find this egg file.

I retried again using export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-0.9.15-py3.10-linux-x86_64.egg and getting similar errors as before:
Pasted image 20240128073202
Most of the errors are related to base_link and tf

from op_bridge.

dtonda8 avatar dtonda8 commented on July 18, 2024

I managed to partially resolve the issue above. Some errors I solved:

[map.map_hash_generator]: [/home/dbat/carla-0.9.15/op_agent/autoware-contents/maps/Town01/pointcloud_map.pcd] is neither file nor directory

Downloaded pcd map from carla simulator maps, moved it to the location it was searching for and renamed to pointcloud_map.pcd

1706412378.0583673 [web_server.py-75] Traceback (most recent call last):
1706412378.0591691 [web_server.py-75]   File "/home/mcav/dbat/autoware/install/default_ad_api/lib/default_ad_api/web_server.py", line 21, in <module>
1706412378.0600290 [web_server.py-75]     import flask
1706412378.0893207 [web_server.py-75]   File "/usr/lib/python3/dist-packages/flask/__init__.py", line 7, in <module>
1706412378.0937130 [web_server.py-75]     from .app import Flask as Flask
1706412378.1007218 [web_server.py-75]   File "/usr/lib/python3/dist-packages/flask/app.py", line 28, in <module>
1706412378.1114581 [web_server.py-75]     from . import cli
1706412378.1141617 [web_server.py-75]   File "/usr/lib/python3/dist-packages/flask/cli.py", line 18, in <module>
1706412378.1183803 [web_server.py-75]     from .helpers import get_debug_flag
1706412378.1305094 [web_server.py-75]   File "/usr/lib/python3/dist-packages/flask/helpers.py", line 16, in <module>
1706412378.1308119 [web_server.py-75]     from werkzeug.urls import url_quote
1706412378.1333606 [web_server.py-75] ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/mcav/.local/lib/python3.10/site-packages/werkzeug/urls.py)

pip install Werkzeug==2.2.0 fixed it.

I am able to see the map and set '2D goal pose'. :)

Pasted image 20240128162433

The only issue now is that I sometimes need to rerun the program since initialization is inconsistent. Relevant errors:

1706417562.2970629 [pose_initializer_node-36] [WARN] [1706417562.296250151] [localization.util.pose_initializer_node]: failed to lookup transform: Could not find a connection between 'map' and 'gnss_link' because they are not part of the same tree.Tf has two or more unconnected trees.
1706417562.2986362 [pose_initializer_node-36] [INFO] [1706417562.296862493] [localization.util.pose_initializer_node]: Call NDT align server.
1706417562.3000901 [ndt_scan_matcher-35] [WARN] [1706417562.299047845] [localization.pose_estimator.ndt_scan_matcher]: Could not find a connection between 'map' and 'gnss_link' because they are not part of the same tree.Tf has two or more unconnected trees.
1706417562.3002465 [ndt_scan_matcher-35] [ERROR] [1706417562.299101175] [localization.pose_estimator.ndt_scan_matcher]: Please publish TF map to gnss_link

I'd love to be able to at least move the car with '2D Pose Estimate'.

from op_bridge.

dtonda8 avatar dtonda8 commented on July 18, 2024

After adding two files from this pr by @cfs4819, I can now successfully use '2D Pose Estimate' .

Thanks Hatem-darweesh and cfs4819

from op_bridge.

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.