Reading from file using android_core
Hello!
I'm somewhat new to ROS and I have just started running the tutorial programs from the androidcore such as androidtutorialcamera and androidtutorial_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 androidtutorialpubsub 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 androidcore. Can I import android packages and read a file as I would normally do in an android application? Are there any specific classes in androidcore 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 androidtutorialpubsub program).
I apologize if a similar question has already been answered, but I could not find it.
Asked by Sharpi on 2013-04-09 00:53:55 UTC
Comments