ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to access my webpage with rosbridge server?

asked 2022-09-10 17:17:38 -0500

tiho_bg gravatar image

I would like to create an application for control my robot through Internet. I am using raspberry Pi 4 and ROS1 noetic under ubuntu. The wifi connection is the same between raspberry and my laptop during the test. I can’t establish a connection to my webpage. Could you please help? I was following this example -

edit retag flag offensive close merge delete



How to access my webpage ... ?

Just open the page in your favorite internet browser.

I can’t establish a connection to my webpage.

What is the error? Make sure you can ping the rosbridge server machine from your browser machine.

Nevertheless, I feel that information is lacking in this question.

ravijoshi gravatar image ravijoshi  ( 2022-09-10 21:43:31 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2022-09-11 12:27:55 -0500

Mike Scheutzow gravatar image

updated 2022-09-11 12:29:28 -0500

You seem confused about what rosbridge_server does. According to the wiki page, it creates a websocket that your browser (or other client) can connect to. With a websocket server, you can NOT simply type the websocket url into your browser and "see the page."

The usual approach is that you write javascript code, add the code to an html file, then you read that html file with your browser. The html file can be stored on the local disk, or you can read it from an http server that you run yourself. If written correctly, the javascript code inside the html file will make a connection to the rosbridge_server.

edit flag offensive delete link more


Thank you for your help. Everything is working fine now!

tiho_bg gravatar image tiho_bg  ( 2022-09-16 15:32:41 -0500 )edit

Question Tools

1 follower


Asked: 2022-09-10 17:17:38 -0500

Seen: 241 times

Last updated: Sep 16 '22