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

Control turtlesim via webpage

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

Werewolf_86 gravatar image

Hi all,

I was trying to control turtlesim from a webpage in my android phone. I followed this tutorial: http://iguanatronics.com/simple-tutor...

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
0

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

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://192.168.0.100:9090'

And i could control theturtlesim from non ros computer.

Thanks !

edit flag offensive delete link more
0

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

ChriMo gravatar image

Hi,

you can try this:

https://github.com/mockbot/MockBot/bl...

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

Stats

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

Seen: 628 times

Last updated: Dec 30 '16