Git Product home page Git Product logo

networking_test's Introduction

This readme is incomplete; ask Eric if you run into issues.

server_websockets.py

This should be used in the SIRo HITL tool or another simulation. The relevant API is:

from server_websockets import launch_server_process, terminate_server_process
from interprocess_record import send_keyframe_to_networking_thread, get_queued_client_states

Concretely, to work with vrcube.html, the simulation thread should send keyframes consisting of poses for the set of cubes expected by client_vrcube.js.

It requires self_signed.pem and private.key, which you can generate with these instructions.

vrcube.html

This is a minimal WebXR client app. It should be served via HTTPS (including related .js files in this folder); see these instructions. It'll connect to the server, receive keyframes, use them to update the poses of some cubes, and also send updated "client state" (keyboard state; VR controller poses and button states).

mouseKeyboardAvatar.js is misnamed; it's an avatar that is controlled by the keyboard when in desktop mode or controlled by VR when in VR mode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.