Revision d81c4f8b server/src/main.cpp
| server/src/main.cpp | ||
|---|---|---|
| 26 | 26 |
* |
| 27 | 27 |
*/ |
| 28 | 28 |
|
| 29 |
#include "MiddlewareRSB.h" |
|
| 30 | 29 |
#include "MiddlewareROS.h" |
| 31 | 30 |
#include "Arbiter.h" |
| 32 | 31 |
|
| ... | ... | |
| 44 | 43 |
|
| 45 | 44 |
int main(int argc, char* argv[]) {
|
| 46 | 45 |
if ((argc != 5) && (argc != 6)) {
|
| 47 |
printf("> ERROR: invalid number of parameters passed to server!\n\nusage: %s <mw_hlrc> <mw_humotion> <base scopename "
|
|
| 48 |
"hlrc> <base scopename humotion> [<audio output>] (example: %s RSB RSB /flobi1/ pulse )\n",
|
|
| 49 |
argv[0], argv[0]);
|
|
| 46 |
printf("> ERROR: invalid number of parameters passed to server!\n\n"
|
|
| 47 |
"usage: %s <mw_hlrc> <mw_humotion> <base scopename hlrc> <base scopename humotion> [<audio output>]\n"
|
|
| 48 |
"(example: %s ROS ROS /flobi1/ pulse )\n", argv[0], argv[0]);
|
|
| 50 | 49 |
printf(" audio output is optional and can be {pulse,oss,alsa,null,sndio,..}\n\n");
|
| 51 | 50 |
exit(EXIT_FAILURE); |
| 52 | 51 |
} |
| ... | ... | |
| 77 | 76 |
middleware = new MiddlewareROS(arbiter, scope_hlrc); |
| 78 | 77 |
} |
| 79 | 78 |
else {
|
| 80 |
middleware = new MiddlewareRSB(arbiter, scope_hlrc);
|
|
| 79 |
printf("> ERROR: invalid middleware! Only ROS supported)\n");
|
|
| 81 | 80 |
} |
| 82 | 81 |
|
| 83 | 82 |
// human motion connection: |
Also available in: Unified diff