can't locate node [ce30_driver_ros_node] in package [ce30_driver_ros]

asked 2019-12-10 21:04:52 -0600

Ibrahim_aerospace gravatar image

updated 2019-12-11 03:03:40 -0600

gvdhoorn gravatar image

Hello all!

I have a package that takes point cloud data from LiDAR and publishes it to a topic that can be viewed in Rviz. But when I run the launch file of the package, it gives me the error that can't locate node but node is there in the package. Anybody can help me? Thanks.

The error is:

ibrahim@ibrahim-aspire-v5-591g:~/catkin_workspaces/ce300_ws$ roslaunch ce30_driver_ros static_demo.launch
... logging to /home/ibrahim/.ros/log/f1a646aa-1bba-11ea-ab02-441ca87fed69/roslaunch-ibrahim-aspire-v5-591g-20227.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://localhost:42874/

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    ce30_driver_ros_node (ce30_driver_ros/ce30_driver_ros_node)
    ce30_to_map (tf/static_transform_publisher)

ROS_MASTER_URI=http://localhost:11311

ERROR: cannot launch node of type [ce30_driver_ros/ce30_driver_ros_node]: can't locate node [ce30_driver_ros_node] in package [ce30_driver_ros]
process[ce30_to_map-2]: started with pid [20251]

My lunch file is :

<launch>
  <node name="ce30_driver_ros_node" pkg="ce30_driver_ros" type="ce30_driver_ros_node"/>
  <node pkg="tf" type="static_transform_publisher" name="ce30_to_map" args="0 0 0 0 0 0 map ce30 1000"/>
</launch>

My node cpp file is located here:

/home/ibrahim/catkin_workspaces/ce300_ws/src/ce30_driver_ros/src

With the name:

ce30_driver_ros_node.cpp

Node name in CMakeLists.txt is:

add_executable(${PROJECT_NAME}_node src/ce30_driver_ros_node.cpp)
edit retag flag offensive close merge delete

Comments

Did you solve this issue. What is the value of $PROJECT_NAME.

Try echo $PROJECT_NAME

Abhishekpg gravatar image Abhishekpg  ( 2019-12-21 08:27:34 -0600 )edit