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

Importing nodes in Eclipse

asked 2011-08-04 06:51:11 -0500

alfa_80 gravatar image

updated 2014-01-28 17:10:09 -0500

ngrennan gravatar image

Hi,

I've been following a link to import my project directory.

I'm having a problem with importing node/directory which resides in the /opt/ros/diamondback/stacks/openni_kinect/. In particular, I'm skipping directly to step number 3 which is "Importing the project into Eclipse". I can reach up to the "File --> Import --> Existing projects into workspace" step, but I am stuck at clicking finish(it doesn't allow though..). The reason I jump straightaway to step 3 because I've already have galileo version of eclipse long time ago installed. Another thing is that, other nodes that reside in my home directory, are easily imported.

Any ideas?

-alfa-

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-08-04 07:01:17 -0500

updated 2011-08-04 08:37:06 -0500

It seems that you're trying to import directories as though they were projects. You'll need to generate the .project files using the directions in step 2

Make sure you have your ros environment setup ( with the relevant ". setup" ) and issue a

    make eclipse-project

in the package directory (i.e. it won't work in a stack directory).

If you get an error it's likely that either

  • you're trying in the wrong directory
  • you don't have your environment set up and so cmake can't find the relevant rules supplied by ros to make the eclipse projects.
edit flag offensive delete link more

Comments

In step 2, there is a command "make eclipse-project", but I got an error saying "make: *** No rule to make target `eclipse-project'. Stop." Any thoughts?
alfa_80 gravatar image alfa_80  ( 2011-08-04 07:10:16 -0500 )edit
I'm not an expert on the Eclipse integration stuff but if I'm not mistaken you can only create an Eclipse project from a ROS package, not a ROS stack. The directory you mention in your question (/opt/ros/diamondback/stacks/openni_kinect/) is a stack diretory..
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-08-04 07:28:26 -0500 )edit
Silly comment limit.. Anyway I think you have another problem though; that directory is probably read-only (you installed openni_kinect via apt-get, right?). make eclipse-project will want to write a .project file in that directory and that won't work. If you actually want to hack on openni_kinect..
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-08-04 07:29:45 -0500 )edit
.. (argh, comment limit!) .. you should be grabbing it from version control, not using the one installed by apt-get. End comment. :)
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-08-04 07:31:02 -0500 )edit
@Patrick, just delete the comments and put the info in your answer since it's relevant : ) @alfa looks like cmake cant find ros, make sure you have your ros environment setup since cmake will try to reach into ros to find rules to make eclipse-project.
Asomerville gravatar image Asomerville  ( 2011-08-04 08:15:07 -0500 )edit
Installing via svn, results in one error..huhu..error => svn co http://www.ros.org/wiki/openni_kinect svn: OPTIONS of 'http://www.ros.org/wiki/openni_kinect': 200 OK (http://www.ros.org), what's that?
alfa_80 gravatar image alfa_80  ( 2011-08-04 08:17:43 -0500 )edit
@alfa, not sure, but it would be unrelated. If you can't resolve/keep having that issue, it would be appropriate to ask in a separate post.
Asomerville gravatar image Asomerville  ( 2011-08-04 08:27:59 -0500 )edit
So, am I right to say that it's doable with the apt-get installation instead of version control as "Asomerville" pointed out?
alfa_80 gravatar image alfa_80  ( 2011-08-04 19:50:20 -0500 )edit

Question Tools

Stats

Asked: 2011-08-04 06:51:11 -0500

Seen: 1,379 times

Last updated: Aug 04 '11