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

Control turtlesim via webpage

asked 2016-12-29 20:00:29 -0600

Werewolf_86 gravatar image

Hi all,

I was trying to control turtlesim from a webpage in my android phone. I followed this tutorial:

I ran "roslaunch rosbridge_server rosbridge_websocket.launch" and "rosrun turtlesim turtlesim_node" in my laptop. Also i opened the web page to control the turtlesim in my android mobile. But, the web page displays:

"Error connecting to websocket server. Connection to websocket server closed."

Please help !

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-12-30 00:47:36 -0600

Werewolf_86 gravatar image

Hi all,

I found the solution by myself. The IP address to be specified is that of the ros machine, and not the non ros one. So, i simply put the ip address in this line:

url : 'ws://'

And i could control theturtlesim from non ros computer.

Thanks !

edit flag offensive delete link more

answered 2016-12-30 03:09:39 -0600

ChriMo gravatar image


you can try this:

It's a simple tool to teleop any ros enabled device by a browser. The ipaddress is resolved by javascript.

Happy hacking

Cheers Christian

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-12-29 20:00:29 -0600

Seen: 623 times

Last updated: Dec 30 '16