Robotics StackExchange | Archived questions

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

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)

Asked by Ibrahim_aerospace on 2019-12-10 22:04:52 UTC

Comments

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

Try echo $PROJECT_NAME

Asked by Abhishekpg on 2019-12-21 09:27:34 UTC

Answers