Bioscara
DALSA's DIY SCARA Robot Arm.
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
bioscara_hardware_drivers Namespace Reference

Classes

class  BaseGripper
 Generic base class for gripper control implementations. More...
 
class  BaseJoint
 Generic base class to control a single joint. More...
 
class  Gripper
 Child class implementing control of the hardware gripper. More...
 
class  Joint
 Representing a single hardware joint connected via I2C. More...
 
class  MockGripper
 Child class for to mock the gripper hardware. More...
 
class  MockJoint
 Representing a single joint mocking the hardware joint. More...
 

Enumerations

enum class  err_type_t {
  OK = 0 , ERROR = -1 , NOT_HOMED = -2 , NOT_ENABLED = -3 ,
  STALLED = -4 , NOT_INIT = -5 , COMM_ERROR = -6 , INVALID_ARGUMENT = -101 ,
  INCORRECT_STATE = -109
}
 Enum defining common error types. More...
 

Functions

std::string error_to_string (err_type_t err)
 Converts an error code to a string and returns it.
 

Enumeration Type Documentation

◆ err_type_t

Enum defining common error types.

Enumerator
OK 

Success.

ERROR 

Generic Error.

NOT_HOMED 

Joint not homed or failed to home.

NOT_ENABLED 

Joint not enabled or failed to enable.

STALLED 

Joint stalled.

NOT_INIT 

Joint not initialized.

COMM_ERROR 

Communication error.

INVALID_ARGUMENT 

Argument violates conditions.

INCORRECT_STATE 

Joint is busy executing another blocking command.

Function Documentation

◆ error_to_string()

std::string bioscara_hardware_drivers::error_to_string ( err_type_t  err)

Converts an error code to a string and returns it.

Parameters
err
Returns
std::string