Table 2.21. Commands
| command | description | example |
|---|---|---|
| eval(StringInstruction); | evaluate an expression and return result. Deprecated, use exec. | eval( "a=1;" ); |
| exec(StringInstruction); | execute an expression | exec( " echo(\"test\"); " ); |
| cpuload(); | return cpu load, value between 0 and 1 (1 for full) | |
| freemem(); | return free memory, value in bytes | |
| power(); | return power status, 0 if empty, 1 when full | |
| ping; | return "pong" when executed | just test the connection alive state |
| connections; | list all connections to the server | |
| killall s; | Stop all code of the named connection | killall U12345678; |
| disconnect s; | disconnect connections named "s" | s = "Uxxxxxx"; |
| quit; | close current connection | |
| shutdown; | server quit, this shutdown the server and so kill all connections | |
| reboot; | reboot robot | |
| reset; | reset the connection, by loading URBI.INI / CLIENT.INI | |
| commands; | return debug informations | |
| setpriority 20; | set priority of a connection, in URBIRT.INI file |