Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef OBJECT_TRACKER_PARAMETERS_H
00030 #define OBJECT_TRACKER_PARAMETERS_H
00031
00032 #include <string>
00033 #include <map>
00034 #include <std_msgs/ColorRGBA.h>
00035 #include <ros/service_client.h>
00036
00037 #include <XmlRpcValue.h>
00038
00039 namespace hector_object_tracker {
00040
00041 extern std::map<std::string, bool> _project_objects;
00042 extern std::map<std::string, bool> _with_orientation;
00043 extern std::map<std::string, double> _default_distance;
00044 extern std::map<std::string, double> _distance_variance;
00045 extern std::map<std::string, double> _angle_variance;
00046 extern std::map<std::string, double> _min_height;
00047 extern std::map<std::string, double> _max_height;
00048 extern std::map<std::string, double> _pending_support;
00049 extern std::map<std::string, double> _pending_time;
00050 extern std::map<std::string, double> _active_support;
00051 extern std::map<std::string, double> _active_time;
00052 extern std::map<std::string, double> _inactive_support;
00053 extern std::map<std::string, double> _inactive_time;
00054 extern std::map<std::string, double> _min_distance_between_objects;
00055 extern std::map<std::string, std_msgs::ColorRGBA> _marker_color;
00056 extern std::map<std::string, ros::ServiceClientPtr> _distance_to_obstacle_service;
00057 extern std::map<std::string, ros::ServiceClientPtr> _get_normal_service;
00058
00059 typedef std::pair<ros::ServiceClientPtr, XmlRpc::XmlRpcValue> ServiceClientWithProperties;
00060 typedef std::vector<ServiceClientWithProperties> ServiceClientsWithProperties;
00061 extern std::map<std::string, ServiceClientsWithProperties> _percept_verification_services;
00062 extern std::map<std::string, ServiceClientsWithProperties> _object_verification_services;
00063
00064 namespace Parameters {
00065 void load(const std::string& class_id = std::string());
00066 }
00067
00068 template <typename T> static inline T& parameter(std::map<std::string, T>& p, const std::string& class_id = std::string()) {
00069 if (p.count(class_id)) return p.at(class_id);
00070 return p[std::string()];
00071 }
00072
00073 }
00074
00075 #endif // OBJECT_TRACKER_PARAMETERS_H