Revision 4bd3e852 server/src/MiddlewareRSB.cpp
server/src/MiddlewareRSB.cpp | ||
---|---|---|
45 | 45 |
using namespace rsb; |
46 | 46 |
using namespace rsb::patterns; |
47 | 47 |
|
48 |
WARNING: RSB interface might be deprtecated and needs some backporting |
|
49 |
from the ROS code. [todo] |
|
50 |
|
|
51 | 48 |
|
52 | 49 |
MiddlewareRSB::MiddlewareRSB(Arbiter *arbiter, std::string scope) : Middleware(arbiter, scope){ |
53 | 50 |
init(); |
... | ... | |
65 | 62 |
printf("> registering converters\n"); |
66 | 63 |
|
67 | 64 |
//converter for EmotionState |
68 |
rsb::converter::Converter<string>::Ptr emotionStateConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::EmotionState>());
|
|
65 |
rsb::converter::Converter<string>::Ptr emotionStateConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::EmotionExpression>());
|
|
69 | 66 |
rsb::converter::converterRepository<string>()->registerConverter(emotionStateConverter); |
70 | 67 |
|
71 | 68 |
//converter for SoundChunk |
... | ... | |
77 | 74 |
rsb::converter::converterRepository<string>()->registerConverter(UtteranceConverter); |
78 | 75 |
|
79 | 76 |
//converter for GazeTarget |
80 |
rsb::converter::Converter<string>::Ptr gazeTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::GazeTarget>());
|
|
77 |
rsb::converter::Converter<string>::Ptr gazeTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::BinocularHeadGaze>());
|
|
81 | 78 |
rsb::converter::converterRepository<string>()->registerConverter(gazeTargetConverter); |
82 | 79 |
|
83 | 80 |
//converter for MouthTarget |
84 |
rsb::converter::Converter<string>::Ptr mouthTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::MouthTarget>()); |
|
85 |
rsb::converter::converterRepository<string>()->registerConverter(mouthTargetConverter); |
|
81 |
//rsb::converter::Converter<string>::Ptr mouthTargetConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::MouthTarget>());
|
|
82 |
//rsb::converter::converterRepository<string>()->registerConverter(mouthTargetConverter);
|
|
86 | 83 |
|
87 | 84 |
//converter for Animation |
88 |
rsb::converter::Converter<string>::Ptr animationConverter(new rsb::converter::ProtocolBufferConverter<rst::robot::Animation>());
|
|
85 |
rsb::converter::Converter<string>::Ptr animationConverter(new rsb::converter::ProtocolBufferConverter<rst::animation::HeadAnimation>());
|
|
89 | 86 |
rsb::converter::converterRepository<string>()->registerConverter(animationConverter); |
90 | 87 |
|
91 | 88 |
//first get a factory instance that is used to create RSB domain objects |
... | ... | |
132 | 129 |
init_callback("speech", LocalServer::CallbackPtr(new SpeechCallbackWrapper(this))); |
133 | 130 |
init_callback("utterance", LocalServer::CallbackPtr(new UtteranceCallbackWrapper(this))); |
134 | 131 |
init_callback("gaze", LocalServer::CallbackPtr(new GazeCallbackWrapper(this))); |
135 |
init_callback("mouth", LocalServer::CallbackPtr(new MouthCallbackWrapper(this))); |
|
132 |
///init_callback("mouth", LocalServer::CallbackPtr(new MouthCallbackWrapper(this)));
|
|
136 | 133 |
|
137 | 134 |
EmotionCallbackWrapper *emotion_cb = new EmotionCallbackWrapper(this); |
138 | 135 |
init_callback("defaultEmotion", LocalServer::CallbackPtr(emotion_cb)); |
Also available in: Unified diff