Carla-ros-bridge download and installation, carla comes with the import of additional maps

1. Download and installation of Carla-ROS-Bridge

1. Go to the carla directory

cd ~/carla

2. Download

git clone https://github.com/carla-simulator/ros-bridge.git --recursive

insert image description here

Note: You can hang a ladder if you can’t download it

3. Create ros_ws/src

mkdir -p ros_ws/src
cd ros_ws/src
ln -s ../../ros-bridge carla-ros-bridge

4. compile

cd ..
catkin_make

Encountered the following error: Could not find a package configuration file provided by " ackernann_nsgs" with any of the following names:
ackermann_msgsConfig.cnake
ackermann_msgs-config.cnake
insert image description here

Solution:
Install the following:
ros-melodic-tf2-geometry-msgs
ros-melodic-ackermann-msgs
ros-melodic-joy
ros-melodic-map-server

sudo apt-get install ros-melodic-tf2-geometry-msgs ros-melodic-ackermann-msgs ros-melodic-joy ros-melodic-map-server

insert image description here

After the installation is complete, continue to compile and report an error: Could not find a package configuration file provided by "derived_object_msgs" with any of the following names:
derived_object_msgsConfig.cmake
derived_object_msgs-config.cmake

insert image description here

Solved by installing the following:

sudo apt-get install ros-melodic-astuff-sensor-msgs

insert image description here

Continue to recompile, success!
insert image description here

run ad_demo

source devel/setup.bash
roslaunch carla_ad_demo carla_ad_demo.launch 

An error occurs, missing carla and transforms3d modules
ImportError: No module named transforms3d.euler
ImportError: No module named carla

insert image description here
insert image description here

Enter the following command to install

sudo pip install carla
sudo pip install transforms3d

And add the specified path to the global

export PYTHONPATH=$PYTHONPATH:/home/car/Downloads/CARLA_0.9.13/PythonAPI/carla/dist/carla-0.9.13-py2.7-linux-x86_64.egg

insert image description here

Error resolved successfully.
Continue to roslaunch

roslaunch carla_ad_demo carla_ad_demo.launch 

run successfully
insert image description here

2. Import additional maps that come with it

1. Open carla under the path of ~/CARLA_0.9.13

./CarlaUE4.sh 

2. View the map under the ~/CARLA_0.9.13/PythonAPI/util path

python config.py --list

insert image description here

Only 1, 2, 3, 4, 5
, 10 go to the official website to download additional maps
additional maps
insert image description here

Put the compressed package into the ~/CARLA_0.9.13/Import folder
Open the terminal under the ~/CARLA_0.9.13 path

./ImportAssets.sh

After the loading is complete, there are maps 6 and 7
insert image description here

Check the map information again and find that there are 6 and 7
insert image description here

python config.py --list

Enter the following command in the ~/CARLA_0.9.13/PythonAPI/util path to replace the new map (such as map 6)

python config.py -m Town06

insert image description here
insert image description here

Map loaded successfully!

Guess you like

Origin blog.csdn.net/justinyjf/article/details/131225818