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

How to configure Eclipse to properly load a plugin?

asked 2011-05-15 17:01:14 -0500

Bart gravatar image

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

ngrennan gravatar image

I am trying to use Eclipse to debug the navigation stack (or debug how I am mis-using the stack). I have created an Eclipse project for move_base (make eclipse-project in move_base package), but am unsure how to deal with the plugins that need to be loaded. During initialization of the MoveBase class I get the following error:

[rospack] couldn't find package [nav_core]
terminate called after throwing an instance of 'pluginlib::LibraryLoadException'
  what():  rospack could not find the nav_core package containing nav_core::BaseGlobalPlanner

I appreciate that many ROS developers use command line tools, but I have enjoyed using Eclipse on simpler projects. Is there an Eclipse project configuration step that I am likely missing to allow loading/debugging of plugins?

edit retag flag offensive close merge delete

Comments

Hi, are you starting eclipse from the command line, to get all your environment variables (ROS_PACKAGE_PATH, etc...). I'm not really sure if that's your problem as I'm not using eclipse myself, but I remember reading something about this a while ago. Cheers
Ugo gravatar image Ugo  ( 2011-05-15 20:13:12 -0500 )edit
I'm launching it off a program launcher, but I set up the ROS environment variables in the Launch Configuration Properties/Environment window. It works fine for ROS nodes distributed across multiple computers.
Bart gravatar image Bart  ( 2011-05-16 14:04:43 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2011-05-18 02:22:26 -0500

Bart gravatar image

The Eclipse environment variables needed to define ROS_PACKAGE_PATH. Added this variable and problem solved.

edit flag offensive delete link more
0

answered 2011-05-24 15:47:55 -0500

Poseidonius gravatar image

updated 2011-05-24 15:48:32 -0500

Did you generate the Eclipse project file via cmake?

make eclipse-project

In my experience, this file organizes the integration of all required paths ... Take a view to ROS IDEs

Best wishes

Poseidonius

edit flag offensive delete link more

Comments

Yes, I used make eclipse-project, but it doesn't automatically pull in the ROS environment variables and I missed manually configuring the ROS_PACKAGE_PATH. There is still some awkwardness as you can't set breakpoints in plugins until the main program is running, but it does what I need.
Bart gravatar image Bart  ( 2011-05-24 17:54:49 -0500 )edit
0

answered 2011-05-16 05:49:58 -0500

I'm not sure if this will work, but including the package which contains the plugin in the manifest.xml and then rebuilding the eclipse project (and restarting Eclipse) is worth trying.

I think eclipse might only set up the paths correctly for dependencies.

edit flag offensive delete link more

Comments

nav_core, pluginlib, base_local_planner, costmap_2d and navfn were already defined as dependent packages in the move_base manifest.xml before I did the make eclipse-project.
Bart gravatar image Bart  ( 2011-05-16 14:58:50 -0500 )edit
Does it fail in the same way when started from the command line?
Asomerville gravatar image Asomerville  ( 2011-05-16 15:12:09 -0500 )edit
Good point. I seem to have broken the move_base node while thrashing around to get Eclipse working, as it no longer runs from the launch file I copied from move_base_turtlebot.launch.
Bart gravatar image Bart  ( 2011-05-16 16:00:14 -0500 )edit
Reloaded navigation stack, ran make eclipse-project, imported into Eclipse. Still have the original problem in Eclipse, but move_base works from command line or launch file.
Bart gravatar image Bart  ( 2011-05-16 16:21:44 -0500 )edit
and can you roscd to nav_core from the command line?
Asomerville gravatar image Asomerville  ( 2011-05-16 17:25:18 -0500 )edit
Yes. As well, I can launch move_base within gdb by adding launch-prefix="xterm -e gdb --args" to move_base.launch.
Bart gravatar image Bart  ( 2011-05-16 17:32:54 -0500 )edit

Question Tools

Stats

Asked: 2011-05-15 17:01:14 -0500

Seen: 1,598 times

Last updated: May 24 '11