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

about InitError_Init_VRClientDLLNotFound #15

Open
tonyhaohan opened this issue Feb 21, 2021 · 0 comments
Open

about InitError_Init_VRClientDLLNotFound #15

tonyhaohan opened this issue Feb 21, 2021 · 0 comments

Comments

@tonyhaohan
Copy link

when I'm trying DKitty hardware, there is such a problem:
(base) tonyhao@tonyhao-fit:~/tonyRLws1$ python trys/tryRobel2.py Traceback (most recent call last): File "trys/tryRobel2.py", line 7, in <module> env = gym.make('DKittyWalkFixed-v0',device_path='/dev/ttyUSB0', File "/home/tonyhao/anaconda3/lib/python3.8/site-packages/gym/envs/registration.py", line 145, in make return registry.make(id, **kwargs) File "/home/tonyhao/anaconda3/lib/python3.8/site-packages/gym/envs/registration.py", line 90, in make env = spec.make(**kwargs) File "/home/tonyhao/anaconda3/lib/python3.8/site-packages/gym/envs/registration.py", line 60, in make env = cls(**_kwargs) File "/home/tonyhao/tonyRLws1/robel/robel/utils/configurable.py", line 102, in __init__ base_init(self, *args, **kwargs) File "/home/tonyhao/tonyRLws1/robel/robel/dkitty/walk.py", line 86, in __init__ super().__init__( File "/home/tonyhao/tonyRLws1/robel/robel/dkitty/base_env.py", line 252, in __init__ super().__init__(*args, **kwargs) File "/home/tonyhao/tonyRLws1/robel/robel/dkitty/base_env.py", line 112, in __init__ self.tracker = self._add_component(tracker_builder) File "/home/tonyhao/tonyRLws1/robel/robel/robot_env.py", line 549, in _add_component component = component_builder.build( File "/home/tonyhao/tonyRLws1/robel/robel/components/tracking/builder.py", line 54, in build return VrTrackerComponent( File "/home/tonyhao/tonyRLws1/robel/robel/components/tracking/vr_tracker.py", line 48, in __init__ self._VR_CLIENT = VrClient() File "/home/tonyhao/tonyRLws1/robel/robel/components/tracking/virtual_reality/client.py", line 45, in __init__ self._vr_system = openvr.init(openvr.VRApplication_Other) File "/home/tonyhao/.local/lib/python3.8/site-packages/openvr/__init__.py", line 7170, in init initInternal2(applicationType, pStartupInfo) File "/home/tonyhao/.local/lib/python3.8/site-packages/openvr/__init__.py", line 7302, in initInternal2 openvr.error_code.InitError.check_error_value(error.value) File "/home/tonyhao/.local/lib/python3.8/site-packages/openvr/error_code/__init__.py", line 23, in check_error_value raise error_class(error_value, message) openvr.error_code.InitError_Init_VRClientDLLNotFound
I have installed steam and steamvr on system ubuntu20.04. this is the code i ran:
`import numpy as np
import gym
from gym.spaces import Discrete, Box
import mujoco_py
import robel

env = gym.make('DKittyWalkFixed-v0',device_path='/dev/ttyUSB0',
torso_tracker_id='LHR-9510D433', use_dict_obs=True)
#env = gym.make('DKittyWalkFixed-v0')
act = [-1,-1,-1,1,-1,-1,1,1,1,-1,1,1]

while True:
print("doing new episode")
obs = env.reset()
done = False
while not done:
obs , ret , done , _ = env.step(act)
print(obs)
`
how to solve this problem?

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