Skip to content

Sorry, I encountered a minor issue while running tests after cloning your program. #15

@liquidweb9

Description

@liquidweb9

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions