Namespaces | Enumerations | Functions
rq_sensor_state.h File Reference
#include "rq_int.h"
#include <stdbool.h>
#include <string>
Include dependency graph for rq_sensor_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SensorAccessor
 

Enumerations

enum  SensorAccessor::Command { SensorAccessor::GET_SERIAL_NUMBER = 1, SensorAccessor::GET_FIRMWARE_VERSION = 2, SensorAccessor::GET_PRODUCTION_YEAR = 4, SensorAccessor::SET_ZERO = 8 }
 
enum  rq_sensor_state_values { RQ_STATE_INIT, RQ_STATE_READ_INFO, RQ_STATE_START_STREAM, RQ_STATE_RUN }
 

Functions

enum rq_sensor_state_values rq_sensor_get_current_state (void)
 Returns this module's state machine current state. More...
 
INT_8 rq_sensor_state (unsigned int max_retries)
 
INT_8 rq_sensor_state (unsigned int max_retries, const std::string &ftdi_id)
 
void rq_state_do_zero_force_flag (void)
 Command a zero on the sensor. More...
 
void rq_state_get_command (INT_8 const *const name, INT_8 *const value)
 
bool rq_state_get_command (INT_8 command, INT_8 *const value)
 Gets the value of high level information from the sensor. More...
 
float rq_state_get_received_data (UINT_8 i)
 
bool rq_state_got_new_message (void)
 Returns true if a stream message is available. More...
 

Enumeration Type Documentation

Enumerator
RQ_STATE_INIT 

State that initialize the com. with the sensor.

RQ_STATE_READ_INFO 

State that reads the firmware version, serial number and production year

RQ_STATE_START_STREAM 

State that start the sensor in streaming mode

RQ_STATE_RUN 

the sensor

State that reads the streaming data from

Definition at line 66 of file rq_sensor_state.h.

Function Documentation

enum rq_sensor_state_values rq_sensor_get_current_state ( void  )

Returns this module's state machine current state.

Definition at line 322 of file rq_sensor_state.cpp.

INT_8 rq_sensor_state ( unsigned int  max_retries)

Definition at line 109 of file rq_sensor_state.cpp.

INT_8 rq_sensor_state ( unsigned int  max_retries,
const std::string &  ftdi_id 
)

Definition at line 69 of file rq_sensor_state.cpp.

void rq_state_do_zero_force_flag ( void  )

Command a zero on the sensor.

Definition at line 338 of file rq_sensor_state.cpp.

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

Definition at line 296 of file rq_sensor_state.cpp.

bool rq_state_get_command ( INT_8  command,
INT_8 *const  value 
)

Gets the value of high level information from the sensor.

Parameters
commandhas to be in [1, 2, 4, 8] corresponding to SerialNumber, FirmwareVersion and ProductionYear, Reset
valuereturn string with requested Data
Returns
true iff command is valid

values correnspond to constants in sensor_accessor.srv

Definition at line 263 of file rq_sensor_state.cpp.

float rq_state_get_received_data ( UINT_8  i)

Definition at line 242 of file rq_sensor_state.cpp.

bool rq_state_got_new_message ( void  )

Returns true if a stream message is available.

Definition at line 330 of file rq_sensor_state.cpp.



robotiq_ft_sensor
Author(s): Jonathan Savoie
autogenerated on Tue Jun 1 2021 02:30:04