GithubHelp home page GithubHelp logo

yarok's Issues

NameError: name 'time' is not defined

Problem:

Traceback (most recent call last):
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/danfergo/Projects/manytasks/tasks/geltip_pick_and_place.py", line 320, in <module>
    geltip_pick_and_place()
  File "/home/danfergo/Projects/manytasks/tasks/geltip_pick_and_place.py", line 292, in geltip_pick_and_place
    Platform.create({
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 77, in create
    return platform_class(manager, env_config, behaviour)
  File "/hoals, None,
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/danfergo/Projects/manytasks/tasks/geltip_pick_and_place.py", line 320, in <module>
    geltip_pick_and_place()
  File "/home/danfergo/Projects/manytasks/tasks/geltip_pick_and_place.py", line 292, in geltip_pick_and_place
    Platform.create({
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 77, in create
    return platform_class(manager, env_config, behaviour)
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/platforms/mjc/platform.py", line 43, in __init__
    super(PlatformMJC, self).__init__(manager, config, behaviour)
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 19, in __init__
    self.plugins = [self.init_plugin(pl_tuple) for pl_tuple in env_config['plugins']]
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 19, in <listcomp>
    self.plugins = [self.init_plugin(pl_tuple) for pl_tuple in env_config['plugins']]
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 34, in init_plugin
    return plugin_cls(**injector.get_all(init_annotations))
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/comm/plugins/cv2_waitkey.py", line 12, in __init__me/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/platforms/mjc/platform.py", line 43, in __init__
    super(PlatformMJC, self).__init__(manager, config, behaviour)
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 19, in __init__
    self.plugins = [self.init_plugin(pl_tuple) for pl_tuple in env_config['plugins']]
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 19, in <listcomp>
    self.plugins = [self.init_plugin(pl_tuple) for pl_tuple in env_config['plugins']]
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/core/platform.py", line 34, in init_plugin
    return plugin_cls(**injector.get_all(init_annotations))
  File "/home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/comm/plugins/cv2_waitkey.py", line 12, in __init__
    self.next_probe_ts = time.time()
NameError: name 'time' is not defined

Solution

nano /home/danfergo/miniconda3/envs/manytasks/lib/python3.10/site-packages/yarok/comm/plugins/cv2_waitkey.py
# import time

Adaption for digit sensor

Hi!

My name is Julio, first of all congrats for this amazing repository and your work with tactile sensors and RL!

Yesterday, I saw your last work with Digit sensors and I am really interested in the sim2real approach. I wonder if you will think about updating the repository with the adaption for the Digit sensor, I would love to try it!

Thanks in advance and keep the good work!

No module named error

Hi!,

My name is Julio, I am trying to run the examples from the repository but I am getting an error. First I created a python3 conda environment, then I installed yarok library with pip3 install yarok command. Later, I cloned the repo on my local computer and run yarok run EmptyWorld command. I am getting the following error:

ModuleNotFoundError: No module named 'yarok.components.EmptyWorld'

I don't really know why I am getting this error, I wonder if you could guide me to run the simulation. Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.