question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Airsim as an Openai Gym env

See original GitHub issue

I have been successful in establishing a connection with aimsun by running the baseline_racer after running airsim. After this, the drone flies in some trajectory and then crashes or possibly wanders. I wanted to sample the action space as in any gym environment or manually supply actions for the drone for testing purposes.

How can I integrate the following functionality in the code-

import gym
env = gym.make('CartPole-v0') # possibly start the communication via the client here for Airsim
env.reset()
for _ in range(1000):
    env.step(env.action_space.sample()) # take a random action
env.close() 

I want to manually supply action so that once I know how the actions are being, the type and properties of the action can I replace the random sampling of action space with a Refined piece of Reinforcement learning snippet or model. Help would be appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Deepakgthomascommented, Feb 1, 2021

Sounds good. Thank you.

On Mon, Feb 1, 2021 at 4:08 PM Yann Bouteiller notifications@github.com wrote:

@yannbouteiller https://github.com/yannbouteiller Why do you say that the integration of Airsim and OpenAI gym will work with tier 2. Could you please elaborate?

Thanks!

Well it actually works on all tiers, but tiers 1 and 3 are multi-agent so it comes with additional difficulties.

I have not announced it because I work on other things these days, the project in on hold and not in a presentable state, but I have silently open sourced this : https://github.com/yannbouteiller/gym-airsimdroneracinglab, where basically I have implemented a OpenAI Gym environment for multi-agent tiers as well. You may find it interesting.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/AirSim-NeurIPS2019-Drone-Racing/issues/76#issuecomment-771192651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHXYWW7UAATFOVS6XYW2LTS44Q5DANCNFSM4I633MGQ .

0reactions
yannbouteillercommented, Feb 1, 2021

@yannbouteiller Why do you say that the integration of Airsim and OpenAI gym will work with tier 2. Could you please elaborate?

Thanks!

Well it actually works on all tiers, but tiers 1 and 3 are multi-agent so it comes with additional difficulties.

I have not announced it because I work on other things these days, the project in on hold and not in a presentable state, but I have silently open sourced this : https://github.com/yannbouteiller/gym-airsimdroneracinglab, where basically I have implemented a OpenAI Gym environment for multi-agent tiers as well. You may find it interesting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reinforcement Learning - AirSim - Microsoft Open Source
We below describe how we can implement DQN in AirSim using an OpenAI gym ... In order to use AirSim as a gym...
Read more >
OpenAI Gym environment for AirSim - GitHub
AirSimGym. OpenAI Gym environment for AirSim. You can test the code by running the sample dqn model.
Read more >
Deep Reinforcement Learning for autonomous vehicles with ...
AirSim is an add-on run on game engines like Unreal Engine(UE) or Unity. · OpenAI Gym provides a range of game environments to...
Read more >
Airsim gym environment - YouTube
This gym environment is based on Microsoft airsim simulator in unity, it is implemented specifically for learning mapless navigation and ...
Read more >
a deep reinforcement learning gym for autonomous aerial ...
As a simulation suite of tools, Air Learning provides a scalable and cost-effective applied reinforcement learning research. It augments ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found