Code Monkey home page Code Monkey logo

multicarlaservers's Introduction

multicarlasevers

使用简介:

  1. 开启CarlaUE并运行。
  2. 在控制台下运行Mult-carla/client下的客户端程序
   python3 manual_control_selg.py
  1. 配置carlaservers.yaml文件,其中需要同步的服务器CarlaUE的ip和端口。(至少一台)
  2. 在控制台下运行Mult-carla下的同步服务器程序
   python3 synchronization.py

如果提示找不到carla包

cd ~/carla/PythonAPI/carla/dist/
unzip carla-0.9.13-py3.8-linux-x86_64.egg -d carla-0.9.13-py3.8-linux-x86_64
cd carla-0.9.13-py3.8-linux-x86_64

接下来打开你的文档编辑器,建立一个setup.py, 将以下内容复制进去。

from distutils.core import setup
setup(name='carla',
      version='0.9.13', 
      py_modules=['carla'],
      )

然后通过pip安装到你的python3当中,从此可以直接import carla了。

pip3 install -e ~/carla/PythonAPI/carla/dist/carla-0.9.13-py3.8-linux-x86_64

设置服务器日志为DEBUG级别可以运行

python3 synchronization.py --debug

在运行CarlaUE的机子上运行Mult-carla/viewer下的程序可以轮流查看服务器内车辆

python3 clientview.py

使用util/下的文件可以更改地图配置

python3 config.py --map Town04

使用Carla-SUMO/下的文件可以运行Carla-SUMO协同仿真。详细见Carla官方文档

multicarlaservers's People

Contributors

adon6 avatar

Stargazers

袁三岁 avatar

Watchers

 avatar  avatar

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.