Coder Social home page Coder Social logo

rongix / ros_navigation_command_app Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 17.0 475 KB

Application for controlling ROS robot with voice commands, sending goals on map or remote control with virtual joystick

Kotlin 0.26% Swift 0.19% Objective-C 0.02% Dart 98.99% HTML 0.54%
ros ros-melodic dart flutter dialogflow mobile-app flutter-apps flutter-demo teleoperation

ros_navigation_command_app's Issues

Cannot connect to ROS

Hi, I am able to build and compile the app successfully. However, when I refresh the connection by pressing the refresh button, I am getting this error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Bad state: No element
#0 Iterable.first (dart:core/iterable.dart:624:7)
#1 RosSubscriber.establishTCPROSConnection. (package:ros_nodes/src/ros_subscriber.dart:124:12)
#2 _rootRunUnary (dart:async/zone.dart:1434:47)
#3 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#6 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#7 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
#8 _TakeStream._handleData (dart:async/stream_pipe.dart:305:12)
#9 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#10 _rootRunUnary (dart:async/zone.dart:1434:47)
#11 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#12 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#14 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#15 _SyncBroadcastStreamController._sendData. (dart:async/broadcast_stream_controller.dart:385:20)
#16 _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:322:15)
#17 _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:384:5)
#18 _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:244:5)
#19 _AsBroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:474:11)
#20 _rootRunUnary (dart:async/zone.dart:1434:47)
#21 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#22 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#23 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#24 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#25 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#26 _StreamController._add (dart:async/stream_controller.dart:648:7)
#27 _StreamController.add (dart:async/stream_controller.dart:596:5)
#28 _Socket._onData (dart:io-patch/socket_patch.dart:2314:41)
#29 _rootRunUnary (dart:async/zone.dart:1442:13)
#30 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#31 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#32 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#33 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#34 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#35 _StreamController._add (dart:async/stream_controller.dart:648:7)
#36 _StreamController.add (dart:async/stream_controller.dart:596:5)
#37 new _RawSocket. (dart:io-patch/socket_patch.dart:1839:33)
#38 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1322:14)
#39 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#40 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)

I am really unable to understand why this is happening, and am not able to fix it. Any help would be greatly appreciated! Thanks a lot!

Unable to subscribe

Hey, I managed to compile the APK and am trying to run it on an android device. I have set the master IP to the ROS_MASTER_URI and the local IP correctly. I'm able to send data on /cmd_vel but am not able to subscribe to any topic (such as camera on the correct topic or the map.

Did I miss any step in setup? Can you help me debug this?

Can we get the Coordinates from the rendered map to Publish as a goal

Hey Rongix,
Firstly I greatly appreciate for this project which helped me integrate ROS and Flutter. I just started to learn in depth concepts like Canvas in Flutter, Can you help me add this feature where we can get the Coordinates from rendered map using interactive Viewer which can be used to pass it as a Goal through DartROS publisher. I have tried it but no visible results. Any idea how to add this functionality? Any help will be greatly appreciated.

Thanks,
V

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.