Giter Site home page Giter Site logo

2019_ma-beheshti's Introduction

master-thesis-autonomous-parking

codes of the parallel-parking scenario.

Note that all of the file should be in the same directory. Here is the structure of the files:

  1. auto-parking.py: includes the main function.
  2. maneuver.py: contains calculation for vehicle maneuver which is imported to auto-parking and during maneuver step is called by parking_maneuver() function in the main file(auto-parking) 3.config.py: all of the thresholds and global values for vehicle's parameters(like steering and celocity) are difined here. This file is imported to maneuver.py file and its values are called by calculationn function.
  3. parking.m: this is a matlab file which calls detector and examine the results of the detection to find parking vacancy. The output is overlap-ratio which returned to python(auto-parking)
  4. interface.py: is an API to interface matlab and python.
  5. parkingManeuver.py: As obstacle sensor and positioning phase is not working well. This file defined to show the pure parking maneuver without the first steps and without sensors. (just to show motion algorithm)

Instruction

In order to run python scripts, Carla-server should be executed at first, then python scripts could be called and connect to the server on port 2000 or 2001. To run Carla-server, if you use built/compiled version(offered by carla.org) the following command in terminal should be executed to open CarlaUE4.sh

./CarlaUE4.sh Town02 -carla-server -windowed -X=50px -Y=40p -benchmark -fps=30

And when Carla is made from source code manually(not a compiled version), it would not contain CarlaUE4.sh file and UnrealEditor should be opened as server. And as it open the editor, it would be slower than the compiled version. To open UE4Editor as carla-server, following command should be executed. CarlaUE4.uproject is the project made by Carla and this command run this project on UE4Editor.

~/UnrealEngine_4.21/Engine/Binaries/Linux/UE4Editor ~/carla/Unreal/CarlaUE4/CarlaUE4.uproject Town02 -benchmark -fps 20 1877

Fps should be set to the static value otherwise maneuvering step and also detection would not work. And for this project 20 < FPS < 30 is working as 30 is better for maneuver process regards to other calculation values which set before.

After running Carla-Server in another terminal read the main python script. auto-parking.py or if you just want to see the maneuver, parkingManeuver.py

#please consider that all of the script are based on python2.7... so the carla connection may not work with python3 as in all of script Carla set to python2.

2019_ma-beheshti's People

Contributors

kimiya66 avatar

Watchers

James Cloos 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.