Revision 888a909b client/cpp/src/MiddlewareRSB.cpp
client/cpp/src/MiddlewareRSB.cpp | ||
---|---|---|
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
void MiddlewareRSB::publish_emotion(string scope_target, RobotEmotion e, bool blocking){ |
93 |
boost::shared_ptr<rst::animation::EmotionExpression> request(new rst::animation::EmotionExpression());
|
|
93 |
std::shared_ptr<rst::animation::EmotionExpression> request(new rst::animation::EmotionExpression());
|
|
94 | 94 |
|
95 | 95 |
switch(e.value){ |
96 | 96 |
default: |
... | ... | |
135 | 135 |
} |
136 | 136 |
|
137 | 137 |
void MiddlewareRSB::publish_gaze_target(RobotGaze incoming_target, bool blocking){ |
138 |
boost::shared_ptr<rst::animation::BinocularHeadGaze> request(new rst::animation::BinocularHeadGaze ());
|
|
138 |
std::shared_ptr<rst::animation::BinocularHeadGaze> request(new rst::animation::BinocularHeadGaze ());
|
|
139 | 139 |
|
140 |
boost::shared_ptr<rst::geometry::SphericalDirectionFloat> target(new rst::geometry::SphericalDirectionFloat ());
|
|
140 |
std::shared_ptr<rst::geometry::SphericalDirectionFloat> target(new rst::geometry::SphericalDirectionFloat ());
|
|
141 | 141 |
target->set_azimuth(incoming_target.pan); |
142 | 142 |
target->set_elevation(incoming_target.tilt); |
143 | 143 |
request->set_allocated_target(target.get()); |
144 | 144 |
|
145 | 145 |
request->set_eye_vergence(incoming_target.vergence); |
146 | 146 |
|
147 |
boost::shared_ptr<rst::geometry::SphericalDirectionFloat> offset(new rst::geometry::SphericalDirectionFloat());
|
|
147 |
std::shared_ptr<rst::geometry::SphericalDirectionFloat> offset(new rst::geometry::SphericalDirectionFloat());
|
|
148 | 148 |
offset->set_azimuth(incoming_target.pan_offset); |
149 | 149 |
offset->set_elevation(incoming_target.tilt_offset); |
150 | 150 |
request->set_allocated_offset(offset.get()); |
... | ... | |
163 | 163 |
|
164 | 164 |
void MiddlewareRSB::publish_mouth_target(RobotMouth target, bool blocking){ |
165 | 165 |
/* |
166 |
boost::shared_ptr<rst::robot::MouthTarget> request(new rst::robot::MouthTarget());
|
|
166 |
std::shared_ptr<rst::robot::MouthTarget> request(new rst::robot::MouthTarget());
|
|
167 | 167 |
|
168 | 168 |
request->set_position_left( target.position_left); |
169 | 169 |
request->set_position_center(target.position_center); |
... | ... | |
183 | 183 |
} |
184 | 184 |
|
185 | 185 |
void MiddlewareRSB::publish_head_animation(RobotHeadAnimation a, bool blocking){ |
186 |
boost::shared_ptr<rst::animation::HeadAnimation> request(new rst::animation::HeadAnimation());
|
|
186 |
std::shared_ptr<rst::animation::HeadAnimation> request(new rst::animation::HeadAnimation());
|
|
187 | 187 |
|
188 | 188 |
switch(a.value){ |
189 | 189 |
default: |
... | ... | |
234 | 234 |
|
235 | 235 |
void MiddlewareRSB::publish_speech(string text, bool blocking){ |
236 | 236 |
//say it |
237 |
boost::shared_ptr<std::string> request(new string(text));
|
|
237 |
std::shared_ptr<std::string> request(new string(text));
|
|
238 | 238 |
|
239 | 239 |
if (blocking){ |
240 | 240 |
hlrc_server->call<std::string>("speech", request); |
Also available in: Unified diff