Revision 5866cb38
ID | 5866cb38bf3954babc911a0d0bea69b8dc696cba |
Linesensor tested and done!
scout/libscout/src/LinesensorControl.cpp | ||
---|---|---|
52 | 52 |
* @todo This shouldn't be returning void. These functions, in general, should |
53 | 53 |
* be changed to be more useful. |
54 | 54 |
*/ |
55 |
void LinesensorControl::query()
|
|
55 |
vector<uint32_t> LinesensorControl::query()
|
|
56 | 56 |
{ |
57 | 57 |
// Set scan range |
58 | 58 |
linesensor::query_linesensor srv; |
... | ... | |
62 | 62 |
ROS_ERROR("LinesensorControl query failed."); |
63 | 63 |
} |
64 | 64 |
|
65 |
for (int i = 0; i < 8; i++) |
|
66 |
{ |
|
67 |
cout << "[" << i << "]: " << srv.response.readings[i] << ", "; |
|
68 |
} |
|
69 |
|
|
70 |
cout << endl; |
|
65 |
return srv.response.readings; |
|
71 | 66 |
} |
72 | 67 |
|
Also available in: Unified diff