mbs_sensor.c File Reference
#include <stdlib.h>
#include "mbs_sensor2.h"
+ Include dependency graph for mbs_sensor.c:

Go to the source code of this file.

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 free_sensor (MbsSensor *psens)
 Free the memory of MbsSensor structure. More...
 
void init_sensor (MbsSensor *psens, int njoint)
 Initialize all fields of MbsSensor structure to 0. More...
 

Function Documentation

◆ allocate_sensor()

void allocate_sensor ( MbsSensor psens,
int  njoint 
)

Allocate the Jacobian matrix of the MbsSensor according to the number of joints in the multibody system.

Parameters
[in,out]psensPointer to the MbsSensor structure to modify.
[in]njointNumber of joint in the MBS, see MbsData::njoint.

Definition at line 14 of file mbs_sensor.c.

+ Here is the caller graph for this function:

◆ free_sensor()

void free_sensor ( MbsSensor psens)

Free the memory of MbsSensor structure.

Parameters
[in,out]psensPointer to the MbsSensor structure to be freed.

Definition at line 49 of file mbs_sensor.c.

+ Here is the caller graph for this function:

◆ init_sensor()

void init_sensor ( MbsSensor psens,
int  njoint 
)

Initialize all fields of MbsSensor structure to 0.

Parameters
[in,out]psensPointer to the MbsSensor structure to initialize.
[in]njointNumber of joint in the MBS, see MbsData::njoint.

Definition at line 25 of file mbs_sensor.c.

+ Here is the caller graph for this function: