Confused about how to work with APIs #3241
-
So I am working with AirSim for my capstone project and for one part, I want to be able to read the sensor data. In the documentation, I see that I can use getGpsdata() but my question is where should I write the code for collecting the information? Do I write this stuff in settings.json or should I create a new script altogether? I am very new to this side of programming and don't know how to work with APIs that well |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello @Shubhamn96 , the APIs could be used in a C++ project or a Python script. If you're new to programming I suggest that you start by using the Python APIs. A good starting point is the demo python scripts under PythonClient/Multirotor. You might want to have a look at the code they contain. To get started you will need to install Python, install PIP, install the airsim python library then follow these steps to run hello_drone.py to test its functionality out. Hope this helps |
Beta Was this translation helpful? Give feedback.
Hello @Shubhamn96 , the APIs could be used in a C++ project or a Python script.
If you're new to programming I suggest that you start by using the Python APIs. A good starting point is the demo python scripts under PythonClient/Multirotor. You might want to have a look at the code they contain. To get started you will need to install Python, install PIP, install the airsim python library then follow these steps to run hello_drone.py to test its functionality out.
Hope this helps