Coder Social home page Coder Social logo

msgpackrpc.error.RPCError: rpclib: server could not find function 'simStartRace' with argument count 1. about airsim-neurips2019-drone-racing HOT 3 CLOSED

microsoft avatar microsoft commented on May 20, 2024
msgpackrpc.error.RPCError: rpclib: server could not find function 'simStartRace' with argument count 1.

from airsim-neurips2019-drone-racing.

Comments (3)

msb336 avatar msb336 commented on May 20, 2024 2

@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.

msb336 avatar msb336 commented on May 20, 2024 1

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.

hany606 avatar hany606 commented on May 20, 2024

@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)

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.