|
Robotran C Documentation
|
Go to the documentation of this file.
9 #ifndef _JAVA_FUNCTIONS_H_
10 #define _JAVA_FUNCTIONS_H_
16 #if defined(__APPLE__) || defined(__MACH__)
24 typedef struct JNI_struct
27 jmethodID updateJointMethod;
28 jmethodID updateJtMultiMethod;
31 jmethodID setVpMethod;
32 jmethodID getNbVpMethod;
34 jdoubleArray *doubleArrayArgs;
40 typedef struct JNI_in_out
50 JNI_struct *jni_struct;
57 JNIEnv* create_vm(
void);
58 void init_jni(Realtime_visu *visu,
int nb_models,
int *nb_q,
double **q_vec,
char **mbs_file,
int start_viewpoint);
61 void run_java_mac_os(JNI_struct *jni_struct,
int nb_models,
int *nb_q);
62 void* start_jni(
void *args);
64 void start_jni(JNI_in_out *jni_in_out);
67 void update_jni(JNI_struct *jni_struct, Realtime_visu *visu,
int nb_models,
int *nb_q,
double **q_vec);
68 void free_jni(
void *visu_class);
Implementation of eig function using lapacke without using the lapackE interface.
Definition: cholesky.c:14
void svbksb(double **u, double w[], double **v, int m, int n, double b[], double x[])
Definition: svbksb.c:16
double * get_dvec_0(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 0
Definition: mbs_1D_array.c:880
void free_ivec_0(int *vec)
release memory for a vector of integers, starting with index 0
Definition: mbs_1D_array.c:415
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:293
static double dmaxarg2
Definition: svdcmp.c:21
Java functions used for the visualization.
#define SIGN(a, b)
Definition: nrfct.h:90
Definition: cholesky.c:15
float x
Definition: cholesky.c:14
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:78
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
Definition: mbs_matrix.c:238
static double dmaxarg1
Definition: svdcmp.c:21
void mbs_msg(char *msg,...)
Send a message.
Definition: mbs_message.c:76
Realtime_extern * ext
external variables
Definition: realtime.h:143
double pythag(double a, double b)
Definition: svdcmp.c:399
static int iminarg2
Definition: svdcmp.c:22
float y
Definition: cholesky.c:14
void free_dvec_1(double *vec)
release memory for a vector of doubles, starting at index 1
Definition: mbs_1D_array.c:901
#define IMIN(a, b)
Definition: nrfct.h:92
double y
Definition: cholesky.c:15
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:440
int mbs_schur_0(double **A, int n, double **T, double **Z, double *WR, double *WI, int reorder)
A : matrix for the Eigenvalue problem in row major n : size of the matrix WR : Result of the Eigenval...
Definition: schur_lapack.c:45
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:399
double x
Definition: cholesky.c:15
Definition: mbs_data.h:149
Real-time constraints main header.
real-time structure
Definition: realtime.h:99
int mbs_select(const double *real, const double *imaginary)
Definition: schur_lapack.c:33
MbsData * mbs_data
Robotran main structure.
Definition: realtime.h:36
void svdcmp_0(double **a, int m, int n, double w[], double **v)
computes the Singular Value Decomposition a = u.w.v'
Definition: svdcmp.c:211
void svdcmp(double **a, int m, int n, double w[], double **v)
computes the Singular Value Decomposition a = u.w.v'
Definition: svdcmp.c:25
void svbksb_0(double **u, double w[], double **v, int m, int n, double b[], double x[])
Definition: svbksb.c:38
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:18
double * get_dvec_1(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 1
Definition: mbs_1D_array.c:885
static double dsqrarg
Definition: svdcmp.c:23
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:896
#define DMAX(a, b)
Definition: nrfct.h:95
#define MAX(a, b)
Definition: useful_functions.h:14
static int iminarg1
Definition: svdcmp.c:22
#define DSQR(a)
Definition: nrfct.h:98
#define _MBS_ERR_LOW_LAPACKE
Low Level error number problem with Lapacke system resolution = -5.
Definition: mbs_errors_names.h:137