enableApiControl() issue
See original GitHub issueHi, 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:
- Created 4 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The moveByRollPitchYawrateThrottleAsync() didn’t work well because of the body frame change wrt world frame between the 2 versions. Now all works perfect.
above commit fixes this