rosjava / android_apps

Applications built on top of the rosjava android libraries.
132 stars 112 forks source link

Teleop Launch Activity #75

Closed TheByteMonster closed 6 years ago

TheByteMonster commented 6 years ago

So I am using the app for a project for university, and I can't seem to find the launch activity for the teleop activitiy. The one which says "Master URI..... Read QRCode.....Connect". That is the the activity that I am having trouble locating. Can anyone point me in the right direction to where the launch activity is?

Thanks

jubeira commented 6 years ago

Hi @TheByteMonster! ROS answers is probably a better place to ask these kind of questions.

Anyway, here's a brief explanation. In general, the activities in ROS applications extend RosActivity. Take a look at its constructor. In particular, startMasterChooser method: https://github.com/rosjava/android_core/blob/kinetic/android_10/src/org/ros/android/RosActivity.java#L244. By default, it will end up starting MasterChooserActivity which is the one that you are looking for.

The main point of all of this is that you can start writing your own application on top of RosActivity without worrying about how to connect to the ROS master.

Does that make sense?

TheByteMonster commented 6 years ago

Hi @jubeira Yeah that makes sense. Thanks for clearing it up.