Comments (3)
@hany606 that API is released with the latest environment binary. If you are using an older release, simStartRace
, simResetRace
, simGetObjectScale
, and simSetObjectScale
, will not be available. You can find the latest linux release here.
from airsim-neurips2019-drone-racing.
Make sure you have the right settings configuration by running generate_settings_file.py
. Your errors are because baseline_racer expects a specific configuration for the simulation.
from airsim-neurips2019-drone-racing.
@msb336 Yeah it works with the newest release, I didn't see the new release, thank you.
But when I run it, it was weird to get some errors like that:
Traceback (most recent call last):
File "baseline_racer.py", line 283, in <module>
main(args)
File "baseline_racer.py", line 251, in main
baseline_racer.initialize_drone()
File "baseline_racer.py", line 49, in initialize_drone
self.airsim_client.enableApiControl(vehicle_name=self.drone_name)
File "/usr/local/lib/python3.6/dist-packages/airsimneurips/client.py", line 49, in enableApiControl
return self.client.call('enableApiControl', True, vehicle_name)
File "/usr/local/lib/python3.6/dist-packages/msgpackrpc/session.py", line 41, in call
return self.send_request(method, args).get()
File "/usr/local/lib/python3.6/dist-packages/msgpackrpc/future.py", line 45, in get
raise error.RPCError(self._error)
msgpackrpc.error.RPCError: rpclib: function 'enableApiControl' (called with 2 arg(s)) threw an exception. The exception contained this information: Vehicle API for 'drone_1' is not available. This could either because this is simulation-only API or this vehicle does not exist.
then I removed the argument vehicle_name=self.drone_name
from all the functions and it worked.
And also got
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "baseline_racer.py", line 217, in repeat_timer_image_callback
task()
File "baseline_racer.py", line 198, in image_callback
response = self.airsim_client_images.simGetImages(request)
File "/usr/local/lib/python3.6/dist-packages/airsimneurips/client.py", line 172, in simGetImages
responses_raw = self.client.call('simGetImages', requests, vehicle_name)
File "/usr/local/lib/python3.6/dist-packages/msgpackrpc/session.py", line 41, in call
return self.send_request(method, args).get()
File "/usr/local/lib/python3.6/dist-packages/msgpackrpc/future.py", line 45, in get
raise error.RPCError(self._error)
msgpackrpc.error.RPCError: rpclib: function 'simGetImages' (called with 2 arg(s)) threw an exception. The exception contained this information: invalid map<K, T> key.
and it is solved by exchange "fpv_cam" argument with 0 in request = [airsim.ImageRequest("fpv_cam", airsim.ImageType.Scene, False, False)]
and it worked without any errors.
Everything work now, thank you.
Note: My setup is: the API is running on Linux and the simulator on different machine on windows.
from airsim-neurips2019-drone-racing.
Related Issues (20)
- To delete
- Deploying AirSim-based simulations on real-world systems (UAVs) HOT 1
- Fresh install and have error HOT 7
- FPV camera can not send flying drone images back (only the nonFLY drone camera work) HOT 2
- Any way to download/use just the environments? HOT 4
- How to unblock sim- APIs HOT 1
- simGetDisqualified() not working
- [Linux] AirSimExe no longer working HOT 3
- Increase Maximum Throttle HOT 1
- Race finished after reaching first gate HOT 4
- Gate passed in log file no longer updated after drone 2 overtaking HOT 1
- Fresh install crashes on startup HOT 1
- Camera settings API
- getRotorState Error
- Implementation on Pixhawk
- getting instance segmentation
- Airsim Blocks binary in docker Linux crashes after few iteration HOT 1
- Read ClockSpeed via code
- RPCError when calling simGetImages with several instances of ImageRequest
- This repo is missing important files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airsim-neurips2019-drone-racing.