Problems with Notebook

notebook
english
ergo-jr
Tags: #<Tag:0x00007f5cea40d848> #<Tag:0x00007f5cea40cf60> #<Tag:0x00007f5cea40c998>

#1

Guys

The monitor and control page works fine. I get to the notebooks, specifically the “Discover the Poppy Ergo Jr” and I get this
in ()
1 from pypot.creatures import PoppyErgoJr
2
----> 3 poppy = PoppyErgoJr()

/home/poppy/miniconda/lib/python2.7/site-packages/pypot/creatures/abstractcreature.pyc in new(cls, base_path, config, simulator, scene, host, port, id, use_snap, snap_host, snap_port, snap_quiet, use_http, http_host, http_port, http_quiet, use_remote, remote_host, remote_port, use_ws, ws_host, ws_port, start_background_services, sync, **extra)
117 logger.warning(‘Init fail: {}’.format(str(e)))
118 else:
–> 119 raise OSError(‘Could not initalize robot!’)
120 poppy_creature.simulated = False
121

OSError: Could not initalize robot!

Any ideas what’s going wrong?

Thanks
Ian


#2

Hi,
You probably have an unplugged motor a misconfigured one.

However, there is a bug with your version that hide the correct error message. You can fix this by updating the robot. To do so, make sure the robot is connected to internet, and click on “configure the robot” from the web interface, and then update.
After that you will have a clearer message.


#3

okay, so the motors work okay in the other modes, just not the notebook.

I ran the update, I left it over an hour, so I think it finished, there was no feed back to tell

This is what I get now

Exception in thread Thread-45:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/controller.py”, line 155, in setup
raise DxlError(“Couldn’t initialize pos/speed/load sync loop!”)
DxlError: Couldn’t initialize pos/speed/load sync loop!

Exception in thread Thread-43:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/syncloop.py”, line 22, in setup
[c.start() for c in self.controllers]
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/controller.py”, line 29, in start
self.wait_to_start()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 89, in wait_to_start
’for details.’.format(self._thread.name))
RuntimeError: Setup failed, see Thread-45 Tracebackfor details.

Exception in thread Thread-64:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/controller.py”, line 155, in setup
raise DxlError(“Couldn’t initialize pos/speed/load sync loop!”)
DxlError: Couldn’t initialize pos/speed/load sync loop!

Exception in thread Thread-62:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/syncloop.py”, line 22, in setup
[c.start() for c in self.controllers]
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/controller.py”, line 29, in start
self.wait_to_start()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 89, in wait_to_start
’for details.’.format(self._thread.name))
RuntimeError: Setup failed, see Thread-64 Tracebackfor details.

Exception in thread Thread-67:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/controller.py”, line 155, in setup
raise DxlError(“Couldn’t initialize pos/speed/load sync loop!”)
DxlError: Couldn’t initialize pos/speed/load sync loop!

Exception in thread Thread-65:
Traceback (most recent call last):
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/home/poppy/miniconda/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 124, in _wrapped_target
self._setup()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/dynamixel/syncloop.py”, line 22, in setup
[c.start() for c in self.controllers]
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/robot/controller.py”, line 29, in start
self.wait_to_start()
File “/home/poppy/miniconda/lib/python2.7/site-packages/pypot/utils/stoppablethread.py”, line 89, in wait_to_start
’for details.’.format(self._thread.name))
RuntimeError: Setup failed, see Thread-67 Tracebackfor details.


#4

I have a similar issue, i can’t run a python script without use the browser.


#5

hello @Ianadan,

For my robot I use “from poppy.creatures import Nameofrobot”.
Do you have already tried this ?

SpaceX