by garycmartin » Wed Nov 30, 2011 3:30 pm
by garycmartin
Wed Nov 30, 2011 3:30 pm
retro_boy wrote:How have you got your software environment set up? You mentioned that you were using Python, I'd be interested to know how you compile it?
Sure, I'm primarily a Mac and Linux user who seems to work a lot with Python, so my goal at some point (soon) is to replace the cm-510 with a low power device capable or running a standard Linux environment. As a bridge to that setup, I'm now driving the biped directly from my Mac laptop using Python, this same code can be run on other platforms without any re-compiling for special hardware, and is much more programmer friendly than working in RoboPlus Task (which is good for simple experiments but has notable limitations, most likely related to the CM-510 hardware abilities).
So I needed to install:
1) Mac drivers from
http://www.ftdichip.com/Drivers/VCP.htm so I could talk to the Dynamixel2USB hardware
2) A Python version of the Dynamixel library from
http://code.google.com/p/pydynamixel/
3) An extra module for Python to talk to the serial port
http://pypi.python.org/pypi/pyserial (required by pydynamixel)
There are a couple of simple Python examples that come with pydynamixel to talk to the Dynamixel bus and drive/read servos (through note I don't yet have access to analogue ports on the CM-510). I connect my laptop to the biped with a 2M USB extension cable going to the USB2Dynamixel, which can then attach to the biped via the TTL Dynamixel bus.
If you've only just built your Bioloid, I'd recommend experimenting with the tools Robotis provide for a while until you've a fair idea of the abilities/limitations, they do give you access to the majority of the hardware features so you have a good idea what to expect if you try to control it from another language.
--Gary
retro_boy wrote:How have you got your software environment set up? You mentioned that you were using Python, I'd be interested to know how you compile it?
Sure, I'm primarily a Mac and Linux user who seems to work a lot with Python, so my goal at some point (soon) is to replace the cm-510 with a low power device capable or running a standard Linux environment. As a bridge to that setup, I'm now driving the biped directly from my Mac laptop using Python, this same code can be run on other platforms without any re-compiling for special hardware, and is much more programmer friendly than working in RoboPlus Task (which is good for simple experiments but has notable limitations, most likely related to the CM-510 hardware abilities).
So I needed to install:
1) Mac drivers from
http://www.ftdichip.com/Drivers/VCP.htm so I could talk to the Dynamixel2USB hardware
2) A Python version of the Dynamixel library from
http://code.google.com/p/pydynamixel/
3) An extra module for Python to talk to the serial port
http://pypi.python.org/pypi/pyserial (required by pydynamixel)
There are a couple of simple Python examples that come with pydynamixel to talk to the Dynamixel bus and drive/read servos (through note I don't yet have access to analogue ports on the CM-510). I connect my laptop to the biped with a 2M USB extension cable going to the USB2Dynamixel, which can then attach to the biped via the TTL Dynamixel bus.
If you've only just built your Bioloid, I'd recommend experimenting with the tools Robotis provide for a while until you've a fair idea of the abilities/limitations, they do give you access to the majority of the hardware features so you have a good idea what to expect if you try to control it from another language.
--Gary
Last edited by garycmartin on Wed Nov 30, 2011 4:50 pm, edited 1 time in total.