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

TristanKpka's profile - activity

2019-05-20 01:58:32 -0500 marked best answer Communicate between Android and ROS threads

Hello,

I have a simple Java class that launch a thread containing a ROS node

public class ROSThread implements Runnable {
private Thread m_thread;

public ROSThread() {
    this.m_thread = new Thread(this);
}

public void rosrun(){
    m_thread.start();
}

@Override
public void run() {
    // start your classic ROS node (spin()) in a dedicated thread
    startROSNode();
}

//load C/C++ shared library
static
{
    System.loadLibrary("ros_main");
}
private native void startROSNode();
}

Which is launched in the Activity class

ROSThread rosThread = new ROSThread();
rosThread.rosrun();

In this activity, I would like to indicate to my ROS nod that it needs to publish something. Any idea how to do that ?

Thanks in advance,

2018-04-18 13:47:29 -0500 received badge  Famous Question (source)
2017-11-07 09:22:33 -0500 received badge  Notable Question (source)
2017-10-23 02:59:27 -0500 marked best answer ROS and Android with Kinetic and Android Studio

Hello,

I'm trying to get ROS (Kinetic) and Android working together in Android Studio. I followed the tutorial http://wiki.ros.org/android/Tutorials...

I created a new project, edited the gradle files but I get this error when I try to build the app and I cannot find anything about this.

Error:Android tasks have already been created.
This happens when calling android.applicationVariants,
android.libraryVariants or android.testVariants.
Once these methods are called, it is not possible to
continue configuring the model.

Any idea ?

Thanks in advance :)

2017-10-23 02:59:27 -0500 received badge  Scholar (source)
2017-10-23 02:59:25 -0500 commented answer ROS and Android with Kinetic and Android Studio

Thank you. I added your code plus tools:node="replace" in the manifest. I am compiling a project that needs dependencies

2017-10-20 14:59:48 -0500 received badge  Student (source)
2017-10-20 14:55:31 -0500 received badge  Popular Question (source)
2017-10-20 11:33:53 -0500 commented question ROS and Android with Kinetic and Android Studio

I got that error when I build the app. I've edited my answer.

2017-10-20 11:33:29 -0500 edited question ROS and Android with Kinetic and Android Studio

ROS and Android with Kinetic and Android Studio Hello, I'm trying to get ROS (Kinetic) and Android working together in

2017-10-20 09:58:52 -0500 asked a question ROS and Android with Kinetic and Android Studio

ROS and Android with Kinetic and Android Studio Hello, I'm trying to get ROS (Kinetic) and Android working together in

2017-10-14 02:40:17 -0500 received badge  Famous Question (source)
2017-08-08 14:52:41 -0500 received badge  Notable Question (source)
2017-06-20 04:38:18 -0500 received badge  Popular Question (source)
2017-05-24 05:03:29 -0500 asked a question Communicate between Android and ROS threads

Communicate between Android and ROS threads Hello, I have a simple Java class that launch a thread containing a ROS nod