Poppy project at La cité des sciences DAY 2

We have a problem when we try to load the configuration file .json. We get this error :
Traceback (most recent call last):
  File “C:\Users\test\Documents\Poppy\Test_config\load_config.py”, line 7, in
    robot = pypot.robot.from_config(my_config)
  File “build\bdist.win32\egg\pypot\robot\config.py”, line 95, in from_config
    alias = config[‘motorgroups’]
TypeError: ‘Robot’ object has no attribute ‘getitem

When we use the configuration directly in the .py file, it works perfectly.
We used your poppy_config_generator to make the .json file.

Can you copy/paste your load_config.py file ?

We just found the problem : it’s because the from_json method returns directly a Robot object generated by from_config, and we were calling after that a second from_config. If we don’t do that it works!!

1 Like

work in progress… poppy is gonna be alive!

Hi,
We are trying to connect the whol robot by USB2AX dongle but it doesn’t work (sometimes it detects some motors and sometimes nothing). With USB2Dynamixel everithing is working. We can detect upper motors but we cannot detect lower motors. We need help please ?? thanks

Are the lower motors powered ? i.e. the red led blink when you plug the power supply ?

The lower motors are powered but not detected. (leds stay off)

Leds are always off or they blink one time in red ? (about 1 sec)

leds are always off.

Good news :slight_smile:

So it is just because motors are not powered, 2 solutions:

1- plug another alimentation to the lower SMPS2Dynamixel
2- plug together the 2 SMPS2Dynamixel using a 4pins dynamixel wire (after cutting the 2 data cables):