Hello, to control my poppy arm i use the command describes in : Erreur lors de l'instanciation d'une configuration partielle de Poppy : "Head"
But python send me this error:
here is my full code:
Then I read the tutorial on:
http://poppy-project.github.io/pypot/controller.html
And use the autodection mode, but it returns me :
Do you know what’s the source of these problems?
P.S. I have the USB2AX
It is a problem of permisson to access usb devices on linux.
You should add yourself to the dialout group:
sudo usermod -a -G dialout user
with user being your username
Thanks for this answer but even if I enter this command in my terminal before switching in python I stil have the same error.
Theo
June 9, 2015, 2:37pm
4
On my Ubuntu based distribution, it is the uucp group which own the serial port.
sudo usermod -aG uucp $USER
Anyway, if you execute your python with sudo, it will works
1 Like
Thanks, it solves this issue.
But then python is raising this type of issue:
Do you understand the reason ?
Did you check this post:
Hello,
I have some Problems with the first Start of Poppy.
I use 1 USB2Dynamixel. So I changed the config to use 1 port for "torso, head, arms and legs.
This is the beginning of the Poppy_config:
{
“controllers”: {
“upper_body_controller”: {
“sync_read”: true,
“attached_motors”: [
“torso”,
“head”,
“arms”,
“legs”
],
“port”: “/dev/ttyUSB1”
}
},
When I process the instructions here:
enter link description here
i get an ValueError:
import pypot.robot
from poppytools.configura…
Are the motors powered properly? + there is some simple code to scan motors, checking the basics work
This one might help too:
I’m trying to configure a motor using herborist. The motor is brand new so its ID should be 1 and baud rate 57142.
My setup is computer with ubuntu - USB2AX - SMPS2DYNAMIXEL (powered) - MX-28AT
When I start herborist, the GUI appears, a /dev/ttyACM0 port is found. I can scan, but I find nothing. I have this error on the terminal:
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/manon/.config/ibus/bus
…
I checked this two links:
When I try to recognize my motors with herborist, and I have that issue:
On one link I find a solution for a common problem but it send me this issue:
I think that it’s a communication issue between my computer and the motors but I can’t understand why
Do you have some ideas ?
Theo
June 9, 2015, 5:18pm
8
Strange. Are you using a virtual machine ?
No I’m in dual boot, I started on a virtual machine but I turned on a dual few days later. I have an Ubuntu 14.04.
Can you give us more background information about your setup.
For example:
dxl_io = pypot.dynamixel.DxlIO('/dev/ttyACM0')
ids = dxl_io.scan(range(60))
print dxl_io.get_goal_position_speed_load(ids)
replace ‘/dev/ttyACM0’ with your port.
Tanguy
June 9, 2015, 8:43pm
11
I use 4 MX28, the same used in an entire poppy, and an additive AX12 to animate our hand.
The wiring seems correct : the charger, the USB2AX and the first motor of the arm are both plugged on the SMPS2Dynamixel.
Maybe by issue come to the definition of a communication port, if I understand well I have to define a port like that:
import pypot.dynamixel
ports = pypot.dynamixel.get_available_ports()
if not ports:
raise IOError(‘no port found!’)
print(‘ports found’, ports)
print(‘connecting on the first available port:’, ports[0])
dxl_io = pypot.dynamixel.DxlIO(ports[0])
And then executate : dxl_io = pypot.dynamixel.DxlIO(port, baudrate=57600) before scanning with Herborist ?
Sorry but I’m just a complete beginner in informatic.
Pierre
June 10, 2015, 8:11am
12
Did you configure your motor correctly? I mean do they have all their own id and set to the 1M baud rate?
Tanguy
June 10, 2015, 9:03am
13
Thanks for these answers
Indeed I forgot to change the id of my motor before assembly all the arm.
So I’ll do that and test after if my arm works.