Revision 89374d69 src/client/middleware_rsb.cpp
src/client/middleware_rsb.cpp | ||
---|---|---|
110 | 110 |
} |
111 | 111 |
|
112 | 112 |
//! send mouth target to server |
113 |
void MiddlewareRSB::send_gaze_target(){ |
|
113 |
void MiddlewareRSB::send_gaze_target(int gaze_type){
|
|
114 | 114 |
//build target packet: |
115 | 115 |
boost::shared_ptr<rst::robot::HumotionGazeTarget> request(new rst::robot::HumotionGazeTarget()); |
116 | 116 |
|
... | ... | |
132 | 132 |
request->set_eyeblink_request_left(gaze_state.eyeblink_request_left); |
133 | 133 |
request->set_eyeblink_request_right(gaze_state.eyeblink_request_right); |
134 | 134 |
|
135 |
request->set_type(rst::robot::HumotionGazeTarget::ABSOLUTE); |
|
135 |
if (gaze_state.type == GazeState::ABSOLUTE){ |
|
136 |
request->set_type(rst::robot::HumotionGazeTarget::ABSOLUTE); |
|
137 |
}else{ |
|
138 |
request->set_type(rst::robot::HumotionGazeTarget::RELATIVE); |
|
139 |
} |
|
140 |
|
|
136 | 141 |
|
137 | 142 |
//add position to send queue |
138 | 143 |
gaze_target_informer->publish(request); |
Also available in: Unified diff