Change value of gravity in environment #4217
-
QuestionWhat's your question?Any way to change the value of gravity in the environment state The airsim client has a method to retrieve the current environment state - https://microsoft.github.io/AirSim/api_docs/html/index.html#airsim.types.EnvironmentState Any way we can change this in real-time or before we enable the client ? Say I want to change the value of gravity to some other value. Include context on what you are trying to achieveWant to change the value of gravity to observe some specific effects in a velocity controller. Context detailsInclude details of what you already did to find answersgetter method available in client object as - simGetGroundTruthEnvironment, cannot find a setter method |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi and welcome @harshitsankhla! We don't have an API to accomplish that. You will need to change the AirSim code. Here you can find the place where the gravity is calculated. It can be interesting to have setters for the environments; you can submit a pull request. |
Beta Was this translation helpful? Give feedback.
Hi and welcome @harshitsankhla! We don't have an API to accomplish that. You will need to change the AirSim code. Here you can find the place where the gravity is calculated. It can be interesting to have setters for the environments; you can submit a pull request.