1 #ifndef SERIAL_CONTROLLER_H 2 #define SERIAL_CONTROLLER_H 4 #include "Controller.h" 5 #include <KrisLibrary/utils/AsyncIO.h> 40 virtual const char* Type()
const {
return "SerialController"; }
41 virtual void Update(Real dt);
43 virtual map<string,string> Settings()
const;
44 virtual bool GetSetting(
const string& name,
string& str)
const;
45 virtual bool SetSetting(
const string& name,
const string& str);
47 bool OpenConnection(
const string& servaddr);
48 bool CloseConnection();
49 void PackSensorData(AnyCollection& data);
54 shared_ptr<SocketPipeWorker> controllerPipe;
The main robot type used in RobotSim.
Definition: Robot.h:79
A base class for a robot controller. The base class does nothing.
Definition: Controller.h:27
A controller that writes sensor data to a socket and reads robot commands from a socket.
Definition: SerialController.h:35