Skip to content

需要先启动Unreal Engine游戏/模拟器吗 #5

Description

@suhao16

(atec2025) root@kemove-SYS-420GP-TNR:/output/suhao1/ATEC2025/new# sh ./run_main.sh
/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/spaces/box.py:127: UserWarning: WARN: Box bound precision lowered by casting to float32
logger.warn(f"Box bound precision lowered by casting to {self.dtype}")
/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/utils/passive_env_checker.py:174: UserWarning: WARN: Future gym versions will require that Env.reset can be passed a seed instead of using Env.seed for resetting the environment random number generator.
logger.warn(
/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/utils/passive_env_checker.py:187: UserWarning: WARN: Future gym versions will require that Env.reset can be passed options to allow the environment initialisation to be passed additional information.
logger.warn(
Running docker-free env, pid:1718141
Please wait for a while to launch env......
=>Info: using ip-port socket
ERROR:init:252:Can not connect to ('127.0.0.1', 9005)
ERROR:init:253:Error [Errno 111] Connection refused
ERROR:init:180:Fail to send message, client is not connected
Traceback (most recent call last):
File "main.py", line 72, in
ob, info = env.reset()
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/wrappers/early_done.py", line 25, in reset
obs, info = self.env.reset(**kwargs)
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/wrappers/configUE.py", line 28, in reset
states,info = self.env.reset(**kwargs)
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/wrappers/time_limit.py", line 68, in reset
return self.env.reset(**kwargs)
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/wrappers/order_enforcing.py", line 42, in reset
return self.env.reset(**kwargs)
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/wrappers/env_checker.py", line 45, in reset
return env_reset_passive_checker(self.env, **kwargs)
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/gym/utils/passive_env_checker.py", line 192, in env_reset_passive_checker
result = env.reset(**kwargs)
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/rescue.py", line 74, in reset
states, info = super(Rescue, self).reset()
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/base_env.py", line 159, in reset
self.launched = self.launch_ue_env() # launch the UE4 binary and connect to UnrealCV
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/base_env.py", line 452, in launch_ue_env
self.unrealcv = Character_API(port=env_port, ip=env_ip, resolution=self.resolution, comm_mode=self.comm_mode)
File "/output/suhao1/ATEC2025/new/gym_rescue/envs/agent/character.py", line 11, in init
super(Character_API, self).init(port=port, ip=ip, resolution=resolution, mode=comm_mode)
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/unrealcv/api.py", line 57, in init
self.init_map()
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/unrealcv/api.py", line 92, in init_map
self.cam = self.get_camera_config()
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/unrealcv/api.py", line 150, in get_camera_config
num_cameras = self.get_camera_num()
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/unrealcv/api.py", line 972, in get_camera_num
res = self.client.request('vget /cameras')
File "/home/kemove/anaconda3/envs/atec2025/lib/python3.8/site-packages/unrealcv/init.py", line 470, in request
assert 0, 'failed send because of socket is closed'
AssertionError: failed send because of socket is closed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions