[Positioning] TCPEvAAL: send request's timestamp
This commit is contained in:
parent
1dfe30ea03
commit
9f5305b496
|
@ -94,7 +94,7 @@ bool OutputTCPSocketEvAAL::close_socket()
|
||||||
void OutputTCPSocketEvAAL::write(const Result &result)
|
void OutputTCPSocketEvAAL::write(const Result &result)
|
||||||
{
|
{
|
||||||
const Point3D &position = result.get_position() ;
|
const Point3D &position = result.get_position() ;
|
||||||
long timestamp = 1234567l ; // FIXME
|
Timestamp request_time = result.get_request()->get_time_sent() ;
|
||||||
int area_of_interest = 0 ; // FIXME
|
int area_of_interest = 0 ; // FIXME
|
||||||
|
|
||||||
ostringstream str ;
|
ostringstream str ;
|
||||||
|
@ -102,7 +102,7 @@ void OutputTCPSocketEvAAL::write(const Result &result)
|
||||||
<< "OwlPS "
|
<< "OwlPS "
|
||||||
<< position.get_x() << ' '
|
<< position.get_x() << ' '
|
||||||
<< position.get_y() << ' '
|
<< position.get_y() << ' '
|
||||||
<< timestamp << ' '
|
<< static_cast<uint64_t>(request_time) << ' '
|
||||||
<< area_of_interest << '\n' ;
|
<< area_of_interest << '\n' ;
|
||||||
|
|
||||||
if (send_data(str.str()))
|
if (send_data(str.str()))
|
||||||
|
@ -110,6 +110,10 @@ void OutputTCPSocketEvAAL::write(const Result &result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param results Must contain only one element, since the EvAAL format
|
||||||
|
* accepts only one algorithm result.
|
||||||
|
*/
|
||||||
void OutputTCPSocketEvAAL::write(const ResultList &results)
|
void OutputTCPSocketEvAAL::write(const ResultList &results)
|
||||||
{
|
{
|
||||||
assert(results.get_results().size() == 1) ;
|
assert(results.get_results().size() == 1) ;
|
||||||
|
|
Loading…
Reference in New Issue