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

Nodelet crashes at launch

asked 2017-12-31 08:32:10 -0600

StevenCoral gravatar image

updated 2018-01-01 06:38:35 -0600

Hi all,

I am trying to launch the Novatel gps driver from: here .

I built it using catkin_create_pkg + catkin_make and not by catkin_tool. does that matter? It did compile with no errors, but when I launch it I get the errors:

[ERROR] [1514730037.320611149]: Failed to load nodelet [/novatel] of type [novatel_gps_driver/novatel_gps_nodelet] even after refreshing the cache: According to the loaded plugin descriptions the class novatel_gps_driver/novatel_gps_nodelet with base class type nodelet::Nodelet does not exist. Declared types are ..... long list

[ERROR] [1514730037.320666606]: The error before refreshing the cache was: According to the loaded plugin descriptions the class novatel_gps_driver/novatel_gps_nodelet with base class type nodelet::Nodelet does not exist. Declared types are ..... long list

I have googled this error and tried plenty of answers but none worked. Also, none was really the exact same problem, or for much older versions of ROS. Does anyone know the answer to fixing this / has the time to try and install it themselves so I can see if its only my PC?

I'm also not sure if catkin_tools has anything to do with it, I did not want to mess with the catkin configurations without knowing how to reverse any effect... I do have a full ws that needs to operate in parallel with that nodelet.

Many thanks in advance, Steve

EDIT: Apparently I was supposed to install all kinds of prerequisites not mentioned in the instructions. Then the msgs package passed compilation but the driver failed because warnings were treated as errors. I added a -Wno-error flag in the Cmakelists and it passed the compilation until the linking, where it failed because of a missing boost declaration or something.

The thing is, if I delete the build and devel folders and try to recompile the whole ws, I get a boost library error when compiling the velodyne package, way before getting to the novatel package (this did not happen before). Removing the libboost-all-dev would delete a long list of ros dependencies..... how do I get out of this one?

edit retag flag offensive close merge delete

Comments

1

The ERROR you show is not a crash, the nodelet can't be found, so isn't even started (hard to crash without starting it).

I built it using catkin_create_pkg + catkin_make

this confuses me: what did you use catkin_create_pkg for? The pkg already exists, why create one?

gvdhoorn gravatar image gvdhoorn  ( 2017-12-31 09:09:58 -0600 )edit

In addition to what @gvdhoorn said, the README says to use catkin_tools to compile. You should follow the instructions in the README.

jayess gravatar image jayess  ( 2017-12-31 12:05:41 -0600 )edit

@jayess: catkin_tools 'just' adds some convenience to the whole process. Building with catkin_make will not alter the outcome (ie: the produced binaries and other derived artefacts).

gvdhoorn gravatar image gvdhoorn  ( 2018-01-01 09:46:17 -0600 )edit

@StevenCoral: am I correct in assuming that you copied some files from the repository into a new pkg (created using catkin_create_pkg) and then tried to build your workspace? That wouldn't work, no.

Also: ignoring errors like you are doing is probably not a good idea.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-01 09:50:38 -0600 )edit

If we want to be correct about it, you should post a quick answer to your own question (something along the lines of "I hadn't followed the instructions correctly, which lead to all sorts of problems. Now it builds, but I have problems with Boost". Accept that and then post a new question for ..

gvdhoorn gravatar image gvdhoorn  ( 2018-01-01 09:51:49 -0600 )edit

.. your Boost problems.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-01 09:51:57 -0600 )edit

Finally: if you (cross-)post things to issue trackers, please always mention that to keep discussions/troubleshooting sessions connected: swri-robotics/novatel_gps_driver#13.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-01 09:55:33 -0600 )edit

The package thing was a mistake. I have read that catkin build and catkin_make are not compatible when it comes to build/devel content. When you try to use catkin build it alerts you to delete the catkin_make folders you might have. And the fact is, it did not build a lot of stuff catkin_make did.

StevenCoral gravatar image StevenCoral  ( 2018-01-01 11:47:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-01 09:54:22 -0600

gvdhoorn gravatar image

updated 2018-01-02 05:49:59 -0600

This is not really an answer (as we don't solve your specific question), but: it looks like novatel_gps_driver has been released (wiki page). Installation should then be as simple as sudo apt install ros-$distro-novatel-gps-driver.

Do you have a specific reason for wanting to build from source?

edit flag offensive delete link more

Comments

I count this as solving my problem of installing the novatel Driver. Thanks!

StevenCoral gravatar image StevenCoral  ( 2018-01-02 08:26:45 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-12-31 08:32:10 -0600

Seen: 1,150 times

Last updated: Jan 02 '18