Reading from file using android_core [closed]

asked 2013-04-09 00:53:55 -0500

Sharpi gravatar image

Hello!

I'm somewhat new to ROS and I have just started running the tutorial programs from the android_core such as android_tutorial_camera and android_tutorial_pubsub.

I would like to have a node on my android device that reads a text file and sends the content of the file to a node on my laptop. I would use a wireless communication between the two, as in the tutorials.

I was thinking of modifying the android_tutorial_pubsub program, to read a file and save the information as a string, then send this string instead of the "Hello World" message.

My problem is that I don't know how to read from a file using android_core. Can I import android packages and read a file as I would normally do in an android application? Are there any specific classes in android_core to do this?

My other problem is that I could not find the the class in which the "Hello World" string is specified to be sent to the Chatter topic (I believe this is the name of the topic used by the android_tutorial_pubsub program).

I apologize if a similar question has already been answered, but I could not find it.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-12-12 01:21:02.783752