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

Revision history [back]

click to hide/show revision 1
initial version

Dear ahendrix,

thanks for your advice. I tested this configuration too, but the result was the same.

After an attentive search I found "my" problem already discussed at answers.ros.org: Forum Entry

Hence, I do the recommenended change for the android_tutorial_pupsub in MainActivity.java

@Override
protected void init(NodeMainExecutor nodeMainExecutor) {
   talker = new Talker();
   NodeConfiguration nodeConfiguration = NodeConfiguration.newPrivate();
   nodeConfiguration.setMasterUri(getMasterUri());
   nodeMainExecutor.execute(talker, nodeConfiguration);
   nodeMainExecutor.execute(rosTextView, nodeConfiguration);

}

the 4th line into

NodeConfiguration nodeConfiguration = NodeConfiguration.newPublic(InetAddressFactory.newNonLoopback().getHostAddress().toString());

Afterwards, when I took a view on the other examples, I found this solution already implemented (android_tutorial_image_transport e.g.). What was the idea behind this differencing implementation, that obviously not connects the android device correctly with a roscore running on a PC?

Thanks for your help Best wishes

Poseidonius

Dear ahendrix,

thanks for your advice. I tested this configuration too, but the result was the same.

After an attentive search I found "my" problem already discussed at answers.ros.org: Forum Entry

Hence, I do the recommenended change for the android_tutorial_pupsub in MainActivity.java

@Override
protected void init(NodeMainExecutor nodeMainExecutor) {
   talker = new Talker();
   NodeConfiguration nodeConfiguration = NodeConfiguration.newPrivate();
   nodeConfiguration.setMasterUri(getMasterUri());
   nodeMainExecutor.execute(talker, nodeConfiguration);
   nodeMainExecutor.execute(rosTextView, nodeConfiguration);

}

the 4th line into

NodeConfiguration nodeConfiguration = NodeConfiguration.newPublic(InetAddressFactory.newNonLoopback().getHostAddress().toString());

Afterwards, when I took a view on the other examples, I found this solution already implemented (android_tutorial_image_transport e.g.). What was the idea behind this differencing implementation, that obviously not connects the android device correctly with a roscore running on a PC?

Thanks for your help Best wishes

Poseidonius