Project: engagement_recognition License: BSD Dependencies:
Used by:
None |
engagement_recognition/src/recognition/lib/engagement_declarations.hGo to the documentation of this file.00001 /* 00002 * Software License Agreement (BSD License) 00003 * 00004 * Copyright (c) 2010, Worcester Polytechnic Institute 00005 * All rights reserved. 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * * Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * * Redistributions in binary form must reproduce the above 00014 * copyright notice, this list of conditions and the following 00015 * disclaimer in the documentation and/or other materials provided 00016 * with the distribution. 00017 * * Neither the name of Worcester Polytechnic Institute. nor the names 00018 * of its contributors may be used to endorse or promote products 00019 * derived from this software without specific prior written permission. 00020 * 00021 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00022 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00023 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00024 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00025 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00026 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00027 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00028 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00029 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00030 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 00031 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00032 * POSSIBILITY OF SUCH DAMAGE. 00033 */ 00034 // @author Brett Ponsler (bponsler (at) wpi (dot) edu) 00035 #ifndef _ENGAGEMENT_DECLARATIONS_H 00036 #define _ENGAGEMENT_DECLARATIONS_H 00037 00038 // Contains all the includes for ros messages and engagement message types 00039 #include <ros/message.h> 00040 #include "engagement_msgs/ActorID.h" 00041 #include "engagement_msgs/ActorIDStatus.h" 00042 #include "engagement_msgs/APAction.h" 00043 #include "engagement_msgs/Empty.h" 00044 #include "bml_msgs/Entity.h" 00045 #include "bml_msgs/Flag.h" 00046 #include "engagement_msgs/HumanAdjacencyPair.h" 00047 #include "engagement_msgs/HumanDirectedGaze.h" 00048 #include "engagement_msgs/HumanMutualFacialGaze.h" 00049 #include "engagement_msgs/HumanBackchannel.h" 00050 #include "engagement_msgs/Performance.h" 00051 #include "engagement_msgs/Speech.h" 00052 00053 // Include all the engagement services 00054 #include "engagement_srvs/ActorStatistics.h" 00055 #include "engagement_srvs/RobotAdjacencyPair.h" 00056 #include "engagement_srvs/RobotDirectedGaze.h" 00057 #include "engagement_srvs/RobotMutualFacialGaze.h" 00058 00059 00060 namespace engagement 00061 { 00063 #define MAX_BUFFER 100 00064 00065 // Name different configuration namespaces used in the recognition node 00066 // Note: used for locating parameters pertaining to different things 00067 00069 const std::string CONF_NAMESPACE = "conf"; 00071 const std::string DIRECTED_GAZE_NAMESPACE = "directed_gaze"; 00073 const std::string MUTUAL_FACIAL_GAZE_NAMESPACE = "mutual_facial_gaze"; 00075 const std::string ADJACENCY_PAIR_NAMESPACE = "adjacency_pair"; 00077 const std::string BACKCHANNEL_NAMESPACE = "backchannel"; 00078 00079 00080 00081 // Name different namespaces used in the recognition node 00082 // Note: used for receiving messages from subscribing/advertising properly 00083 00085 const std::string VISION_NAMESPACE = "vision"; 00087 const std::string COLLAB_NAMESPACE = "collab"; 00089 const std::string PERFORMING_NAMESPACE = "performing"; 00091 const std::string ENGAGEMENT_NAMESPACE = "engagement"; 00093 const std::string RECOGNITION_NAMESPACE = "recognition"; 00095 const std::string HUMAN_NAMESPACE = "human"; 00097 const std::string ROBOT_NAMESPACE = "robot"; 00098 00099 00100 // Declare different parameters that will be used in the recognition node 00101 // Note: these are the names of the parameters as stored in the param server 00102 00104 const std::string DEGRADED_PARAM = "degraded"; 00106 const std::string VERBOSITY_PARAM = "verbosity"; 00108 const std::string LOG_STATS_PARAM = "log_stats"; 00110 const std::string LOG_DIRECTORY_STATS_PARAM = "log_stats_directory"; 00112 const std::string WINDOW_SIZE_PARAM = "window_size"; 00114 const std::string MAX_DELAY_PARAM = "max_delay"; 00116 const std::string RECOG_FG_COLOR_PARAM = "recog_fg_color"; 00118 const std::string RECOG_BG_COLOR_PARAM = "recog_bg_color"; 00120 const std::string ADJACENCY_PAIR_FG_COLOR_PARAM = "ap_fg_color"; 00122 const std::string ADJACENCY_PAIR_BG_COLOR_PARAM = "ap_bg_color"; 00124 const std::string BACKCHANNEL_FG_COLOR_PARAM = "bc_fg_color"; 00126 const std::string BACKCHANNEL_BG_COLOR_PARAM = "bc_bg_color"; 00128 const std::string DIRECTED_GAZE_FG_COLOR_PARAM = "dg_fg_color"; 00130 const std::string DIRECTED_GAZE_BG_COLOR_PARAM = "dg_bg_color"; 00132 const std::string MUTUAL_FACIAL_GAZE_FG_COLOR_PARAM = "mfg_fg_color"; 00134 const std::string MUTUAL_FACIAL_GAZE_BG_COLOR_PARAM = "mfg_bg_color"; 00136 const std::string ACTOR_FG_COLOR_PARAM = "actor_fg_color"; 00138 const std::string ACTOR_BG_COLOR_PARAM = "actor_bg_color"; 00140 const std::string STATE_FG_COLOR_PARAM = "state_fg_color"; 00142 const std::string STATE_BG_COLOR_PARAM = "state_bg_color"; 00144 const std::string SEMAPHORE_FG_COLOR_PARAM = "sema_fg_color"; 00146 const std::string SEMAPHORE_BG_COLOR_PARAM = "sema_bg_color"; 00147 00148 00149 00150 // Declare different types (names) for different things 00151 // Note: these are used for logging to the console 00152 00154 const std::string RECOGNITION_TYPE = "RECOG"; 00156 const std::string DIRECTED_GAZE_TYPE = "DG"; 00158 const std::string MUTUAL_FACIAL_GAZE_TYPE = "MFG"; 00160 const std::string ADJACENCY_PAIR_TYPE = "AP"; 00162 const std::string BACKCHANNEL_TYPE = "BC"; 00164 const std::string DUMMY_TYPE = "DUMMY"; 00166 const std::string ACTOR_TYPE = "ACTOR"; 00168 const std::string ROBOT_TYPE = "ROBOT"; 00170 const std::string SEMAPHORE_TYPE = "SEMA"; 00171 00172 00173 00199 // Define services provided by the recognition node and 00200 // sent from the recognition node 00201 00203 const std::string RECOG_STATUS_TOPIC = "status"; 00205 const std::string RECOG_STATISTICS_TOPIC = "statistics"; 00207 const std::string RECOG_DIRECTED_GAZE_TOPIC = "directed_gaze"; 00209 const std::string RECOG_MUTUAL_FACIAL_GAZE_TOPIC = "mutual_facial_gaze"; 00211 const std::string RECOG_ADJACENCY_PAIR_TOPIC = "adjacency_pair"; 00213 const std::string RECOG_BACKCHANNEL_TOPIC = "backchannel"; 00214 00215 00216 00217 // Define topics sent to the recognition node pertaining to an 00218 // action performed by an actor (includes the robot) 00219 00221 const std::string PERFORMING_POINT_TOPIC = "point"; 00223 const std::string PERFORMING_LOOK_TOPIC = "look"; 00225 const std::string PERFORMING_FACIAL_GAZE_TOPIC = "facial_gaze"; 00227 const std::string PERFORMING_SHAKE_TOPIC = "shake"; 00229 const std::string PERFORMING_NOD_TOPIC = "nod"; 00231 const std::string PERFORMING_EXTENDED_ACTION_TOPIC = "extended_action"; 00233 const std::string PERFORMING_UTTERANCE_TOPIC = "utterance"; 00234 00235 00236 00237 // Define topics coming TO the recognition node pertaining to vision. 00238 00240 const std::string VISION_FACE_TOPIC = "face"; 00241 00242 } // engagement namespace 00243 00244 #endif // ENGAGEMENT_DECLARATIONS_H |