-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
It looks like there's an issue with the load_ic function in the jsbsim module. It seems like it's expecting two positional arguments, but only one is being given. You might want to check the documentation for the load_ic function to see what arguments it requires and make sure you are providing them correctly.
Here's the translation of my code:
import gym
import gym_jsbsim
import numpy as np
import time
env = gym.make('JSBSim-TurnHeadingControlTask-Cessna172P-Shaping.STANDARD-FG-v0')
state = env.reset()
env.render(mode='flightgear')
done = False
while not done:
action = np.random.random((3,))*2-1
state, reward, done, info = env.step(action)
env.render(mode='flightgear')
#time.sleep(1)
And the error message:
self.jsbsim.load_ic(ic_path, useStoredPath=False)
File "_jsbsim.pyx", line 954, in jsbsim._jsbsim.FGFDMExec.load_ic
TypeError: load_ic() takes exactly 2 positional arguments (1 given)
Hope this helps!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels