WR Home Topic Home | Chapter: 1 2 |
<Previous | Next> |
Chapter 02
Basics of Animation and Forward Kinematics
Page 14
Rotating a two link mechanismExample: The function function [ successFlag, nlx, nly ] = rotate_motor_logically( motor_no, angleInDegree, lx, ly, debugFlag) is called two times,
first time it is called to rotate M1 by -60° and
then it is called to rotate M2 by 40°
A simple MATLAB® code is provided below.
main_003.m is to be executed.
Please do not proceed further till you execute and understand this code.
Click here to download the code
Click here to view the code and its output.
Initial Position | Rotate M1 by -60° | Rotate M2 by 40° |
---|---|---|
WR Home Topic Home | Chapter: 1 2 |
<Previous | Next> |