Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'dict' object has no attribute 'position' #12

Open
Chen1DONG opened this issue May 7, 2024 · 0 comments
Open

AttributeError: 'dict' object has no attribute 'position' #12

Chen1DONG opened this issue May 7, 2024 · 0 comments

Comments

@Chen1DONG
Copy link

D:\Anaconda\envs\DL\python.exe D:/uav/airsim_rl/SAC.py
Connected!
Client Ver:1 (Min Req: 1), Server Ver:1 (Min Req: 1)

Traceback (most recent call last):
File "D:\uav\airsim_rl\SAC.py", line 676, in
sac(device=device)
File "D:\uav\airsim_rl\SAC.py", line 401, in sac
env = AirSimEnv(need_render=False)
File "D:\uav\airsim_rl\gym_airsim\envs\AirGym.py", line 49, in init
self.prev_state = self.init_state_f()
File "D:\uav\airsim_rl\gym_airsim\envs\AirGym.py", line 80, in init_state_f
now = self.airgym.drone_pos()[:2]
File "D:\uav\airsim_rl\gym_airsim\envs\airlearningclient.py", line 112, in drone_pos
x = self.client.simGetGroundTruthKinematics().position.x_val
AttributeError: 'dict' object has no attribute 'position'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant