Robotran C Documentation
Functions
mbs_sensor.c File Reference

Define functions to compute sensors. More...

#include "mbs_sensor.h"
#include "mbs_project_interface.h"

Functions

int mbs_comp_S_sensor (MbsSensor *psens, MbsData *mbs_data, int isens)
 Compute all fields of the specified sensor. More...
 
int mbs_comp_F_sensor (MbsSensor *psens, MbsData *mbs_data, int isens)
 Compute all fields of the specified force sensor. More...
 
int mbs_comp_gen_sensor (MbsSensor *psens, MbsData *mbs_data, int joint_id)
 Compute all fields of a sensor located on the specified joint. More...
 

Detailed Description

Define functions to compute sensors.

Author
Robotran team

Original file by JF Collard, 2008

(c) Universite catholique de Louvain

Function Documentation

◆ mbs_comp_F_sensor()

int mbs_comp_F_sensor ( MbsSensor psens,
struct MbsData mbs_data,
int  isens 
)

Compute all fields of the specified force sensor.

Parameters
[in,out]psensPointer to the MbsSensor structure to compute.
[in]mbs_datapointer to the MbsData structure of the model related to the sensor.
[in]isensthe ID of the force sensor.
Returns
MBS_INFO_SUCCESS in case of success.

◆ mbs_comp_gen_sensor()

int mbs_comp_gen_sensor ( MbsSensor psens,
struct MbsData mbs_data,
int  joint_id 
)

Compute all fields of a sensor located on the specified joint.

Parameters
[in,out]psensPointer to the MbsSensor structure to compute.
[in]mbs_datapointer to the MbsData structure of the model related to the sensor.
[in]joint_idthe ID of the joint.
Returns
MBS_INFO_SUCCESS in case of success.

◆ mbs_comp_S_sensor()

int mbs_comp_S_sensor ( MbsSensor psens,
struct MbsData mbs_data,
int  isens 
)

Compute all fields of the specified sensor.

Parameters
[in,out]psensPointer to the MbsSensor structure to compute.
[in]mbs_datapointer to the MbsData structure of the model related to the sensor.
[in]isensthe ID of the sensor.
Returns
MBS_INFO_SUCCESS in case of success.