Should I use nodeMainExecutor.execute a replacement for startActivity(intent) for ROS android [closed]

asked 2015-04-02 23:15:59 -0500

VijethRai gravatar image

updated 2015-04-03 14:37:02 -0500

I am trying to ROSify an android code using the new rosjava and rosandroid platform. In the original code Activity1.class handles the main setup and calls another Activity2.class using the startActivity(Activity2_Intent) . Nothing unusual there.

In my ROS android code, I am extending Activity1 as an RosActivity. But after that, I am wondering if its best to

a) implement Activity2 as ros * NodeMain* and call it using nodeMainExecutor.execute(Activity2_asNode, config)


b) should I extend Activity2 as a ROSActivty as well and call it using startActivity(Activity2_asRosActivity_intent...) .

If I choose option b, then I guess I can write a new class file as a node Main and call that from Activity2 using nodeMainExecutor(..) to handle ROS bits

Which of the two would be better coding style for ros android development.

Since android_core on ROS is fairly new, there isn't much documentation or examples on what exactly nodeMainExecutor's role should be in code development.

PS: Activity2_asNode, Activity2_asROSnode etc are just names to make description more clear and wont match the actual code.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by VijethRai
close date 2015-05-08 01:03:26.733841