Mohan
Mohan

Reputation: 5

ERROR: cannot launch node of type [darknet_ros/darknet_ros]:

dishita@dishita-VirtualBox:~/catkin_ws/src/darknet_ros$ roslaunch darknet_ros darknet_ros.launch ... logging to /home/dishita/.ros/log/a54fc4ec-3828-11ed-8e10-2d44a183ac97/roslaunch-dishita-VirtualBox-7714.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://dishita-VirtualBox:37933/

SUMMARY

PARAMETERS

NODES / darknet_ros (darknet_ros/darknet_ros)

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

setting /run_id to a54fc4ec-3828-11ed-8e10-2d44a183ac97 process[rosout-1]: started with pid [7732] started core service [/rosout] ERROR: cannot launch node of type [darknet_ros/darknet_ros]: Cannot locate node of type [darknet_ros] in package [darknet_ros]. Make sure file exists in package path and permission is set to executable (chmod +x)

Ive sourced the bash file and made the file executible using chmod +x ~/catkin_ws/src/darknet_ros

I am still getting this error, help me out.

Upvotes: 0

Views: 1196

Answers (2)

kosmastsk
kosmastsk

Reputation: 69

chmod +x ~/catkin_ws/src/darknet_ros is not enough to make the ROS node file executable. You have to locate the source file of the node, which probably is darknet_ros/ros/ yolo_object_detector_node.cpp, and make this file executable.

Upvotes: 0

Moiz Ahmed
Moiz Ahmed

Reputation: 1

You have to build the darknet_ros repo again. Use:

catkin build darknet_ros

also source the file again.

Upvotes: 0

Related Questions