|
Robotran C Documentation
|
#define MBS_INFO_FAILURE
Definition: mbs_define.h:32
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
int * qa
Array with the indices of actuated articulations (only for inverse dynamic).
Definition: mbs_data.h:278
int nqv
Number of dependent articulations.
Definition: mbs_data.h:268
int nqu
Number of independent articulations.
Definition: mbs_data.h:263
void lubksb(double **a, int n, int *indx, double b[])
Definition: lubksb.c:10
void copy_dmat_0(double **tab_src, double **tab_dest, int nb_r, int nb_c)
Copy the content of a [nb_r times nb_c] matrix of doubles to a second matrix, starting with index 0.
Definition: mbs_matrix.c:444
Declaration of functions that are project dependent.
void free_ivec_0(int *vec)
release memory for a vector of integers, starting with index 0
Definition: mbs_1D_array.c:590
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:374
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
int invdynared(MbsAux *mbs_aux, MbsData *s)
Compute the required forces ont the actuated joints in a configuration.
Definition: mbs_invdynared.c:28
void zeros_dmat_0(double **mat, int nb_r, int nb_c)
set all the element of a [nb_r times nb_c] matrix of doubles to zero, starting with index 0
Definition: mbs_matrix.c:914
int ludcmp(double **a, int n, int *indx, double *d)
LU decomposition of a matrix with index starting at 1.
Definition: ludcmp.c:19
double ** B
input matrix [nx nu]
Definition: mbs_statespace_struct.h:20
int mbs_svdDcmp_0(double **A, int x, int y, double **U, double **S, double **VT)
Realize the singular value decomposition.
Definition: svdcmp_lapack.c:80
double ** get_dmat_0(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of doubles, starting at index 0 The functi...
Definition: mbs_matrix.c:294
The State-space representation starts at index 0.
Definition: mbs_statespace_struct.h:10
double ** A
state space matrix [nx nx]
Definition: mbs_statespace_struct.h:19
int * qu
Array with the indices of the independent articulations (free)
Definition: mbs_data.h:272
int * qv
Array with the indices of the dependent articulations .
Definition: mbs_data.h:280
double * Qc
Array with the value of joint force introduced in driven joint to respect the user function.
Definition: mbs_data.h:333
#define _MBS_ERR_MOD_SPEC_12
Generic error number Module specific errors range from -11 to -19 please read the error message a...
Definition: mbs_errors_names.h:178
int nqdriven
Number of driven articulations.
Definition: mbs_data.h:266
int ny
number of output (limited to 2*nqu)
Definition: mbs_statespace_struct.h:17
void mult_dmat_0(double **A, double **B, double **C, int n1, int n2, int n3)
function to multiply two matrices: A * B = C [n1 n2] [n2 n3] = [n1 n3]
Definition: mbs_matrix.c:961
void transpose_dmat_0(double **tab_src, double **tab_dest, int nb_r, int nb_c)
Transpose a [nb_r times nb_c] matrix of doubles and store the results in a [y times nb_r] matrix,...
Definition: mbs_matrix.c:524
int * get_ivec_0(int l_v)
create (with memory allocation) a vector (length l_v) of integers, starting at index 0....
Definition: mbs_1D_array.c:555
Definition: mbs_data.h:247
int mbs_compute_kalmanDcpt(MbsSS *ss, MbsSS *sskal, double **T, int *nxc_ptr)
compute the Kalman decomposition for a given state space representation.
Definition: mbs_kalman.c:31
double ** C
output matrix [ny nx]
Definition: mbs_statespace_struct.h:21
void zeros_dvec_1(double *vec)
set all the element of a vector of doubles to zero, starting with index 1
Definition: mbs_1D_array.c:1514
int mbs_compute_kalmanDcpt(MbsSS *ss, MbsSS *sskal, double **T, int *nxc_ptr)
compute the Kalman decomposition for a given state space representation
Definition: mbs_kalman.c:31
int mbs_over_under_determined(double **A, double *b, int x, int y)
Solve a linear system of equations, A*x=b, using dgelss lapack function.
Definition: svdcmp_lapack.c:14
void free_dmat_1(double **mat)
release memory for a matrix of doubles, starting at index 1
Definition: mbs_matrix.c:382
void copy_dvec_0(double *vec_src, double *vec_dest, int l_v)
Copy the content of a vector (of sizel_v) of doubles to a second vector, starting with index 0.
Definition: mbs_1D_array.c:1100
#define MBS_INFO_SUCCESS
Definition: mbs_define.h:30
int * qdriven
Array with the indices of driven articulations.
Definition: mbs_data.h:276
void pick_and_place_dvec_1(double *src, int *index, int n, double *dest)
Pick the values from an array and set them in the destination array at the specified index.
Definition: mbs_1D_array.c:1426
int find_ivec_1(int *vec, int l_v, int f)
return the index of the value f in the (x sized) vector vec of integers, starting with index 1....
Definition: mbs_1D_array.c:1007
double ** get_dmat_1(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of doubles, starting at index 1
Definition: mbs_matrix.c:316
int nqa
Number of actuated articulations.
Definition: mbs_data.h:267
int mbs_rank_0(double **A, int m, int n)
Compute the rank of a matrix.
Definition: rank_lapack.c:21
int mbs_Rred_core(MbsAux *mbs_aux, MbsData *s)
Compute the residual force on independant joints and required force in driven joints.
Definition: mbs_Rred.c:41
int same_ivec_1(int *v1, int *v2)
Compare if two vector are the same.
Definition: mbs_1D_array.c:1039
int nu
number of input (limited to njoint for the moment as only joint forces are considered as input)
Definition: mbs_statespace_struct.h:16
int nx
number of state, (normally nx=2*nqu)
Definition: mbs_statespace_struct.h:15