Revision c0c0e883 client/python/hlrc_client/MiddlewareRSB.py

View differences:

client/python/hlrc_client/MiddlewareRSB.py
168 168
        # create gaze target & fill it with values:
169 169
        hg = BinocularHeadGaze()
170 170

  
171
        t = SphericalDirectionFloat()
171
        t = hg.target.add()
172 172
        t.elevation = gaze.tilt
173 173
        t.azimuth = gaze.pan
174
        hg.target.CopyFrom(t)
175 174

  
176 175
        hg.eye_vergence = gaze.vergence
177 176

  
178
        o = SphericalDirectionFloat()
177
        o = hg.offset.add()
179 178
        o.elevation = gaze.tilt_offset
180 179
        o.azimuth = gaze.pan_offset
181
        hg.offset.CopyFrom(o)
182 180

  
183 181
        if blocking:
184 182
            # blocking:
185 183
            result = self.server.gaze(hg)
186
            self.logger.info("server reply blocking: '%s'" % result)
184
            self.logger.debug("server reply blocking: '%s'" % result)
187 185
        else:
188 186
            future = self.server.gaze.async(hg)
189
            self.logger.info("server reply non-blocking: '%s'" % future)
187
            self.logger.debug("server reply non-blocking: '%s'" % future)
190 188
            # we can block here for a incoming result with a timeout in s
191 189
            #print '> server reply: "%s"' % future.get(timeout = 10);
192 190

  

Also available in: Unified diff