Processing math: 100%

User Tools

Site Tools


ece4560:biped:04rrinvkin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ece4560:biped:04rrinvkin [2022/10/23 20:29] typosece4560:biped:04rrinvkin [2024/08/20 21:38] (current) – external edit 127.0.0.1
Line 14: Line 14:
 <code>[ traj_alpha ] = rr_inv_kin( obj, a_traj_ws, a_time, a_ref_frame, a_ee_frame )</code> <code>[ traj_alpha ] = rr_inv_kin( obj, a_traj_ws, a_time, a_ref_frame, a_ee_frame )</code>
  
-This method will take a desired (workspace) trajectory of your (selected) foot frame, relative to the **TORSO** frame, and produce a joint trajectory to accomplish it.+This method will take a desired (workspace) trajectory of your (selected) foot frame, relative to the **TORSO** frame, and produces a joint trajectory to accomplish it.
 The same assumptions, from #1, hold for inputs ''a_ref_frame'' and ''a_ee_frame''. ''a_traj_ws'' represents the foot frame trajectory (with respect to the ''a_ref_frame'' = **TORSO** frame). This is a 3×T matrix, [ x ; y ; θ ], where T is the number of waypoints comprising your trajectory and x, y, θ, here, are 1×T vectors. ''a_time'' is a 1×T vector holding timestamps associated with each waypoint in ''a_traj_ws''. The output, ''traj_alpha'', then, is a 3×T vector that should look something like [ αhip ; αknee ; αankle ] where αhip, αknee and αankle are 1×T vectors containing joint trajectories for each joint that is capable of affecting motion of the selected foot frame. The same assumptions, from #1, hold for inputs ''a_ref_frame'' and ''a_ee_frame''. ''a_traj_ws'' represents the foot frame trajectory (with respect to the ''a_ref_frame'' = **TORSO** frame). This is a 3×T matrix, [ x ; y ; θ ], where T is the number of waypoints comprising your trajectory and x, y, θ, here, are 1×T vectors. ''a_time'' is a 1×T vector holding timestamps associated with each waypoint in ''a_traj_ws''. The output, ''traj_alpha'', then, is a 3×T vector that should look something like [ αhip ; αknee ; αankle ] where αhip, αknee and αankle are 1×T vectors containing joint trajectories for each joint that is capable of affecting motion of the selected foot frame.
  
Line 21: Line 21:
 Generate the following: Generate the following:
  
-<code>&nbsp;</code><code>&nbsp;</code><code>&nbsp;</code>**a.** Plots of each relevant joint angle vs. time (ie. 3 plots)+**)** Plots of each relevant joint angle vs. time (ie. 3 plots)
  
-&nbsp;&nbsp;&nbsp; **b.** Plot of x-y foot position over time. For 3 different time instants, overlay a visualization of the foot frame on this plot.+**)** Plot of x-y foot position over time. For 3 different time instants, overlay a visualization of the foot frame on this plot.
  
-&nbsp;&nbsp;&nbsp; **c.** Overlay the x-y foot position over time (again, relative to the **TORSO** frame or assuming **TORSO** frame is locked to and aligned with the spatial/origin axes) produced by the resolved rate inverse kinematics joint trajectory, ''traj_alpha''. You will have to perform forward kinematics (eg. using ''fwd_kinematics( ... )'') to obtain the the actual accomplished foot frame trajectory.+**)** Overlay the x-y foot position over time (again, relative to the **TORSO** frame or assuming **TORSO** frame is locked to and aligned with the spatial/origin axes) produced by the resolved rate inverse kinematics joint trajectory, ''traj_alpha''. You will have to perform forward kinematics (eg. using ''fwd_kinematics( ... )'') to obtain the the actual accomplished foot frame trajectory.
  
 **4.** Use ''animateTrajectory( ... )'' to produce an animation of your resolved rate inverse kinematics joint trajectory, ''traj_alpha''. **4.** Use ''animateTrajectory( ... )'' to produce an animation of your resolved rate inverse kinematics joint trajectory, ''traj_alpha''.
ece4560/biped/04rrinvkin.1666571349.txt.gz · Last modified: 2024/08/20 21:38 (external edit)