Settings

The behavior of the OCP plugin can be modified through arguments specified when starting Oden. Run: oden-streamer --plugin-param argument1 value1 --plugin-param argument2 value2.

The following arguments are available:

  • tcp_port - A u16 value specifying the TCP server port. Default is 4000.

  • latency_limit - A u32 value (in milliseconds) specifying the round-trip latency threshold above which the HighLatency fault is raised. Default is 500 milliseconds. See Faults for details on how latency is measured.

  • ocp_player_tcp_port - A u16 value specifying the operator-side (player) TCP server port. Default is 4001. See Player side TCP.

  • ocp_tcp_allow_remote - When set (any value), TCP servers bind to 0.0.0.0 (all interfaces) instead of 127.0.0.1 (localhost only). Applies to both the vehicle-side and operator-side (player) TCP servers. By default, TCP servers only accept connections from localhost.

Send Rate

OCP sends control command messages from operator to vehicle at the same frame rate as OdenVR or at max 100hz. The control command messages will be received asynchronously by OCP on the vehicle side and if there’s a TCP connection active they will be sent over TCP every 10 milliseconds. If no messages have arrived, it will send the last received message at least every 20 milliseconds. If no new control messages have arrived on the Streamer, OCP will continue sending the last one over TCP until a fault is raised. After a fault is raised, it will send the default values.

The feedback message to OdenVR will be sent once every frame. If no new user data has been supplied, it will send the last user data received.