Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot locate node of type [hector_mapping] #101

Open
PhlpGr opened this issue Jan 22, 2022 · 4 comments
Open

Cannot locate node of type [hector_mapping] #101

PhlpGr opened this issue Jan 22, 2022 · 4 comments

Comments

@PhlpGr
Copy link

PhlpGr commented Jan 22, 2022

I have installed Ros Noetic under Ubuntu 20.04.3 LTS. With the Slamtec RPLIDAR A1 I can start the Rviz without any problems. After cloning the reposetory in "/home/ubuntu/catkin_ws/src" and running "roslaunch rplidar_ros rplidar.launch" in terminal 1 and "roslaunch hector_slam_launch tutorial.launch" in terminal 2 the following errors occur:

'''
process[rviz-1]: started with pid [5194]
ERROR: cannot launch node of type [hector_mapping/hector_mapping]: Cannot locate node of type [hector_mapping] in package [hector_mapping]. Make sure file exists in package path and + is set to executable (chmod +x)
process[base_to_laser_broadcaster-3]: started with pid [5195]
ERROR: cannot launch node of type [hector_trajectory_server/hector_trajectory_server]: Cannot locate node of type [hector_trajectory_server] in package [hector_trajectory_server]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [hector_geotiff/geotiff_node]: Cannot locate node of type [geotiff_node] in package [hector_geotiff]. Make sure file exists in package path and permission is set to executable (chmod +x)
'''

But with the roscd command I can reach all areas.

The Rviz gui starts but does not create a map (also no measuring points are displayed). The application also shows a Global Status Error.

What can I do to start the tutorial , that a map is created?

@RajithAshok
Copy link

Hi @PhlpGr , I'm using ROS Melodic on Ubuntu 18.04 and facing the same error while running the command "roslaunch hector_slam_launch tutorial.launch". If you have already solved the error, your insights on the same will be very helpful.
Thank you

@Maleby
Copy link

Maleby commented Sep 9, 2024

Hello, I am using ROS Noetic and I am having the same issue. I would appreciate if someone has an idea on how to solve this!

@RajithAshok
Copy link

Hi @Maleby , I solved the issue with the below command

catkin_make --only-pkg-with-deps <target_package>

Make sure all the files inside the packages are executable and run this command for all the packages individually.
For more info visit: how-to-build-just-one-package-using-catkin_make

Hope this helps.

@Maleby
Copy link

Maleby commented Sep 9, 2024

Hello @RajithAshok I had an issue with my catkin_make. There was an error on qt5 files:

CMake Error at hector_slam/hector_geotiff/CMakeLists.txt:7 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5" with any of
the following names:

Qt5Config.cmake
qt5-config.cmake

Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/home/sahri/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/sahri/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:698: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

and I had to run these commands:

sudo apt-get install qtbase5-dev
sudo apt-get install qtdeclarative5-dev

After running the hector slam launch file everything worked fine! I appreciate your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants