hatem-darweesh / op_bridge

OpenPlanner ROS based bridge for CARLA Simulator and Scenario Runner
MIT License
31 stars 12 forks source link

Import Issues with Carla Simulator 0.9.13 release #8

Closed marcusvinicius178 closed 1 year ago

marcusvinicius178 commented 1 year ago

Hi @hatem-darweesh

I am following your tutorial: Autoware Universe with CARLA My OS is ubuntu 20.04 and I have CARLA 0.9.13 version installed at:

image

I am having issues to run the /run_exploration_mode_ros2.sh

I receive the following import errors:

File "hatem-repos/op_bridge/op_bridge/op_ros2_agent.py", line 35, in <module>
    from sensor_msgs_py.point_cloud2 import create_cloud
ModuleNotFoundError: No module named 'sensor_msgs_py'

It is not an egg or python version issue, because I have checked that other modules are imported...

However I checked other thing that I would like to ask you.: I needed to change the script **/run_exploration_mode_ros2.sh*, to be able to execute the script op_ros2_agent.py**. Please take a look at the end rows:

image

I was inspecting the ${LEADERBOARD_ROOT} path in sublime text, and I got:

image

Going straight to the point:

The ${LEADERBOARD_ROOT} points to: /home/user/carla-0.9.13/op_bridge

However my carla-simulator is installed at opt/carla-simulator I have not this carla-0.9.13 folder. Actually I have dowloaded it from here: https://github.com/carla-simulator/carla/tree/0.9.13 Afterwards I have uncompressed it. And checked the content:

image

I do not have the content contained in the export env variables:


export CARLA_ROOT=/home/user/carla-0.9.13/CARLA_0.9.13_RSS
   12  export SCENARIO_RUNNER_ROOT=/home/user/carla-0.9.13/scenario_runner
   13: export LEADERBOARD_ROOT=/home/user/carla-0.9.13/op_bridge
   14  export TEAM_CODE_ROOT=/home/user/carla-0.9.13/op_agent
   15  export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI

I have not found inside "carla-0.9.13" CARLA_0_9_13_RSS or scenario_runner or op_bridge or op_agent. Just Python_API is available. The other folder I have put inside "hatem-repos" folder as you recommend in your tutorial:

image

The folder CARLA_0_9_13_RSS I have no idea where it is.

Then my question is simple, how did you install the CARLA 0.9.13 simulator and could I take a look how your directories are organized please?

I do not know if commenting the line:

python3 ${LEADERBOARD_ROOT}/op_bridge/op_bridge_ros2.py

and replacing for python3 hatem-repos/op_bridge/op_bridge/op_ros2_agent.py

is generating my issue. Becuse I guee the ${LEADERBOARD ROOT} term accomplishes with some function in CARLA.

Would you have some idea what is going on?

Thanks in advance

marcusvinicius178 commented 1 year ago

Hi mr @xpharry

Thanks a lot for the assitance, the integration finally "worked"

finalment

I am just afraid that I had some critical warnings:

In this moment I have still did not tried to send a location in Rviz, etc...because it is too late in my country, and I still on the lab.

It is time to Celebrate, after trying hard !!! Tomorrow I start another issue if necessary

marcusvinicius178 commented 1 year ago

@xpharry I had just an issue with engage the vehicle to follow the path . I have described this issue here:

https://github.com/ZATiTech/open_planner/issues/4

I would be very grateful if you take a look. I imagine I am using a not compatible Nvidia-Driver, Cuda version (11.8 instead 11.6), cuDNN and TensorRt. Which ones have you installed in your machine (specifically Nvidia-Driver and Cuda)?