Ask Your Question
1

Access ROS command-line tools via Java

asked 2011-03-14 05:18:59 -0600

Chakka gravatar image

updated 2014-01-28 17:09:20 -0600

ngrennan gravatar image

Hi,

I am trying to write a tool for ROS which allows the user to combine Eclipse with PyDev. Therefore, I want to create an eclipse plugin.

I am trying for quite some time to access the commandline tools like "rosnode" in Java but I am not yet able to accomplish it. Is there anyone who already accomplished that and could give me some ideas how to manage it. Is there a package or some junks of code as an example?

Until now I tried it as a direct process, as a shell script, and jython (but this is not 100% out).

Any Idea would be great. Thanks a lot!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-03-15 04:14:56 -0600

kwc gravatar image

It's great to hear you are working on an Eclipse plugin. If you access it as a process, have you made sure to pass in ROS_ROOT, ROS_MASTER_URI, and ROS_PACKAGE_PATH? The tools will not function without those set.

In the long run, a lot of the information would be easier to get access to by writing XML-RPC clients that talk to the master, which is how tools like rosnode and rosparam get most of their information.

edit flag offensive delete link more
0

answered 2013-02-18 00:54:22 -0600

dberm22 gravatar image

Can you post how you got this working? Is there some code I can use to access command line functions?

(sorry, too new to comment)

edit flag offensive delete link more
0

answered 2011-03-15 22:45:53 -0600

Chakka gravatar image

THanks a lot I missed ROS_MASTER_URI. Now it actual does what I expected.

Will look into the XML-RPC matter :)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-14 05:18:59 -0600

Seen: 245 times

Last updated: Feb 18 '13