Results 1 to 9 of 9

Thread: IK Video of a Planar 2R AX-12 Arm

  1. #1

    IK Video of a Planar 2R AX-12 Arm

    I have wanted to get my inverse kinematics on for some time. So, I went ahead and built a simple 2R IK engine in C#. I know managed code…but I like .NET. Anyway, here’s the video.





    My PC is sending raw instruction packets to a Parallax Propeller or you can substitute an USB2Dynamixel. The Prop forwards the commands over to the AX-12 network.

    The C# project contains several classes. The main classes are DenavitHartenberg and Planar2R. As the name suggests I’m using DH parameters. The IK number crunching executes through a service. The service takes a DH table, start point, end point, and an accuracy parameter. The service sends back a solution set which is parsed and filtered by the client, converted to the old Dynamixel SyncWrite command, and sent on through the virtual serial port.

    The lines are a little shaky but it works better than I thought it would. By the way, I’m using a cheapo Papermate 0.7m mechanical pencil. It fits nice and snug (with a little force) in the AX-12 bracket.

    Eventually, I'll have the source on www.agaverobotics.com
    Last edited by MikeG; 12-21-2009 at 05:29 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695
    Images
    118
    Rep Power
    108

    Re: IK Video of a Planar 2R AX-12 Arm

    wow Mike! Mighty impressive work I'd love to take a look at that source!

    [waiting for the managed code haters to post]

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin

  3. #3

    Re: IK Video of a Planar 2R AX-12 Arm

    Thanks for the kind words...

    I'll post the C# solution once I clean up the client source which contains tons of unit test code and sparse comments.

    This project was challenging in a way that I did not expected. Getting the math to work was simply an exercise in details. Getting the AX-12s to draw a relatively straight line was tough until I realized what was happening. It all seems elementary now

    Below are the items that I had to consider.

    • Converting between angles and dynamixel - significant figures
    • Motor backlash and overshoots
    • Gearing
    • Speed relationship between motors

    Drawing a line really highlights any imperfections.
    Last edited by MikeG; 12-23-2009 at 10:25 AM.

  4. #4
    Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695
    Images
    118
    Rep Power
    108

    Re: IK Video of a Planar 2R AX-12 Arm

    Drawing a line really highlights any imperfections.
    I can imagine so!

    The closest thing I ever came to some IK work was when I did some work with Matt a few years back on a robot arm:

    [ame="http://www.youtube.com/watch?v=-e6Ggcxavns"]YouTube- Visual Studio Controlled Robotic Arm[/ame]

    This was made prior to the "bioloid servo takeover in robotics" though so the arm itself was fairly primitive using old school servos. Still, the app was pretty fun to make

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin

  5. #5

    Re: IK Video of a Planar 2R AX-12 Arm

    Alex, that is very nice work.
    I just had to try Hello World...

    Last edited by MikeG; 12-24-2009 at 11:35 PM.

  6. #6
    Join Date
    May 2008
    Location
    TN
    Posts
    853
    Images
    99
    Rep Power
    73

    Re: IK Video of a Planar 2R AX-12 Arm

    Nice work! It looks like you are just a Dremel Flex-Shaft away from a CNC engraver.
    "If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
    -
    Einstein

    Don't be a HelpVampire

  7. #7
    Join Date
    Jan 2008
    Location
    Montreal, Canada
    Posts
    477
    Images
    63
    Rep Power
    56

    Re: IK Video of a Planar 2R AX-12 Arm

    very ncie work! impressive.

    Now, try to make it write with a nice caligraphy without lifting the pencil!

    Good job,

    Sam

  8. #8
    WRT123 Guest

    Re: IK Video of a Planar 2R AX-12 Arm

    Hi,
    I noticed this is a tad late, and this thread is probably dead.
    But we've been assigned a task very similar to your project.
    Do you have any pieces of advice when going about trying to code this? We're very stuck.
    Much appreciated

  9. #9

    Re: IK Video of a Planar 2R AX-12 Arm

    Do you have any pieces of advice when going about trying to code this?
    You can start by reading the openly published source code from the link on post #1? Who's we? Is this a school project?

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •