Classes | Functions
probe_robot.cc File Reference
#include <serial/serial.h>
#include <ubiquity_motor/motor_message.h>
Include dependency graph for probe_robot.cc:

Go to the source code of this file.

Classes

struct  Options
 
class  TimeoutException
 

Functions

bool find_switch (const std::vector< std::string > &args, const std::string &short_sw, const std::string &long_sw)
 
int get_option (const std::vector< std::string > &args, const std::string &option, const int default_val)
 
std::string get_option (const std::vector< std::string > &args, const std::string &option, const std::string &default_val)
 
int main (int argc, char const *argv[])
 
Options parse_args (const std::vector< std::string > &args)
 
MotorMessage readRegister (MotorMessage::Registers reg, serial::Serial &robot)
 

Function Documentation

◆ find_switch()

bool find_switch ( const std::vector< std::string > &  args,
const std::string &  short_sw,
const std::string &  long_sw 
)

Definition at line 44 of file probe_robot.cc.

◆ get_option() [1/2]

int get_option ( const std::vector< std::string > &  args,
const std::string &  option,
const int  default_val 
)

Definition at line 62 of file probe_robot.cc.

◆ get_option() [2/2]

std::string get_option ( const std::vector< std::string > &  args,
const std::string &  option,
const std::string &  default_val 
)

Definition at line 52 of file probe_robot.cc.

◆ main()

int main ( int  argc,
char const *  argv[] 
)

Definition at line 157 of file probe_robot.cc.

◆ parse_args()

Options parse_args ( const std::vector< std::string > &  args)

Definition at line 72 of file probe_robot.cc.

◆ readRegister()

MotorMessage readRegister ( MotorMessage::Registers  reg,
serial::Serial robot 
)

Definition at line 111 of file probe_robot.cc.



ubiquity_motor
Author(s):
autogenerated on Thu Nov 16 2023 03:30:56