|
Robotran C Documentation
|
Loop and Inverse Kinematics
Computation of the inverse kinematics of system containing constraints (kinematics constraints or user-specified).
For more information, see Robotran theoritical framework.
Code sample
For running the kinematics, insert the following code in your main script and adapt it to your need :
Use
The inverse kinematics is performed by the function mbs_run_solvekin().
The user specifies the desired options of the inverse kinematics in MbsInvOptions structure. The results are provided in the MbsBuffer structure (par of the MbsSolvekin structure) and written to files at the end of computation. The results is provided in the MBS_solvekin structure.
You should calls succesively
MbsInvOptions * options
Structure defining the option of a inverse kinematic analysis.
Definition: mbs_solvekin_struct.h:153
char * trajectoryqddname
Give the path and filename (with extention) to the file containing the input trajectory in accelerati...
Definition: mbs_solvekin_struct.h:73
General structure of the inverse kinematics module.
Definition: mbs_solvekin_struct.h:149
double dt
Time step, default = 0.001.
Definition: mbs_solvekin_struct.h:86
int motion
Determines how the evolution of q, qd qdd are provided.
Definition: mbs_solvekin_struct.h:40
int framerate
Number of frame per second for the .anim file, default = 1000.
Definition: mbs_solvekin_struct.h:113
double t0
Initial time of the simulation, default = 0.0.
Definition: mbs_solvekin_struct.h:76
char * trajectoryqname
Give the path and filename (with extention) to the file containing the input trajectory in position o...
Definition: mbs_solvekin_struct.h:51
@ trajectory
Definition: mbs_solvekin_struct.h:25
char * trajectoryqdname
Give the path and filename (with extention) to the file containing the input trajectory in velocity o...
Definition: mbs_solvekin_struct.h:62
double tf
Final time of the simulation, default = 5.0.
Definition: mbs_solvekin_struct.h:79
int mbs_run_solvekin(MbsSolvekin *sk, MbsData *mbs_data)
Run the inverse kinematic analysis.
Definition: mbs_solvekin.c:101
int process
Flag that indicate which module is currently running (1=partitioning, 2=equilibrium,...
Definition: mbs_data.h:297
MbsSolvekin * mbs_new_solvekin(MbsData *mbs_data)
Create a new inverse kinematic structure.
Definition: mbs_solvekin.c:29
void mbs_delete_solvekin(MbsSolvekin *solvekin, MbsData *mbs_data)
Free memory of the inverse kinematic structure The options (MbsInvOptions) and MbsAux structures are ...
Definition: mbs_solvekin.c:85