Skip to content

cannot launch node of type [darknet_ros_3d/darknet3d_node]: Cannot locate node of type [darknet3d_node] in package [darknet_ros_3d]. #49

Open
@ghokulji

Description

@ghokulji

Hello,

I have cloned the melodic branch of the darknet_ros_3d to my aws_robomaker environment. I ran colcon build and the build was successful. When I run the darknet_ros_3d.launch I am facing this error.

3dros png

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

I have tried the following approaches

I sourced my workspace with "source install/local_setup.sh" after colcon build. Apart from the darknet_ros_3d.launch, all other nodes are able to be launched. II also tried to run the node separately, but it seems like the executable cannot be found.
I got this error

[rosrun]` Couldn't find executable named darknet3d_node below /home/ubuntu/environment/aws_robomaker_hotbot/robot_ws/install/darknet_ros_3d/share/darknet_ros_3d

So, I thought the error must be with the CMakeLists.txt. But everything seems to be fine

cmake_minimum_required(VERSION` 2.8.3)

project(darknet_ros_3d)

set(CMAKE_BUILD_TYPE RelWithDebInfo)

add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
darknet_ros_msgs
gb_visual_detection_3d_msgs
sensor_msgs
tf2_ros
tf2_geometry_msgs
pcl_ros
pcl_conversions
roslint
)

catkin_package(
CATKIN_DEPENDS ${PACKAGE_DEPENDENCIES}
DEPENDS PCL
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
)

include_directories(
include
${catkin_INCLUDE_DIRS}
)

add_library(${PROJECT_NAME}
src/darknet_ros_3d/Darknet3D.cpp
src/darknet_ros_3d/Darknet3DListener.cpp
src/darknet3d_node.cpp
)

target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})

add_executable(darknet3d_node src/darknet3d_node.cpp)
target_link_libraries(darknet3d_node ${catkin_LIBRARIES} ${PROJECT_NAME})

add_executable(darknet3d_listener_node test/darknet3d_listener_node.cpp)
target_link_libraries(darknet3d_listener_node ${catkin_LIBRARIES} ${PROJECT_NAME})

roslint_cpp(
src/darknet_ros_3d/Darknet3D.cpp include/darknet_ros_3d/Darknet3D.h
src/darknet_ros_3d/Darknet3DListener.cpp include/darknet_ros_3d/Darknet3DListener.h
src/darknet3d_node.cpp
)

install(TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

install(DIRECTORY config launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

Can anyone help me out, as to why the executable is not found and why the build is not done properly?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions