Nodelet crashes at launch
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?
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).this confuses me: what did you use
catkin_create_pkg
for? The pkg already exists, why create one?In addition to what @gvdhoorn said, the README says to use
catkin_tools
to compile. You should follow the instructions in the README.@jayess:
catkin_tools
'just' adds some convenience to the whole process. Building withcatkin_make
will not alter the outcome (ie: the produced binaries and other derived artefacts).@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.
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 ..
.. your Boost problems.
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.
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.