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.

enableApiControl() issue

See original GitHub issue

Hi, After I updated to version 0.0.8 everything was working fine-ish (my controller didn’t work anymore with moveByRollPitchYawrateThrottleAsync() - previously worked well with moveByAngleThrottle()). Before I tried to debug my code I updated to 0.0.11. Now, with version 0.0.11 I get the following error when doing client.enableApiControl(True, vehicle_name=‘drone_1’) - or when running the baseline script :

Traceback (most recent call last):
  File "baseline_racer.py", line 190, in <module>
    main(args)
  File "baseline_racer.py", line 166, in main
    baseline_racer.initialize_drone()
  File "baseline_racer.py", line 25, in initialize_drone
    self.airsim_client.enableApiControl(True, vehicle_name=self.drone_name)
TypeError: enableApiControl() got multiple values for argument 'vehicle_name'

Any ideas? Cheers, CT

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ctoumiehcommented, Aug 6, 2019

The moveByRollPitchYawrateThrottleAsync() didn’t work well because of the body frame change wrt world frame between the 2 versions. Now all works perfect.

1reaction
madratmancommented, Aug 6, 2019

above commit fixes this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core APIs - AirSim - Microsoft Open Source
enableApiControl : For safety reasons, by default API control for autonomous vehicle is not enabled and human operator has full control (usually via...
Read more >
How to use the airsim.CarClient function in airsim - Snyk
CarClient() client.confirmConnection() client.enableApiControl(True) car_controls = airsim.CarControls() car_controls.steering = 0 car_controls.throttle = 0 ...
Read more >
Solved 12. Write a Python program to read accelerometer data
This problem has been solved! You'll get a detailed solution from a ... MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.
Read more >
airsim Documentation - Read the Docs
connect to the AirSim simulator client = airsim.CarClient() client.confirmConnection() client.enableApiControl(True) car_controls = airsim.
Read more >
drone_script.py · 64c68dcf282a743875ae4f156dcaa95ad34da87f ...
confirmConnection() self.client.enableApiControl(True, "Drone1") self.client. ... takeoffAsync(vehicle_name="Drone2") d1.join() d2.join() self.takeoff_state ...
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