29 asr_world_model::PushCompletePatterns::Response &response) {
32 for (
const asr_world_model::CompletePattern &completePattern : request.completePatterns) {
33 CompletePatterns::iterator complete_it =
completePatterns.find(completePattern.patternName);
35 completePatterns.insert(std::make_pair(completePattern.patternName, completePattern));
37 complete_it->second.confidence = completePattern.confidence;
47 asr_world_model::EmptyCompletePatterns::Response &response) {
56 asr_world_model::GetCompletePatterns::Response &response)
60 for (
const std::pair<std::string, asr_world_model::CompletePattern> &completePatternPair :
completePatterns) {
61 response.completePatterns.push_back(completePatternPair.second);
71 for (
const std::pair<std::string, asr_world_model::CompletePattern> &completePatternPair : complete_patterns) {
72 strm << completePatternPair.second;
77 std::ostream& operator<<(std::ostream &strm, const std::vector<asr_world_model::CompletePattern> &complete_patterns) {
78 for (
const asr_world_model::CompletePattern &completePattern : complete_patterns) {
79 strm << completePattern;
bool processEmptyCompletePatternsServiceCall(asr_world_model::EmptyCompletePatterns::Request &request, asr_world_model::EmptyCompletePatterns::Response &response)
DebugHelperPtr debug_helper_ptr_
CompletePatterns completePatterns
bool processGetCompletePatternsServiceCall(asr_world_model::GetCompletePatterns::Request &request, asr_world_model::GetCompletePatterns::Response &response)
CompletePatternsHandler()
Creates a new instance of the CompletePatternsHandler.
static boost::shared_ptr< DebugHelper > getInstance()
bool processPushCompletePatternsCall(asr_world_model::PushCompletePatterns::Request &request, asr_world_model::PushCompletePatterns::Response &response)
std::ostream & operator<<(std::ostream &strm, const CompletePatterns &complete_patterns)
#define ROS_INFO_STREAM(args)
std::map< std::string, asr_world_model::CompletePattern > CompletePatterns