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

Srogacki's profile - activity

2016-08-24 00:06:31 -0500 received badge  Notable Question (source)
2016-08-24 00:06:31 -0500 received badge  Famous Question (source)
2016-08-24 00:06:31 -0500 received badge  Popular Question (source)
2015-04-03 17:32:25 -0500 marked best answer Explain RosTextView

I am working with the android_tutorial_pubsub package and have built an app that publishes to a node and subscribes to another. I also have two RosTextView widgets, which I want to display activity over my "publishing" rostopic and my "subscribing" rostopic. the tutorial has built-in functionality to display the publisher's messages on the RosTextView, but I cannot seem to get the subscriber messages to do the same. All the nodes and topics are set up correctly [per rxgraph], but I do not understand RosTextView enough to know how it gets its information or if subscriber should be pushing new messages to it.

Any help is appreciated.

2014-08-18 01:57:40 -0500 received badge  Famous Question (source)
2014-01-28 17:25:36 -0500 marked best answer Node Name Collision with multiple talker node instances

I have modified the android_tutorial_pubsub app to send and receive text at the same time. I am trying to run a listener instance, two talker instances, and two RosTextView instances. I have seen some info on private naming, but nothing has been very clear. How do I ensure that two instances of the same kind of node don't collide?

The warning follows: 07-21 07:14:56.276: W/System.err(15939): Node name collision. Existing node /rosjava_tutorial_pubsub/talker (http://143.192.2.2:36426) will be shutdown.

2014-01-28 17:23:34 -0500 marked best answer running android_tutorial_pubsub

I have installed and can run android_tutorial_pubsub on my 2.3.3 Droid2. I am not able, however, to view the outgoing /chatter topic after running "rostopic list" on my computer.

Both the computer and the device are on the same network and can ping each other. Currently, I have the roscore running on the computer with the ROS_MASTER_URI set to the ip address of the computer + the 11311 port and I have the entered the computer's ip address "http://192.168..:11311/" into text view on the android_tutorial_pubsub app.

Is the app running its own roscore? Do i need to use a different ip address somewhere? This seems like something that should just "work."

Any comments or suggestions would be very helpful and welcome.

2014-01-28 17:23:32 -0500 marked best answer android_tutorial_pubsub errors in eclipse and adb logcat

I can rosmake, ant, and ant debug android_tutorial_pubsub without error. I can install the .apk on my android phone just fine, but when I attempt to run the app, it crashes immediately.

I ran a adb logcat to locate the error. I received a number of errors. They are the same errors received during my attempts to run the app in eclipse.

Do I need to go through an extra build process in order to get a complete app on the phone?

Any help or guidance would be greatly appreciated.


The logcat of errors follow:

01-19 23:08:00.520 2154 2154 E AndroidRuntime: FATAL EXCEPTION: main 01-19 23:08:00.520 2154 2154 E AndroidRuntime: java.lang.Error: Unresolved compilation problems: 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The import org.ros.android.MessageCallable cannot be resolved 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The import org.ros.android.RosActivity cannot be resolved 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The import org.ros.android.views cannot be resolved 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The import org.ros.tutorials.pubsub.R cannot be resolved 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosActivity cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The method onCreate(Bundle) of type MainActivity must override or implement a supertype method 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosActivity cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: R cannot be resolved to a variable 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: R cannot be resolved to a variable 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: MessageCallable cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The method call(String) of type new MessageCallable<string,string>(){} must override or implement a supertype method 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The method init(NodeMainExecutor) of type MainActivity must override or implement a supertype method -19 23:08:00.520 2154 2154 E AndroidRuntime: RosTextView cannot be resolved to a type 01-19 23:08:00.520 2154 2154 E AndroidRuntime: The method onDestroy() of type MainActivity must override or implement a supertype method 01-19 23:08:00.520 2154 2154 E AndroidRuntime: RosActivity cannot be resolved to a type 01-19 23:08 ... (more)

2014-01-28 17:23:31 -0500 marked best answer Target "nodeps" does not exist in the project "android_gingerbread".

I am trying to follow along with the tutorial at http://www.ros.org/wiki/ApplicationsPlatform/Clients/Android to allow an android app to control a robot running ROS. I am getting an error requesting "nodeps" in android_gingerbread.

Can anyone tell me what this means and/or how I can fix the error?

The error follows:

  BUILD FAILED
  /home/steve/ROS_DIR/appmanandroid/build_app.xml:116: The following error occurred while executing this line:
  /home/steve/android-sdk-linux_x86/tools/ant/build.xml:485: The following error occurred while executing this line:
  Target "nodeps" does not exist in the project "android_gingerbread". 

  Total time: 2 seconds
  Executing command: ['ant']
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package android_app_chooser written to:
[ rosmake ]    /home/steve/.ros/rosmake/rosmake_output-20120117-203007/android_app_chooser/build_output.log
[rosmake-0] Finished <<< android_app_chooser [FAIL] [ 93.17 seconds ]           
[ rosmake ] Halting due to failure in package android_app_chooser. 
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:                                                            
[ rosmake ] Built 63 packages with 1 failures.                                  
[ rosmake ] Summary output to directory                                         
[ rosmake ] /home/steve/.ros/rosmake/rosmake_output-20120117-203007
2014-01-28 17:23:31 -0500 marked best answer Cannot locate installation of package actionlib_tutorials

I am trying to follow along with the tutorial at http://www.ros.org/wiki/ApplicationsPlatform/Clients/Android to allow an android app to control a robot running ROS. I am getting an error requesting installation of the package actionlib_tutorials.

I cant find any info about such a package on the ROS wiki. The closest thing to it is commons/actionlib. Is there a different stack that I need to update or install to get this working?

The traceback and error are posted below:

rosrun rosjava_bootstrap make.py actionlib_java Traceback (most recent call last): File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 108, in <module> main(sys.argv) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 100, in main build(rospack, package) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 57, in build maven.write_ant_maven_dependencies(rospack, package, stream) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/maven.py", line 298, in write_ant_maven_dependencies _write_maven_dependencies_group(rospack, package, 'compile', stream) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/maven.py", line 255, in _write_maven_dependencies_group _map_package_dependencies(rospack, package, export_operator, scope=scope) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/maven.py", line 105, in _map_package_dependencies _map_exports(rospack, dependency, export_operator, _transtive_dependency_scope_check, scope) File "/home/steve/ROS_DIR/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/maven.py", line 86, in _map_exports package_directory = roslib.packages.get_pkg_dir(package) File "/opt/ros/electric/ros/core/roslib/src/roslib/packages.py", line 220, in get_pkg_dir raise InvalidROSPkgException("Cannot locate installation of package %s: %s. ROS_ROOT[%s] ROS_PACKAGE_PATH[%s]"%(package, rperr.strip(), ros_root, ros_package_path)) roslib.packages.InvalidROSPkgException: Cannot locate installation of package actionlib_tutorials: [rospack] couldn't find package [actionlib_tutorials]. ROS_ROOT[/opt/ros/electric/ros] ROS_PACKAGE_PATH[/home/steve/ROS_DIR/turtlebot:/home/steve/ROS_DIR/appmanwx:/home/steve/ROS_DIR/android_voice_recognition:/home/steve/ROS_DIR/rosjava_android:/home/steve/ROS_DIR/android_pr2_props:/home/steve/ROS_DIR/android_pan_tilt:/home/steve/ROS_DIR/android_map_nav:/home/steve/ROS_DIR/android_make_a_map:/home/steve/ROS_DIR/android_map_manager:/home/steve/ROS_DIR/android_app_chooser:/home/steve/ROS_DIR/android_teleop:/home/steve/ROS_DIR/appmanandroid:/home/steve/ROS_DIR/rosjava_core:/opt/ros/electric/stacks] -------------------------------------------------------------------------------} [ rosmake ] Output from build of package actionlib_java written to: [ rosmake ] /home/steve/.ros/rosmake/rosmake_output-20120117-184449/actionlib_java/build_output.log [rosmake-0] Finished <<< actionlib_java [FAIL] [ 0.26 seconds ]
[ rosmake ] Halting due to failure in package actionlib_java. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results:
[ rosmake ] Built 54 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/steve/.ros/rosmake/rosmake_output-20120117-184449

2013-06-18 07:04:26 -0500 received badge  Famous Question (source)
2013-06-03 04:58:01 -0500 received badge  Notable Question (source)
2013-04-08 23:15:09 -0500 received badge  Famous Question (source)
2013-03-05 11:13:04 -0500 received badge  Notable Question (source)
2013-02-21 01:34:39 -0500 received badge  Popular Question (source)
2013-02-19 14:01:29 -0500 answered a question MD5 Checksum cannot be null

I figured it out. I using a publisher with a custom-built message that was essentially serialized to a string, but still a custom-message in name. My subscriber was looking for std_msgs/String, but not receiving any, so the checksum was off.

Sorry for the confusion.

-Steve

2013-02-15 04:52:03 -0500 asked a question MD5 Checksum cannot be null

I start up a subscriber on my android device to listen to a publisher running on my computer. I receive the following error after my subscriber has been created and executed:

E/SubscriberHandshakeHandler(3885): Subscriber handshake failed: Incoming MD5 checksum cannot be null.

I believe it occurs on receipt of the first message, but I am not sure.

I am running jellybean on the tablet and groovy on the pc. They are connected over a wifi connection with the roscore running on the pc.

Any help is appreciated!

2013-02-15 03:51:15 -0500 commented answer Defining Custom Message Types for Rosjava Android

awesome! thanks.

2013-02-13 19:07:56 -0500 received badge  Popular Question (source)
2013-02-11 04:21:42 -0500 asked a question Defining Custom Message Types for Rosjava Android

Hello!

I am writing an android app in JellyBean to subscribe to a rostopic. I am publishing a custom message type from an ubuntu virtual machine using groovy. I have successfully published and subscribed to the message between 2 VMs, but have issues when receiving the message type on my tablet.

I correctly configured the .msg files in my ros package, but am unsure how to define classes within my app as descriptors for ros messages.

Does anyone have information on configuration and declaration of custom messages in an android app using rosjava?

Thanks!

2012-12-18 13:55:27 -0500 received badge  Notable Question (source)
2012-12-17 14:31:44 -0500 marked best answer Sending ROS Nodes between Android Activities

I have a ROS node that I want to be able to communicate with from a view class in an android app. This view class is outside of the mainActivity. At present, I believe that I must either:

  1. create the node in the mainActivity and then send it, or a pointer to it, down a line of activities to the view that will communicate with it.
  2. create the node in the view class that will directly communicate with it.

I believe that, with the second option, I will need to send either the nodeMainExecutor or a reference to it.

Any help or comments would be appreciated.

2012-10-19 00:15:08 -0500 received badge  Popular Question (source)
2012-10-16 03:18:42 -0500 commented answer android_tutorial_pubsub errors in eclipse and adb logcat

right click on the project, go to build path, click "configure build path," then hit the projects tab and add the android_gingerbread project

2012-09-20 21:33:35 -0500 received badge  Famous Question (source)
2012-09-17 00:12:52 -0500 received badge  Notable Question (source)
2012-09-17 00:12:52 -0500 received badge  Famous Question (source)