21 #include <boost/shared_ptr.hpp> 22 #include <boost/lexical_cast.hpp> 30 #include <rapidxml.hpp> 36 #include <ISM/utility/TableHelper.hpp> 37 #include <asr_msgs/AsrObject.h> 38 #include <dynamic_reconfigure/server.h> 40 #include <asr_world_model/DynamicParametersConfig.h> 67 {
return "found_object_visualization"; }
71 {
return "/asr_object_database/object_meta_data"; }
74 {
return "/asr_object_database/recognizer_list"; }
129 std::size_t found = map.find(
";");
130 if (found != std::string::npos) {
132 temp = map.substr(0,found);
133 std::size_t temp_found = temp.find(
",");
134 (*returnMap)[temp.substr(0,temp_found)] = boost::lexical_cast<T>(temp.substr(temp_found+1));
135 map = map.substr(found+1);
141 std::size_t temp_found = map.find(
",");
142 if (temp_found != std::string::npos) {
143 (*returnMap)[map.substr(0,temp_found)] = boost::lexical_cast<T>(map.substr(temp_found+1));
154 std::size_t found = map.find(
";");
155 if (found != std::string::npos) {
157 temp = map.substr(0,found);
158 std::size_t temp_found = temp.find(
",");
159 returnVector->push_back(std::make_pair(temp.substr(0,temp_found), boost::lexical_cast<T>(temp.substr(temp_found+1))));
160 map = map.substr(found+1);
166 std::size_t temp_found = map.find(
",");
167 if (temp_found != std::string::npos) {
168 returnVector->push_back(std::make_pair(map.substr(0,temp_found), boost::lexical_cast<T>(map.substr(temp_found+1))));
ros::ServiceServer get_viewport_list_service_server_
ros::ServiceServer push_found_object_service_server_
static const std::string GetObjectVisualizationParamName()
ros::ServiceServer filter_viewport_depending_on_already_visited_viewports
ros::ServiceServer get_recognizer_name_service_server_
static boost::shared_ptr< std::vector< std::pair< std::string, T > > > processStringVector(std::string &map)
ros::ServiceServer get_all_objects_list_service_server_
static const std::string GetClientGetRecognizerListServiceName()
boost::shared_ptr< CompletePatternsHandler > complete_patterns_handler_ptr_
WorldModel()
Creates a new instance of the world model and starts the services.
ros::ServiceServer visualize_sampled_poses_service_server_
void initMapsFromWorldDescription()
ros::ServiceServer get_missing_object_list_service_server_
ros::ServiceServer get_found_object_list_service_server_
void dynamicReconfigureCallback(asr_world_model::DynamicParametersConfig &config, uint32_t level)
ros::ServiceServer get_complete_patterns_service_server_
bool processGetAllObjectsListServiceCall(asr_world_model::GetAllObjectsList::Request &request, asr_world_model::GetAllObjectsList::Response &response)
boost::shared_ptr< CommonInformationHandler > common_information_handler_ptr_
WorldModel class provides services for adding the viewports of the next best views to a list and retr...
ros::NodeHandle local_handle_
ros::ServiceServer get_intermediate_object_weight_service_server_
ros::ServiceServer push_viewport_service_server_
ros::ServiceServer push_complete_patterns_service_server_
boost::shared_ptr< FoundObjectHandler > found_object_handler_ptr_
void initIntermediateObjectWeights(const ISM::TableHelperPtr &table_helper)
static boost::shared_ptr< std::map< std::string, T > > processStringMap(std::string &map)
SettingsPtr settings_ptr_
void checkParametersFromOtherNode()
ros::ServiceServer empty_complete_patterns_service_server_
DebugHelperPtr debug_helper_ptr_
bool processEmptyFoundObjectListServiceCall(std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
static const std::string GetClientGetObjectMetaDataServiceName()
ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr_
ros::ServiceServer push_found_object_list_service_server_
boost::shared_ptr< ViewPortHandler > view_port_handler_ptr_
ros::ServiceServer empty_found_object_list_service_server_
void initMapsFromSqlTable()
ros::ServiceServer empty_viewport_list_service_server_
dynamic_reconfigure::Server< asr_world_model::DynamicParametersConfig > mDynamicReconfigServer