|
AGX Dynamics
2.35.0.1
|
#include <agxMex/export.h>Go to the source code of this file.
Functions | |
| AGXMEX_EXPORT int | AGXMEX_getInitInputSize () |
| Returns the size of the init input array for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT const char * | AGXMEX_getInitInputValueName (unsigned int valueNr) |
| Returns the name of a specific init input value for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT int | AGXMEX_getInitOutputSize () |
| Returns the size of the init output array for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT const char * | AGXMEX_getInitOutputValueName (unsigned int valueNr) |
| Returns the name of a specific init output value for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT const char * | AGXMEX_getLastErrorMessage () |
| Returns last error message. Empty if no error. More... | |
| AGXMEX_EXPORT int | AGXMEX_getStepInputSize () |
| Returns the size of the step input array for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT const char * | AGXMEX_getStepInputValueName (unsigned int valueNr) |
| Returns the name of a specific step input value for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT int | AGXMEX_getStepOutputSize () |
| Returns the size of the step output array for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT const char * | AGXMEX_getStepOutputValueName (unsigned int valueNr) |
| Returns the name of a specific step output value for AGXMEX_stepAgx. More... | |
| AGXMEX_EXPORT int | AGXMEX_initAgx (const char *debugFile, const char *agxFilePath, const char *agxPluginPath, const char *osgFilePath) |
| Initialize the "simulation", must be called prior to any of the other functions. More... | |
| AGXMEX_EXPORT int | AGXMEX_loadFileAgx (double *initInput, double *initOutput) |
| Loads the scene specified int a .agxLua file into to the simulation. More... | |
| AGXMEX_EXPORT int | AGXMEX_preloadFileAgx (const char *file, int *initInputSize, int *initOutputSize, int *stepInputSize, int *stepOutputSize) |
| Preloads the scene specified int a .agxLua file into to the simulation. More... | |
| AGXMEX_EXPORT int | AGXMEX_resetAgx () |
| Reset the "simulation". More... | |
| AGXMEX_EXPORT int | AGXMEX_setTimeStepAgx (double timeStep) |
| AGXMEX_EXPORT int | AGXMEX_setUseCoSimulation (int flag) |
| Sets if the simulation should use remote debugging. More... | |
| AGXMEX_EXPORT int | AGXMEX_stepAgx (const double *input, double *output) |
| Step the "simulation". More... | |
| AGXMEX_EXPORT int AGXMEX_getInitInputSize | ( | ) |
Returns the size of the init input array for AGXMEX_stepAgx.
| AGXMEX_EXPORT const char* AGXMEX_getInitInputValueName | ( | unsigned int | valueNr | ) |
Returns the name of a specific init input value for AGXMEX_stepAgx.
| valueNr | The number of the value. Must be smaller than the return value of AGXMEX_getInputSize(). |
| The | name of the input value. 0 for invalid valueNr. |
| AGXMEX_EXPORT int AGXMEX_getInitOutputSize | ( | ) |
Returns the size of the init output array for AGXMEX_stepAgx.
| AGXMEX_EXPORT const char* AGXMEX_getInitOutputValueName | ( | unsigned int | valueNr | ) |
Returns the name of a specific init output value for AGXMEX_stepAgx.
| valueNr | The number of the value. Must be smaller than the return value of AGXMEX_getOutputSize(). |
| The | name of the output value. 0 for invalid valueNr. |
| AGXMEX_EXPORT const char* AGXMEX_getLastErrorMessage | ( | ) |
Returns last error message. Empty if no error.
| AGXMEX_EXPORT int AGXMEX_getStepInputSize | ( | ) |
Returns the size of the step input array for AGXMEX_stepAgx.
| AGXMEX_EXPORT const char* AGXMEX_getStepInputValueName | ( | unsigned int | valueNr | ) |
Returns the name of a specific step input value for AGXMEX_stepAgx.
| valueNr | The number of the value. Must be smaller than the return value of AGXMEX_getInputSize(). |
| The | name of the input value. 0 for invalid valueNr. |
| AGXMEX_EXPORT int AGXMEX_getStepOutputSize | ( | ) |
Returns the size of the step output array for AGXMEX_stepAgx.
| AGXMEX_EXPORT const char* AGXMEX_getStepOutputValueName | ( | unsigned int | valueNr | ) |
Returns the name of a specific step output value for AGXMEX_stepAgx.
| valueNr | The number of the value. Must be smaller than the return value of AGXMEX_getOutputSize(). |
| The | name of the output value. 0 for invalid valueNr. |
| AGXMEX_EXPORT int AGXMEX_initAgx | ( | const char * | debugFile, |
| const char * | agxFilePath, | ||
| const char * | agxPluginPath, | ||
| const char * | osgFilePath | ||
| ) |
Initialize the "simulation", must be called prior to any of the other functions.
Can only be called once.
| debugFile | Which file should debug information be written to? 0 means stdout. |
| agxFilePath | The agx file path. Only needed in mixed OS-environments. |
| agxPluginPath | The agx plugin path. Only needed in mixed OS-environments. |
| osgFilePath | The osg file path. Only needed in mixed OS-environments. |
| AGXMEX_EXPORT int AGXMEX_loadFileAgx | ( | double * | initInput, |
| double * | initOutput | ||
| ) |
Loads the scene specified int a .agxLua file into to the simulation.
| initInput | The input to the init function. Should be of size initInputSize as given from the function AGXMEX_preloadFileAgx. |
| initOutput | The output from the init function. Should be of size initOutputSize as given from the function AGXMEX_preloadFileAgx. |
| AGXMEX_EXPORT int AGXMEX_preloadFileAgx | ( | const char * | file, |
| int * | initInputSize, | ||
| int * | initOutputSize, | ||
| int * | stepInputSize, | ||
| int * | stepOutputSize | ||
| ) |
Preloads the scene specified int a .agxLua file into to the simulation.
| file | - path to a configuration file specifying the simulation content |
| initInputSize | Number of elements in input array of doubles used in init function |
| initOutputSize | Number of elements in output array of doubles used in init function |
| stepInputSize | Number of elements in input array of doubles used in step function |
| stepOutputSize | Number of elements in output array of doubles used in step function |
| AGXMEX_EXPORT int AGXMEX_resetAgx | ( | ) |
Reset the "simulation".
| AGXMEX_EXPORT int AGXMEX_setTimeStepAgx | ( | double | timeStep | ) |
| timeStep | The simulation time step. E.g. 0.01 for a 100Hz simulation. |
| AGXMEX_EXPORT int AGXMEX_setUseCoSimulation | ( | int | flag | ) |
Sets if the simulation should use remote debugging.
This will have a quite high performance cost, since the whole simulation will be sent at 100Hz. Requirement: AGXMEX_initAgx must be called prior to this call.
| flag | 0 for false (deactivate remote debugger), 1 true (activate remote debugger) 2 hidden (activate remote debugger, no graphics window) |
| AGXMEX_EXPORT int AGXMEX_stepAgx | ( | const double * | input, |
| double * | output | ||
| ) |
Step the "simulation".
Requirement: AGXMEX_initAgx and AGXMEX_loadFileAgx must be called prior to this call.
| input | - a pointer to an array with doubles containing in-data, size is specified by input_size |
| output | - a pointer to an array with doubles containing out-data, size is specified by output_size |