Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Homework - Cyril Wichers

Homework for live workshop student Cyril Wichers

Comments

  • Cyril WichersCyril Wichers ✭✭✭
    edited August 24
    So, here's my homework for the first week.
    It's actually a project that I did earlier, but as it's only meant to show we understand how the Pololu software works, I hope this is ok.

    A couple of weeks ago, I used several Pololu Maestro's to control both standard and custom built servos that I used in a couple of mechanisms for a Rube Goldberg machine.

    In this picture you can see the motor controllers on the left and the Pololu board on the right (sorry for the messy wiring, I had to do some last minute changes on site)


    I've got two channels (18 and 19) configured as inputs. They are connected through relais to the showcontrol. If one of the inputs is pulled low, one of the two movements that I put in the script is executed.

    Here's the status page with the mechanism at rest.


    Here are my channel settings. You can see the custom endpoint, startup, speed and acceleration settings.


    And this is the script.
    Basically:
    - when channel 18 is pulled low, the servo on channel 0 goes to position 1 (4800)
    - 3.5 seconds later it goes to position 2 (5650)
    - 3.5 seconds later it returns to it's home position (4000)

    - when channel 19 is pulled low, the servo on channel 0 goes to position 1 (4800)
    - 3.5 seconds later the servo on channel 1 goes to position 1 (6420)
    - 2.5 seconds after that, the servo on channel 1 goes back to it's home position (4800)
    - 3.5 seconds after that, the servo on channel 0 goes back to it's home position (4000).

     
    This is what the mechanism looks like:


    And this is what it looks like when channel 19 is pulled low (sorry for the shaky image):






    Post edited by Cyril Wichers on
  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    Cool. Wish I could be there with you all!
  • Wow, very cool. 
  • Cyril WichersCyril Wichers ✭✭✭
    edited September 2
    Here's my homework for the second week.

    At first I tried to animate one servo using the data generated by Maya and copying it to the Maestro controller the way that Craig demonstrated during the course.
    Then I remembered that I still had an old eye-mechanism gathering dust somewhere, so I decided to try and animate that.
     
    I made the virtual servo connections for the horizontal and vertical eye movement using the eye controls in AnimServo. Then I created two virtual servo's to animate the blinking and the eye tracking.
    I had hoped to be able to parent the vertical eye movement to the eye tracking, but I couldn't get that to work.
    I also tried briefly to connect the "Blink" sliders in the Female-soldier model  to my servo output, but ran out of time.
    So I decided to just set the key frames for those motions manually.

    I hope Craig can take some time to explain if and how this can be done with the software during the next class. I also hope he'll go in to how to set up a model like the Female-soldier and how to animate it using motion capture data.
    Unfortunately I won't be able to join you live for the next class. I can't wait to watch the video once I get back home!

    Maestro status:


    Maestro channel settings:


    Values to put in to Maya:


    Servo setup in Maya. The virtual servos for the blinks and the eye tracking can be seen in the right hand corner of the screen:


    Data generated by AnimServo:
    begin
    41 5927 6112 5799 5600 0 0
    0 0 0 0 0 0
    0 0 0 0 0 0
    0 0 0 0 0 0 frame_0..23 # frame 0

    41 5927 6112 5799 5600 frame_0..3 # frame 1

    41 5924 6116 5799 5604 frame_0..3 # frame 2

    41 5916 6128 5799 5615 frame_0..3 # frame 3

    41 5904 6147 5799 5634 frame_0..3 # frame 4

    41 5887 6173 5799 5659 frame_0..3 # frame 5

    (...)

    41 5993 6275 5799 5553 frame_0..3 # frame 195

    41 5970 6219 5799 5569 frame_0..3 # frame 196

    41 5952 6174 5799 5582 frame_0..3 # frame 197

    41 5938 6140 5799 5591 frame_0..3 # frame 198

    41 5930 6119 5799 5597 frame_0..3 # frame 199

    41 5927 6112 5799 5600 frame_0..3 # frame 200
    repeat

    sub frame_0..23
    23 servo
    22 servo
    21 servo
    20 servo
    19 servo
    18 servo
    17 servo
    16 servo
    15 servo
    14 servo
    13 servo
    12 servo
    11 servo
    10 servo
    9 servo
    8 servo
    7 servo
    6 servo
    5 servo
    4 servo
    3 servo
    2 servo
    1 servo
    0 servo
    delay
    return

    sub frame_0..3
    3 servo
    2 servo
    1 servo
    0 servo
    delay
    return

    Playblast:


    Output on eye mechanism:

    Post edited by Cyril Wichers on
  • Cyril, did you get the female soldiers eyes and eyelashes working?
  • Cyril WichersCyril Wichers ✭✭✭
    edited September 3
    You mean the eyelids? The sliders were working, but I couldn't figure out how to connect them to a virtual servo. I used two virtual servos and set their positions by hand.
  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    @Cyril Wichers How is all the software working on Windows 7?
  • Cyril WichersCyril Wichers ✭✭✭
    edited September 5
    The software we have had to use up until now is working fine (except from some minor hickups). We haven't had to use Faceware or Mixamo yet though.
    Post edited by Cyril Wichers on
  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    OK. That was one of the reasons I didn't sign up for the class because I didn't want to upgrade to Windows 10. Win 7 works fine for me and I don't need any problems with an upgrade.
  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    "@Cyril Wichers"  How are things going with this class?

  • Cyril WichersCyril Wichers ✭✭✭
    edited September 19
    The course was great, @David DeMattia. Maybe a bit more theoretical than the average SWSCA course, but certainly unique.
    Unfortunately, I've been very busy with work for the last couple of weeks, so I had to request for an extension of the deadline for my homework (which was fortunately granted). Hopefully I'll be able to catch up in the coming weeks.
  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    @Cyril Wichers
    Thanks for the update. I am very interested to see your progress and your overall impression when completed. Have you gotten as far as exporting Maya data to the servo controller?
  • Cyril WichersCyril Wichers ✭✭✭
    edited September 21
    Yes, the eye mechanism in the video I posted is controlled by a Pololu Maestro that's running data that was generated using Maya.
  • Cyril WichersCyril Wichers ✭✭✭
    edited October 2
    Finally had some time to work on this course again. I had to rewatch most of the videos to get up to speed.
    First thing I wanted to do was to try and do some simple modelling and animating in Maya, so I recreated the arm that Craig used as an example in the second part of the course.



    And rendered:



    And here's the output for the Pololu board:

    begin
    41 4000 4000 6117 5666 0 0
    0 0 0 0 0 0
    0 0 0 0 0 0
    0 0 0 0 0 0 frame_0..23 # frame 0

    41 4000 4000 6117 5666 frame_0..3 # frame 1

    41 4001 4001 6117 5667 frame_0..3 # frame 2

    41 4005 4005 6117 5670 frame_0..3 # frame 3

    (...)

    41 4012 7999 6823 5001 frame_0..3 # frame 198

    41 4003 7999 6823 5000 frame_0..3 # frame 199

    41 4000 8000 6823 5000 frame_0..3 # frame 200
    repeat

    sub frame_0..23
    23 servo
    22 servo
    21 servo
    20 servo
    19 servo
    18 servo
    17 servo
    16 servo
    15 servo
    14 servo
    13 servo
    12 servo
    11 servo
    10 servo
    9 servo
    8 servo
    7 servo
    6 servo
    5 servo
    4 servo
    3 servo
    2 servo
    1 servo
    0 servo
    delay
    return

    sub frame_0..3
    3 servo
    2 servo
    1 servo
    0 servo
    delay
    return

    I also managed to do a motion capture using Faceware Analyzer and use the data to animate the Female soldier model using Retargeter, but I'm not happy with the results so far, so I'm going to redo that.
  • Cyril WichersCyril Wichers ✭✭✭
    edited October 3
    I used the Head_rig model that was included with the AnimServo software to animate the neck mechanism I built for Jim Kundig's course.



  • David DeMattiaDavid DeMattia Saint Croix Falls, WI. ✭✭✭
    Cool!
  • Cyril WichersCyril Wichers ✭✭✭
    edited October 7
    Slowly but surely I'm beginning to understand how to rig a mechanism in Maya. Watching lots of tutorials helped, but figuring out how to get things working exactly like you want takes a lot of time.



    Post edited by Cyril Wichers on
  • Cyril I am having the same issue.  Learning how to rig in Maya has been a huge hurdle.  I had to sign up for a class.just on that, and I'm still really confused. 
    Also "un-parenting" hasn't worked all the well for me.  Good luck!
Sign In or Register to comment.