Revision 89370c3a

View differences:

server/src/MiddlewareRSB.cpp
62 62
    printf("> registering converters\n");
63 63

  
64 64
    //converter for EmotionState
65
    try {
65 66
    rsb::converter::Converter<string>::Ptr emotionStateConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::EmotionExpression>());
66 67
    rsb::converter::converterRepository<string>()->registerConverter(emotionStateConverter);
68
    } catch (...) {}
67 69

  
68 70
    //converter for SoundChunk
71
    try {
69 72
    rsb::converter::Converter<string>::Ptr SoundChunkConverter(new rsb::converter::ProtocolBufferConverter<rst::audition::SoundChunk>());
70 73
    rsb::converter::converterRepository<string>()->registerConverter(SoundChunkConverter);
74
    } catch (...) {}
71 75

  
72 76
    //converter for Utterance
77
    try {
73 78
    rsb::converter::Converter<string>::Ptr UtteranceConverter(new rsb::converter::ProtocolBufferConverter<rst::audition::Utterance>());
74 79
    rsb::converter::converterRepository<string>()->registerConverter(UtteranceConverter);
80
    } catch (...) {}
75 81

  
76 82
    //converter for GazeTarget
83
    try {
77 84
    rsb::converter::Converter<string>::Ptr gazeTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::BinocularHeadGaze>());
78 85
    rsb::converter::converterRepository<string>()->registerConverter(gazeTargetConverter);
86
    } catch (...) {}
79 87

  
80 88
    //converter for MouthTarget
81 89
    //rsb::converter::Converter<string>::Ptr mouthTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::MouthTarget>());
82 90
    //rsb::converter::converterRepository<string>()->registerConverter(mouthTargetConverter);
83 91

  
84 92
    //converter for Animation
93
    try {
85 94
    rsb::converter::Converter<string>::Ptr animationConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::HeadAnimation>());
86 95
    rsb::converter::converterRepository<string>()->registerConverter(animationConverter);
96
    } catch (...) {}
87 97

  
88 98
    //first get a factory instance that is used to create RSB domain objects
89 99
    Factory &factory = getFactory();

Also available in: Unified diff