rongix / ros_navigation_command_app Goto Github PK
View Code? Open in Web Editor NEWApplication for controlling ROS robot with voice commands, sending goals on map or remote control with virtual joystick
Application for controlling ROS robot with voice commands, sending goals on map or remote control with virtual joystick
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!
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.