[x] I am at the right place and my issue is directly related to ROS#. General technical questions I would post e.g. at ROS Answers or Stack Overflow. For library-specific questions I would look for help in the corresponding library forums.
[x] I have thoroughly read the Contributing Guideline and writing this issue is the right thing to do in my case.
I have a question!
[x] I searched the Wiki, open and closed issues for an answer. I tried my best to find the answer by myself without success. I believe that the discussion we will have in this issue, and the solutions we might find, will help me, and likely other community members who have a similar problem.
Here is my question:
I am trying to build an Android app that connects to a ROS bridge using ROS#. When I run the app in the Unity environment it all runs as it is supposed to but when I build it and run it on the Android tablet I cannot get one specific publisher to publish to a topic (the publisher is a simple Int publisher. All other publishers and subscribers work correctly). Am I doing something wrong or is there a problem with Android apps using ROS#?
My OS is: Windows 10
My Unity Version is: Unity 2019.2.11
My ROS Distribution is: ROS Melodic
My Build Target Platform is: Android
Relevant Code:
My int publisher has the following code:
using RosSharp.RosBridgeClient;
using RosSharp.RosBridgeClient.Messages.Standard;
public class TaskCompletedPublisher : Publisher<Int32> {
private Int32 msg;
protected override void Start() {
base.Start();
msg = new Int32();
}
private void InitializeMessage() {
msg = new Int32();
}
private void OnDisable() {
base.Start();
}
public void PublishTaskCompleted(int outcome) {
msg.data = outcome;
Publish(msg);
}
}
I have a question!
Here is my question: I am trying to build an Android app that connects to a ROS bridge using ROS#. When I run the app in the Unity environment it all runs as it is supposed to but when I build it and run it on the Android tablet I cannot get one specific publisher to publish to a topic (the publisher is a simple Int publisher. All other publishers and subscribers work correctly). Am I doing something wrong or is there a problem with Android apps using ROS#?
Relevant Code: My int publisher has the following code:
My ROS connector Component is set as follows:![image](https://user-images.githubusercontent.com/90191514/157695833-8c718735-0221-4fa5-b40e-4b8d593d06bc.png)