ERROR: cannot launch node of type [name of node]
I wrote a node that keeps the trajectory markers (to form a path) and join them into LINE_STRIPS
.
The problem I have is that as soon as I launch
the node via
roslaunch lidar_boat_detection trajectory_preprocessor.launch
I get the following error and I am not sure why:
PARAMETERS * /rosdistro: melodic * /rosversion: 1.14.3 * /trajectory_preprocessor/trajectory_preprocessor_data: True * /use_sim_time: True
NODES /
trajectory_preprocessor (lidarboatsproject/trajectory_preprocessor_node)
ROS_MASTER_URI=http://localhost:11311
ERROR: cannot launch node of type [lidarboatsproject/trajectory_preprocessor_node]: lidarboatsproject
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/emanuele/catkin_docking_ws/src
ROS path [2]=/home/emanuele/catkin_ws/src
ROS path [3]=/opt/ros/melodic/share
No processes to monitor shutting down
processing monitor...
... shutting down processing monitor complete
Below the launch
file:
<?xml version="1.0"?>
<launch>
<param name="use_sim_time" value="true" />
<node pkg="lidarboatsproject" type="trajectory_preprocessor_node"
name="trajectory_preprocessor" clear_params="false">
<param name="trajectory_preprocessor_data" value="true"/>
</node>
</launch>
Thank you very much for pointing to the right direction for solving the problem.
try sourcing your catkin ws by source devel/setup.bash
I'm sorry to have to do this for something so seemingly unimportant, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing
ctrl+k
(or clicking the Preformatted Text button (the one with101010
on it)).You don't need to post a new question, just edit your curent one. You can use the
edit
button/link for this.After you replace the screenshot with the error message itself, we can re-open your question.
Hi @gvdhoorn, ok I edited the question and took out the print screen. I think it should be fine now. Let me know.
Yep, thanks for fixing it.
Is your
trajectory_preprocessor_node
python or c++?P.S. if you put "cannot launch node of type" into the search bar at the top of this page, including the double quotes, you will see greater than 2 dozen questions like your own.