#include <stdlib.h>
#include "mbs_sensor.h"
#include "mbs_data.h"
#include "mbs_project_interface.h"
Functions | |
void | allocate_sensor (MbsSensor *psens, int njoint) |
Allocate the Jacobian matrix of the MbsSensor according to the number of joints in the multibody system. More... | |
void | init_sensor (MbsSensor *psens, int njoint) |
Initialize all fields of MbsSensor structure to 0. More... | |
void | free_sensor (MbsSensor *psens) |
Deprecated: Free the memory inside MbsSensor structure. i.e. free the space allocated for the jacobian matrix and the rotation matrix of the sensor. More... | |
MbsSensor * | mbs_new_sensor (MbsData *mbs_data) |
Create a new MbsSensor structure, allocate and initialize the memory for all fields. More... | |
void | mbs_delete_sensor (MbsSensor *psens) |
Free the memory of MbsSensor structure. and its contents. More... | |
void | mbs_comp_S_sensor (MbsSensor *psens, MbsData *mbs_data, int isens) |
Compute all fields of the specified sensor. More... | |
void | mbs_comp_F_sensor (MbsSensor *psens, MbsData *mbs_data, int isens) |
Compute all fields of the specified force sensor. More... | |
void | mbs_comp_gen_sensor (MbsSensor *psens, MbsData *mbs_data, int joint_id) |
Compute all fields of a sensor located on the specified joint. More... | |
void allocate_sensor | ( | MbsSensor * | psens, |
int | njoint | ||
) |
Allocate the Jacobian matrix of the MbsSensor according to 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 | ) |
void init_sensor | ( | MbsSensor * | psens, |
int | njoint | ||
) |
Initialize all fields of MbsSensor structure to 0.
[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 | ) |