Code Monkey home page Code Monkey logo

airsim-pytorch-drone-ddqn-agent's Introduction

AirSim PyTorch Drone DDQN Agent

Req: Python 3.8, Torch 1.7, CUDA 10.1,10.2,Airsim, Unreal Engine 4.25.4

We used airsim with unreal engine as env. First you have to set up your own environment with unreal or you can download our env.

Env : https://drive.google.com/drive/folders/1uoF8lSbR1EvPa0Q3npcCKXTqC0KYZwvu?usp=sharing

It would be nice if the env file and the code were in the same path.

Run:

  1. run blocks.exe
  2. run tihs command : python run.py
  3. watch your drone

Over time, it will produce outputs as follows.

You can also monitor the results with tensorboard.

My outputs: https://drive.google.com/drive/folders/1pTo4DYTc0Leq0USs-oFipWSvFAclTsuo?usp=sharinghttps://drive.google.com/drive/folders/1sAmrvG6nGnnE565lrnKZZ4uvsbVcmIn5?usp=drive_link

airsim-pytorch-drone-ddqn-agent's People

Contributors

batuhan3526 avatar karascr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

airsim-pytorch-drone-ddqn-agent's Issues

msgpackrpc.error.RPCError: rpclib: client error C0002: Function 'simGetImages' was called with an invalid number of arguments. Expected: 3, got: 2

hi @batuhan3526
I'm trying to use your project but I cope with this error.

Using CPU Traceback (most recent call last): File "E:/projects about dqn and drone/AirSim-PyTorch-Drone-DDQN-Agent-main/run.py", line 7, in <module> ddqn_agent = DDQN_Agent(useDepth=False) File "E:\projects about dqn and drone\AirSim-PyTorch-Drone-DDQN-Agent-main\ddqn_agent.py", line 116, in __init__ obs, _ = self.env.reset() File "E:\projects about dqn and drone\AirSim-PyTorch-Drone-DDQN-Agent-main\env.py", line 69, in reset obs, image = self.get_obs() File "E:\projects about dqn and drone\AirSim-PyTorch-Drone-DDQN-Agent-main\env.py", line 86, in get_obs responses = self.client.simGetImages( File "C:\Users\Milad\anaconda3\envs\droneProject\lib\site-packages\airsim\client.py", line 266, in simGetImages responses_raw = self.client.call('simGetImages', requests, vehicle_name, external) File "C:\Users\Milad\anaconda3\envs\droneProject\lib\site-packages\msgpackrpc\session.py", line 41, in call return self.send_request(method, args).get() File "C:\Users\Milad\anaconda3\envs\droneProject\lib\site-packages\msgpackrpc\future.py", line 45, in get raise error.RPCError(self._error) msgpackrpc.error.RPCError: rpclib: client error C0002: Function 'simGetImages' was called with an invalid number of arguments. Expected: 3, got: 2

Prerequisites

Hello, @batuhan3526
I have keen interests of this work. Could you please tell the version requirements of packages and dependencies of it.
Best Regards
Hugh

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.