Robotics StackExchange | Archived questions

IDE for developing ROSJAVA Nodes

Hi all,

i'm new to RosJava and I start searching for a tutorial which explains how to use RosJava with an IDE like Eclipse or Netbeans. Until now I have not found a good solution or tutorial. Has anyone a straight forward solution for editing own RosJava nodes with Eclipse or Netbeans?

Asked by christian.blesing on 2015-03-18 10:30:15 UTC

Comments

Answers

Well, I am also new to ROS and I'm not sure whether this answer will be helpful. But when I use rospp and rospy, I use jetbrains IDES: CLion and Pycharm respectively. What I did was,

  1. I opened a terminal in my working directory and sourced it.
  2. From the same directory, I moved into IDE's installation directory and start the IDE from command line.

eg: for CLion:

>> cd ~/catkin_ws

>> source devel/setup.bash 

>>cd /home/<user>/clion-2018.3.2/bin

>> ./clion.sh

After that I can use my IDE to edit ROS packages, and most of the time, the code predictions also appeared accurately. You can try the same process for your IDE also (IntelliJ IDEA community version can be recommended for java) . But to my knowledge, ROS specific debugging tools are not available with these IDEs. (Please correct me if I'm wrong). I always use IDE terminals to run and debug.

Asked by TharushiDeSilva on 2019-03-25 03:08:18 UTC

Comments

As of March 2019, I'd recommend using Android Studio (3.3 is the current version).

Rosjava is a Gradle project, so you can import it in a few steps. It just works smoothly; if you need dependencies from source source the workspace and execute Android Studio from the same terminal as pointed up in the other answer.

Asked by jubeira on 2019-04-10 16:29:21 UTC

Comments