Giter VIP home page Giter VIP logo

rosbridge_websocket_demo's Introduction

rosbridge_websocket_demo

Web browser talking with ROS 1 nodes running on remote robot by using rosbridge_websocket (backend), roslib.js (frontend) and Husarnet p2p VPN (connection over the Internet).

Quick Start

Get your Husarnet Join Code

At first rename .env.template file to .env.

You will find your Join Code at https://app.husarnet.com
-> Click on the desired network
-> Add element button
-> Join code tab

…and change the JOINCODE variable in the .env files.

Start rosbridge_server demo (talker)

On the first computer ("the robot") run:

docker-compose up --build

Access the webserver over the Internet (listener)

Connect the second computer ("the laptop") to the same Husarnet network as the first computer (available options are listed here).

And open the following URL in your web browser (tested on Firefox):

http://talker-over-rosbridge-ws:80

or

http://[<PLACE_HERE_HUSARNET_IPV6_ADDR_OF_ROSBRIDGE_SERVER_DEMO>]:80

Click right mouse button and select Inspect option. Go to Console tab where you should see messages from the talker node:

...
Received message on /chatter: hello world 1479 index.js:27:13
Received message on /chatter: hello world 1480 index.js:27:13
Received message on /chatter: hello world 1481 index.js:27:13
Received message on /chatter: hello world 1482 index.js:27:13
Received message on /chatter: hello world 1483 index.js:27:13
Received message on /chatter: hello world 1484 index.js:27:13
...

rosbridge_websocket_demo's People

Contributors

dominikn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.