rec::robotino::api2 C interface
Factory4.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH
2 
3 #ifndef _REC_ROBOTINO_API2_C_FACTORY4_H_
4 #define _REC_ROBOTINO_API2_C_FACTORY4_H_
5 
6 #include "rec/robotino/api2/c/globals.h"
8 
17 typedef int Factory4Id;
18 
20 #define INVALID_FACTORY4ID -1
21 
26 DLLEXPORT Factory4Id Factory4_construct();
27 
33 DLLEXPORT BOOL Factory4_destroy( Factory4Id id );
34 
39 DLLEXPORT BOOL Factory4_setComId( Factory4Id id, ComId comId );
40 
41 DLLEXPORT BOOL Factory4_processEvents(Factory4Id id);
42 
43 /*
44 For a list of possoble messages see http://wiki.openrobotino.org/index.php?title=SmartFestoFleetCom
45 */
46 DLLEXPORT BOOL Factory4_sendMessage(Factory4Id id, const char* message);
47 
51 DLLEXPORT BOOL Factory4_setMapPlanner(Factory4Id id, const char* data, unsigned int dataSize);
52 
53 DLLEXPORT BOOL Factory4_mapDirRequest(Factory4Id id, const char* infoData, const unsigned int infoDataSize, const char* data, const unsigned int dataSize);
54 
55 DLLEXPORT BOOL Factory4_savePathNetwork(Factory4Id id, const char* data, const unsigned int dataSize);
56 
57 DLLEXPORT BOOL Factory4_setSmartLocations(Factory4Id id, const char* data, const unsigned int dataSize);
58 DLLEXPORT BOOL Factory4_setSmartStations(Factory4Id id, const char* data, const unsigned int dataSize);
59 
60 /*Events*/
61 
62 typedef void(*Factory4_data1Cb_t)(const char* data, int dataSize);
63 typedef void(*Factory4_data2Cb_t)(const char* data, int dataSize, const char* data2, int data2Size);
64 
65 DLLEXPORT BOOL Factory4_setMclayoutEventCb(Factory4Id id, Factory4_data1Cb_t func);
66 
67 DLLEXPORT BOOL Factory4_setMcstatusEventCb(Factory4Id id, Factory4_data1Cb_t func);
68 DLLEXPORT BOOL Factory4_setPathnetworkEventCb(Factory4Id id, Factory4_data1Cb_t func);
69 DLLEXPORT BOOL Factory4_setLocalizationModeEventCb(Factory4Id id, Factory4_data1Cb_t func);
70 DLLEXPORT BOOL Factory4_setSmartlogEventCb(Factory4Id id, Factory4_data1Cb_t func);
71 DLLEXPORT BOOL Factory4_setSmartnavigationplanEventCb(Factory4Id id, Factory4_data1Cb_t func);
72 DLLEXPORT BOOL Factory4_setSmartlocationsEventCb(Factory4Id id, Factory4_data1Cb_t func);
73 DLLEXPORT BOOL Factory4_setSmartstationsEventCb(Factory4Id id, Factory4_data1Cb_t func);
74 DLLEXPORT BOOL Factory4_setSmartrobotinfoEventCb(Factory4Id id, Factory4_data1Cb_t func);
75 DLLEXPORT BOOL Factory4_setSmartmyrobotidEventCb(Factory4Id id, Factory4_data1Cb_t func);
76 DLLEXPORT BOOL Factory4_setSmartjoblistEventCb(Factory4Id id, Factory4_data1Cb_t func);
77 DLLEXPORT BOOL Factory4_setMapDirEventCb(Factory4Id id, Factory4_data1Cb_t func);
78 DLLEXPORT BOOL Factory4_setMapDirWithDataEventCb(Factory4Id id, Factory4_data2Cb_t func);
79 DLLEXPORT BOOL Factory4_setFleetcom_responseEventCb(Factory4Id id, Factory4_data1Cb_t func);
80 DLLEXPORT BOOL Factory4_setMapDir_responseEventCb(Factory4Id id, Factory4_data2Cb_t func);
81 DLLEXPORT BOOL Factory4_setSmartlicenseEventCb(Factory4Id id, Factory4_data1Cb_t func);
82 
86 typedef void(*Factory4_mapEventCb_t)(const char* data, int dataSize, int width, int height, int resolution, int offsetx, int offsety, int sequence);
87 DLLEXPORT BOOL Factory4_setMapEventCb(Factory4Id id, Factory4_mapEventCb_t func);
88 
93 
94 
95 #endif //_REC_ROBOTINO_API2_C_FACTORY4_H_
void(* Factory4_mapEventCb_t)(const char *data, int dataSize, int width, int height, int resolution, int offsetx, int offsety, int sequence)
Definition: Factory4.h:86
DLLEXPORT BOOL Factory4_destroy(Factory4Id id)
DLLEXPORT BOOL Factory4_setComId(Factory4Id id, ComId comId)
DLLEXPORT Factory4Id Factory4_construct()
DLLEXPORT BOOL Factory4_setMapPlanner(Factory4Id id, const char *data, unsigned int dataSize)
In "rec/robotino/api2/c/Com.h" you can find functions for manipulating the communication interface to...
int Factory4Id
Definition: Factory4.h:17
int ComId
Definition: Com.h:50
DLLEXPORT BOOL Factory4_setMapPlannerEventCb(Factory4Id id, Factory4_mapEventCb_t func)