hku-mars / FAST_LIO

A computationally efficient and robust LiDAR-inertial odometry (LIO) package
GNU General Public License v2.0
2.78k stars 936 forks source link

ERROR: cannot launch node of type #183

Closed Nationarity closed 2 years ago

Nationarity commented 2 years ago

Hello.

I am running the following, but it is not working.

Can someone helps me please.

user@ubuntu:~$ cd ~/catkin_ws/src user@ubuntu:~/catkin_ws/src$ source ~/catkin_ws/devel/setup.bash user@ubuntu:~/catkin_ws/src$ roslaunch fast_lio mapping_avia.launch

… ERROR: cannot launch node of type [fast_lio/fastlio_mapping]: Cannot locate node of type [fastlio_mapping] in package [fast_lio]. Make sure file exists in package path and permission is set to executable (chmod +x) …

I apologize. But what did I do wrong?

tohax commented 2 years ago

user@ubuntu:~$ cd /catkin_ws user@ubuntu:/catkin_ws$ source devel/setup.bash user@ubuntu:/catkin_ws$ roslaunch fast_lio mapping_avia.launch

You need to source from /catkin_ws directory, not /catkin_ws/src

Nationarity commented 2 years ago

Thank you for your response. However, I get the same error.

user@ubuntu:~$ cd ~/catkin_ws user@ubuntu:/catkin_ws$ source devel/setup.bash user@ubuntu:/catkin_ws$ roslaunch fast_lio mapping_avia.launch ... logging to /home/user/.ros/log/3430ee0e-2d7d-11ed-b32c-907841d4d92e/roslaunch-ubuntu-10634.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:44153/

SUMMARY

========

PARAMETERS

NODES / laserMapping (fast_lio/fastlio_mapping) rviz (rviz/rviz)

auto-starting new master process[master]: started with pid [10645] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 3430ee0e-2d7d-11ed-b32c-907841d4d92e process[rosout-1]: started with pid [10656] started core service [/rosout] ERROR: cannot launch node of type [fast_lio/fastlio_mapping]: Cannot locate node of type [fastlio_mapping] in package [fast_lio]. Make sure file exists in package path and permission is set to executable (chmod +x) process[rviz-3]: started with pid [10659] ^C[rviz-3] killing on exit [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done

Nationarity commented 2 years ago

Add livox_ros_driver (CustomMsg.h and CustomPoint.h) in ~/catkin_ws/src/FAST_LIO/include.

Again. '~/catkin_ws$ catkin_make

Previously, there were several fatal errors: here [100%] Built target fastlio_mapping.

roslaunch fast_lio mapping_avia.launch .... .ERROR: cannot launch node of type... is no longer occurring.