Declare functions associated to MbsSensor allocation and reset. More...
#include "mbs_sensor_struct.h"Go to the source code of this file.
Functions | |
| int | allocate_sensor (MbsSensor *psens, int njoint) |
| Allocate the Jacobian matrix of the MbsSensor. More... | |
| int | init_sensor (MbsSensor *psens, int njoint) |
| Initialize all fields of MbsSensor structure to 0 and identity rotation matrix. More... | |
| void | free_sensor (MbsSensor *psens) |
| Deprecated: Free the memory INSIDE MbsSensor structure. More... | |
| MbsSensor * | mbs_new_sensor (struct MbsData *mbs_data) |
| Create (allocate and initialize) a new MbsSensor structure. More... | |
| void | mbs_delete_sensor (MbsSensor *psens) |
| Free the memory of MbsSensor structure and its contents. More... | |
Declare functions associated to MbsSensor allocation and reset.
(c) Universite catholique de Louvain
| int allocate_sensor | ( | MbsSensor * | psens, |
| int | njoint | ||
| ) |
Allocate the Jacobian matrix of the MbsSensor.
User shoudl call direclty the function mbs_new_sensor().
The size of the matrix depends on the number of joints in the multibody system.
| [in,out] | psens | Pointer to the MbsSensor structure to modify. |
| [in] | njoint | Number of joint in the MBS, see MbsData::njoint. |
| void free_sensor | ( | MbsSensor * | psens | ) |
Deprecated: Free the memory INSIDE MbsSensor structure.
The function mbs_delete_sensor() must be used.
It frees the space allocated for the jacobian matrix and the rotation matrix of the sensor.
It does not free the MbsSensor memory itself.
| [in,out] | psens | Pointer to the MbsSensor structure to be freed. |
| int init_sensor | ( | MbsSensor * | psens, |
| int | njoint | ||
| ) |
Initialize all fields of MbsSensor structure to 0 and identity rotation matrix.
| [in,out] | psens | Pointer to the MbsSensor structure to initialize. |
| [in] | njoint | Number of joint in the MBS, see MbsData::njoint. |
| void mbs_delete_sensor | ( | MbsSensor * | psens | ) |
1.8.17