Eternali / roslib

ROS interface library in Dart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection Problem

aliemrenebiler opened this issue · comments

I am trying to use it for a ROS Flutter UI.

We want to connect a robot and a computer via a wifi connection without internet. We will control the robot from computer and get the data of the robot. We will visualize it with Flutter, all the changed data will shown on the interface.

The problem is, the ros.connect() command can't connect.

I do these steps:

  • roscore
  • roslaunch rosbridge_server rosbridge_websocket.launch
  • Then run this attached Flutter code: connectscreen.txt

The return of this code is:
I/flutter (10257): SNAPSHOT DATA: null
I/flutter (10257): SNAPSHOT DATA: Status.CLOSED
I/flutter (10257): SNAPSHOT DATA: Status.CLOSED

The ws://0.0.0.0:9090 IP is given when rosbridge_websocket.launch is launched.

What is the problem, what should we change?

I clicked the button for 3 times, this is why SNAPSHOT DATA: ... is printed 3 times

Solved it. the IP should be ws://localhost:9090. After that we managed to connect.