Changeset 342 for trunk


Ignore:
Timestamp:
03/27/12 15:26:16 (8 years ago)
Author:
sc
Message:

main.cpp:

  • outputs to console all of the values which we care about
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/project/PuzzleboxSynapseEmotiv/PuzzleboxSynapseEmotiv/main.cpp

    r341 r342  
    5757                                        const float timestamp = ES_GetTimeFromStart(eState); 
    5858 
    59                                         printf("%10.3fs : New EmoState from user %d ...\r", timestamp, userID); 
     59                                        //printf("%10.3fs : New EmoState from user %d ...\r", timestamp, userID); 
    6060                                         
    6161                                        //logEmotivUpdate(ofs, userID, eState, writeHeader); 
     
    9494        if (withHeader) { 
    9595                std::cout << "Time,"; 
    96                 std::cout << "UserID,"; 
     96                //std::cout << "UserID,"; 
    9797                std::cout << "Wireless Signal Status,"; 
    98                 std::cout << "Blink,"; 
    99                 std::cout << "Wink Left,"; 
    100                 std::cout << "Wink Right,"; 
    101                 std::cout << "Look Left,"; 
    102                 std::cout << "Look Right,"; 
    103                 std::cout << "Eyebrow,"; 
    104                 std::cout << "Furrow,"; 
    105                 std::cout << "Smile,"; 
    106                 std::cout << "Clench,"; 
    107                 std::cout << "Smirk Left,"; 
    108                 std::cout << "Smirk Right,"; 
    109                 std::cout << "Laugh,"; 
     98                std::cout << "Headset On,"; 
     99                //std::cout << "Contacts Number,"; 
     100                //std::cout << "Contact Quality,"; 
     101                //std::cout << "Blink,"; 
     102                //std::cout << "Wink Left,"; 
     103                //std::cout << "Wink Right,"; 
     104                //std::cout << "Look Left,"; 
     105                //std::cout << "Look Right,"; 
     106                //std::cout << "Eyebrow,"; 
     107                //std::cout << "Furrow,"; 
     108                //std::cout << "Smile,"; 
     109                //std::cout << "Clench,"; 
     110                //std::cout << "Smirk Left,"; 
     111                //std::cout << "Smirk Right,"; 
     112                //std::cout << "Laugh,"; 
    110113                std::cout << "Short Term Excitement,"; 
    111114                std::cout << "Long Term Excitement,"; 
     115                std::cout << "Meditation,"; 
     116                std::cout << "Frustration,"; 
    112117                std::cout << "Engagement/Boredom,"; 
    113118                std::cout << "Cognitiv Action,"; 
     
    118123        // Log the time stamp and user ID 
    119124        std::cout << ES_GetTimeFromStart(eState) << ","; 
    120         std::cout << userID << ","; 
     125        //std::cout << userID << ","; 
    121126        std::cout << static_cast<int>(ES_GetWirelessSignalStatus(eState)) << ","; 
     127        std::cout << static_cast<int>(ES_GetHeadsetOn(eState)) << ","; 
     128        //std::cout << static_cast<int>(ES_GetNumContactQualityChannels(eState)) << ","; 
     129        //std::cout << static_cast<int>(ES_GetContactQualityFromAllChannels(eState)) << ","; 
    122130 
    123131        // Expressiv Suite results 
    124         std::cout << ES_ExpressivIsBlink(eState) << ","; 
    125         std::cout << ES_ExpressivIsLeftWink(eState) << ","; 
    126         std::cout << ES_ExpressivIsRightWink(eState) << ","; 
     132        //std::cout << ES_ExpressivIsBlink(eState) << ","; 
     133        //std::cout << ES_ExpressivIsLeftWink(eState) << ","; 
     134        //std::cout << ES_ExpressivIsRightWink(eState) << ","; 
    127135 
    128         std::cout << ES_ExpressivIsLookingLeft(eState) << ","; 
    129         std::cout << ES_ExpressivIsLookingRight(eState) << ","; 
     136        //std::cout << ES_ExpressivIsLookingLeft(eState) << ","; 
     137        //std::cout << ES_ExpressivIsLookingRight(eState) << ","; 
    130138 
    131         std::map<EE_ExpressivAlgo_t, float> expressivStates; 
     139        //std::map<EE_ExpressivAlgo_t, float> expressivStates; 
    132140 
    133         EE_ExpressivAlgo_t upperFaceAction = ES_ExpressivGetUpperFaceAction(eState); 
    134         float                      upperFacePower  = ES_ExpressivGetUpperFaceActionPower(eState); 
     141        //EE_ExpressivAlgo_t upperFaceAction = ES_ExpressivGetUpperFaceAction(eState); 
     142        //float                    upperFacePower  = ES_ExpressivGetUpperFaceActionPower(eState); 
    135143 
    136         EE_ExpressivAlgo_t lowerFaceAction = ES_ExpressivGetLowerFaceAction(eState); 
    137         float                      lowerFacePower  = ES_ExpressivGetLowerFaceActionPower(eState); 
     144        //EE_ExpressivAlgo_t lowerFaceAction = ES_ExpressivGetLowerFaceAction(eState); 
     145        //float                    lowerFacePower  = ES_ExpressivGetLowerFaceActionPower(eState); 
    138146 
    139         expressivStates[ upperFaceAction ] = upperFacePower; 
    140         expressivStates[ lowerFaceAction ] = lowerFacePower; 
     147        //expressivStates[ upperFaceAction ] = upperFacePower; 
     148        //expressivStates[ lowerFaceAction ] = lowerFacePower; 
    141149         
    142         std::cout << expressivStates[ EXP_EYEBROW     ] << ","; // eyebrow 
    143         std::cout << expressivStates[ EXP_FURROW      ] << ","; // furrow 
    144         std::cout << expressivStates[ EXP_SMILE       ] << ","; // smile 
    145         std::cout << expressivStates[ EXP_CLENCH      ] << ","; // clench 
    146         std::cout << expressivStates[ EXP_SMIRK_LEFT  ] << ","; // smirk left 
    147         std::cout << expressivStates[ EXP_SMIRK_RIGHT ] << ","; // smirk right 
    148         std::cout << expressivStates[ EXP_LAUGH       ] << ","; // laugh 
     150        //std::cout << expressivStates[ EXP_EYEBROW     ] << ","; // eyebrow 
     151        //std::cout << expressivStates[ EXP_FURROW      ] << ","; // furrow 
     152        //std::cout << expressivStates[ EXP_SMILE       ] << ","; // smile 
     153        //std::cout << expressivStates[ EXP_CLENCH      ] << ","; // clench 
     154        //std::cout << expressivStates[ EXP_SMIRK_LEFT  ] << ","; // smirk left 
     155        //std::cout << expressivStates[ EXP_SMIRK_RIGHT ] << ","; // smirk right 
     156        //std::cout << expressivStates[ EXP_LAUGH       ] << ","; // laugh 
    149157 
    150158        // Affectiv Suite results 
    151159        std::cout << ES_AffectivGetExcitementShortTermScore(eState) << ","; 
    152160        std::cout << ES_AffectivGetExcitementLongTermScore(eState) << ","; 
    153  
     161        std::cout << ES_AffectivGetMeditationScore(eState) << ","; 
     162        std::cout << ES_AffectivGetFrustrationScore(eState) << ","; 
    154163        std::cout << ES_AffectivGetEngagementBoredomScore(eState) << ","; 
    155164 
Note: See TracChangeset for help on using the changeset viewer.