Functions | Variables
rq_sensor_state.cpp File Reference
#include <string.h>
#include "robotiq_force_torque_sensor/rq_sensor_state.h"
#include "robotiq_force_torque_sensor/rq_sensor_com.h"
Include dependency graph for rq_sensor_state.cpp:

Go to the source code of this file.

Functions

enum rq_sensor_state_values rq_sensor_get_current_state ()
 Returns this module's state machine current state.
INT_8 rq_sensor_state (unsigned int max_retries)
void rq_state_do_zero_force_flag ()
 Command a zero on the sensor.
void rq_state_get_command (INT_8 const *const name, INT_8 *const value)
float rq_state_get_received_data (UINT_8 i)
bool rq_state_got_new_message ()
 Returns true if a stream message is available.
static INT_8 rq_state_init_com ()
 Initialize communication with the sensor and set the next state to RQ_STATE_READ_INFO.
static void rq_state_read_info_high_lvl ()
 Reads the high level information from the sensor and set the next state to RQ_STATE_START_STREAM.
static void rq_state_run (unsigned int max_retries)
static void rq_state_start_stream ()
 Send the command to start the streaming mode If the stream doesn't start, return to state init. Set the next state to RQ_STATE_RUN.

Variables

static enum rq_sensor_state_values current_state = RQ_STATE_INIT

Function Documentation

Returns this module's state machine current state.

Definition at line 231 of file rq_sensor_state.cpp.

INT_8 rq_sensor_state ( unsigned int  max_retries)

Definition at line 68 of file rq_sensor_state.cpp.

void rq_state_do_zero_force_flag ( void  )

Command a zero on the sensor.

Definition at line 247 of file rq_sensor_state.cpp.

void rq_state_get_command ( INT_8 const *const  name,
INT_8 *const  value 
)

Definition at line 205 of file rq_sensor_state.cpp.

Definition at line 185 of file rq_sensor_state.cpp.

bool rq_state_got_new_message ( void  )

Returns true if a stream message is available.

Definition at line 239 of file rq_sensor_state.cpp.

static INT_8 rq_state_init_com ( void  ) [static]

Initialize communication with the sensor and set the next state to RQ_STATE_READ_INFO.

Definition at line 108 of file rq_sensor_state.cpp.

static void rq_state_read_info_high_lvl ( void  ) [static]

Reads the high level information from the sensor and set the next state to RQ_STATE_START_STREAM.

Definition at line 125 of file rq_sensor_state.cpp.

static void rq_state_run ( unsigned int  max_retries) [static]

Definition at line 155 of file rq_sensor_state.cpp.

static void rq_state_start_stream ( void  ) [static]

Send the command to start the streaming mode If the stream doesn't start, return to state init. Set the next state to RQ_STATE_RUN.

Definition at line 137 of file rq_sensor_state.cpp.


Variable Documentation

Definition at line 51 of file rq_sensor_state.cpp.



robotiq_force_torque_sensor
Author(s): Jonathan Savoie
autogenerated on Thu Jun 6 2019 17:58:03