56 #ifndef __SIM_LOC_COLA_ENCODER_H_INCLUDED 57 #define __SIM_LOC_COLA_ENCODER_H_INCLUDED 79 static std::string
encodeServiceRequest(
const sick_scan::SickDevSetLidarConfigSrv::Request& service_request);
87 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevSetLidarConfigSrv::Response& service_response);
94 static std::string
encodeServiceRequest(
const sick_scan::SickDevGetLidarConfigSrv::Request& service_request);
102 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevGetLidarConfigSrv::Response& service_response);
109 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetMapSrv::Request& service_request);
117 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetMapSrv::Response& service_response);
124 static std::string
encodeServiceRequest(
const sick_scan::SickLocMapSrv::Request& service_request);
132 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocMapSrv::Response& service_response);
139 static std::string
encodeServiceRequest(
const sick_scan::SickLocMapStateSrv::Request& service_request);
147 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocMapStateSrv::Response& service_response);
154 static std::string
encodeServiceRequest(
const sick_scan::SickLocInitializePoseSrv::Request& service_request);
162 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocInitializePoseSrv::Response& service_response);
169 static std::string
encodeServiceRequest(
const sick_scan::SickLocInitialPoseSrv::Request& service_request);
177 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocInitialPoseSrv::Response& service_response);
185 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetReflectorsForSupportActiveSrv::Request& service_request);
193 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetReflectorsForSupportActiveSrv::Response& service_response);
200 static std::string
encodeServiceRequest(
const sick_scan::SickLocReflectorsForSupportActiveSrv::Request& service_request);
208 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocReflectorsForSupportActiveSrv::Response& service_response);
215 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetOdometryActiveSrv::Request& service_request);
223 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetOdometryActiveSrv::Response& service_response);
230 static std::string
encodeServiceRequest(
const sick_scan::SickLocOdometryActiveSrv::Request& service_request);
238 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocOdometryActiveSrv::Response& service_response);
245 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetOdometryPortSrv::Request& service_request);
253 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetOdometryPortSrv::Response& service_response);
260 static std::string
encodeServiceRequest(
const sick_scan::SickLocOdometryPortSrv::Request& service_request);
268 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocOdometryPortSrv::Response& service_response);
275 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetOdometryRestrictYMotionSrv::Request& service_request);
283 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetOdometryRestrictYMotionSrv::Response& service_response);
290 static std::string
encodeServiceRequest(
const sick_scan::SickLocOdometryRestrictYMotionSrv::Request& service_request);
298 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocOdometryRestrictYMotionSrv::Response& service_response);
305 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetAutoStartActiveSrv::Request& service_request);
313 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetAutoStartActiveSrv::Response& service_response);
320 static std::string
encodeServiceRequest(
const sick_scan::SickLocAutoStartActiveSrv::Request& service_request);
328 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocAutoStartActiveSrv::Response& service_response);
335 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetAutoStartSavePoseIntervalSrv::Request& service_request);
343 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetAutoStartSavePoseIntervalSrv::Response& service_response);
350 static std::string
encodeServiceRequest(
const sick_scan::SickLocAutoStartSavePoseIntervalSrv::Request& service_request);
358 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocAutoStartSavePoseIntervalSrv::Response& service_response);
365 static std::string
encodeServiceRequest(
const sick_scan::SickLocSetRingBufferRecordingActiveSrv::Request& service_request);
373 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSetRingBufferRecordingActiveSrv::Response& service_response);
380 static std::string
encodeServiceRequest(
const sick_scan::SickLocRingBufferRecordingActiveSrv::Request& service_request);
388 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocRingBufferRecordingActiveSrv::Response& service_response);
395 static std::string
encodeServiceRequest(
const sick_scan::SickDevGetLidarIdentSrv::Request& service_request);
403 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevGetLidarIdentSrv::Response& service_response);
410 static std::string
encodeServiceRequest(
const sick_scan::SickDevGetLidarStateSrv::Request& service_request);
418 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevGetLidarStateSrv::Response& service_response);
425 static std::string
encodeServiceRequest(
const sick_scan::SickGetSoftwareVersionSrv::Request& service_request);
433 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickGetSoftwareVersionSrv::Response& service_response);
440 static std::string
encodeServiceRequest(
const sick_scan::SickLocAutoStartSavePoseSrv::Request& service_request);
448 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocAutoStartSavePoseSrv::Response& service_response);
455 static std::string
encodeServiceRequest(
const sick_scan::SickLocForceUpdateSrv::Request& service_request);
463 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocForceUpdateSrv::Response& service_response);
470 static std::string
encodeServiceRequest(
const sick_scan::SickLocSaveRingBufferRecordingSrv::Request& service_request);
478 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocSaveRingBufferRecordingSrv::Response& service_response);
485 static std::string
encodeServiceRequest(
const sick_scan::SickLocStartDemoMappingSrv::Request& service_request);
493 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocStartDemoMappingSrv::Response& service_response);
500 static std::string
encodeServiceRequest(
const sick_scan::SickReportUserMessageSrv::Request& service_request);
508 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickReportUserMessageSrv::Response& service_response);
515 static std::string
encodeServiceRequest(
const sick_scan::SickSavePermanentSrv::Request& service_request);
523 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickSavePermanentSrv::Response& service_response);
530 static std::string
encodeServiceRequest(
const sick_scan::SickLocResultPortSrv::Request& service_request);
538 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocResultPortSrv::Response& service_response);
545 static std::string
encodeServiceRequest(
const sick_scan::SickLocResultModeSrv::Request& service_request);
553 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocResultModeSrv::Response& service_response);
560 static std::string
encodeServiceRequest(
const sick_scan::SickLocResultEndiannessSrv::Request& service_request);
568 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocResultEndiannessSrv::Response& service_response);
575 static std::string
encodeServiceRequest(
const sick_scan::SickLocResultStateSrv::Request& service_request);
583 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocResultStateSrv::Response& service_response);
590 static std::string
encodeServiceRequest(
const sick_scan::SickLocResultPoseIntervalSrv::Request& service_request);
598 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickLocResultPoseIntervalSrv::Response& service_response);
605 static std::string
encodeServiceRequest(
const sick_scan::SickDevSetIMUActiveSrv::Request& service_request);
613 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevSetIMUActiveSrv::Response& service_response);
620 static std::string
encodeServiceRequest(
const sick_scan::SickDevIMUActiveSrv::Request& service_request);
628 static bool parseServiceResponse(
const sick_scan::SickLocColaTelegramMsg& cola_response, sick_scan::SickDevIMUActiveSrv::Response& service_response);
633 #endif // __SIM_LOC_COLA_ENCODER_H_INCLUDED
class ColaEncoder encodes service requests to cola telegrams, parses cola responses and converts them...
static std::string encodeServiceRequest(const sick_scan::SickDevSetLidarConfigSrv::Request &service_request)
static bool parseServiceResponse(const sick_scan::SickLocColaTelegramMsg &cola_response, sick_scan::SickDevSetLidarConfigSrv::Response &service_response)