Hey guys so I tried doing the inverse kinematics in Mathematica but I got a weird result. I will post the code in dropbox so if you have time to look at it could you help me figure out what went wrong. If I don't hear back by tomorrow 2pm I'll just do the inverse kinematics by hand.
Below is a screenshot of the problem. As you can see in the output matrix there is a line that says Matrices Transformation + Matrices Transformation .... Anyway take a look and let me know if you figure out what went wrong.
Chris,
ReplyDeleteI cant see whats written above, but it looks to me that the comment line is intermixed with the input code.
Make sure comments are followed by "semicolons", and are the right text style ie" comments" and not inputs. U can change this in one of the pulldown menus. U might also try restarting Mathematica and rerun the code, since this will wipe any variable assignments that u made and then tried to change later. This is the only way I figured out how to wipe these assignments.
If this doesn't work, just post the file in dropbox, and i can take a look ASAP.
Chris,
ReplyDeleteI tried running both inverkine files u posted. They work fine. My guess is that u made an assignment earlier in the coding, then ran the code, then changed it later and tried to rerun it. For some reason mathematica keeps all varable assignments even after u try changing them. THe quick fix is simply say the code as u want it, then restart the program and run it again. It should work. Also, be wary of running multiple codes at the same time, since these variables may be common to both codes.
Awesome, I'll try run it again. I had one more question though. How did you make the equations in word? Can you export it from Mathematica or did you have to type everything out?
ReplyDeleteIn mathematica, click right click the output[whatever#] go down to style, and hit traditional to see it in a nicer font. Then just copy past into word. One tip. word doesnt like big equations but doesnt mind lost of small equations, so u may have to break it up into parts.
ReplyDeleteotherwise word gets sssssllllllooooowwwww.