mbs_sensor.c File Reference
#include <stdlib.h>
#include "mbs_sensor2.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.
 
void free_sensor (MbsSensor *psens)
 Free the memory of MbsSensor structure.
 
void init_sensor (MbsSensor *psens, int njoint)
 Initialize all fields of MbsSensor structure to 0.
 

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.

◆ free_sensor()

void free_sensor ( MbsSensor * psens)

Free the memory of MbsSensor structure.

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

◆ 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.