#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <sstream>
#include <iostream>
#include <vector>
#include <boost/filesystem.hpp>
#include <unordered_map>
#include <fstream>
#include "SerialDevice.hpp"
#include "message.hpp"
Go to the source code of this file.
|
DeviceInfo | device_info (const path &device_path) |
|
std::string | extract_value (const std::string &text, const std::string &key) |
|
int | main (int argc, char *argv[]) |
|
std::string | microcontroller_filename (const Microcontroller v) |
|
std::ostream & | operator<< (std::ostream &o, const DeviceInfo &v) |
|
std::ostream & | operator<< (std::ostream &o, const Microcontroller v) |
|
template<typename K , typename V > |
std::ostream & | operator<< (std::ostream &o, const std::unordered_map< K, V > &ts) |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &o, const std::vector< T > &ts) |
|
std::string | run (const path &program, const std::vector< std::string > &args) |
|
std::string | udev_rule (const Microcontroller microcontroller, const std::string &serial) |
|
◆ Microcontroller
Enumerator |
---|
Unknown | |
LeftArm | |
RightArm | |
Waist | |
Base | |
Definition at line 139 of file init.cpp.
◆ device_info()
DeviceInfo device_info |
( |
const path & |
device_path | ) |
|
◆ extract_value()
std::string extract_value |
( |
const std::string & |
text, |
|
|
const std::string & |
key |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ microcontroller_filename()
◆ operator<<() [1/4]
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const DeviceInfo & |
v |
|
) |
| |
◆ operator<<() [2/4]
◆ operator<<() [3/4]
template<typename K , typename V >
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const std::unordered_map< K, V > & |
ts |
|
) |
| |
◆ operator<<() [4/4]
template<typename T >
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const std::vector< T > & |
ts |
|
) |
| |
◆ run()
std::string run |
( |
const path & |
program, |
|
|
const std::vector< std::string > & |
args |
|
) |
| |
◆ udev_rule()
std::string udev_rule |
( |
const Microcontroller |
microcontroller, |
|
|
const std::string & |
serial |
|
) |
| |