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