ros run couldn't find executable file after catkin build and source
I'm trying to run an executable, but I'm getting the following error, I ran
catkin build
and then
source ~/emvs_ws/devel/setup.bash
after this running the following command
rosrun mapper_emvs run_emvs
shows this meassage
[rosrun] Couldn't find executable named run_emvs below /home/ubuntu/emvs_ws/src/rpg_emvs/mapper_emvs
this is the cmake file:
project(mapper_emvs)
cmake_minimum_required(VERSION 2.8.3)
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
set(CMAKE_BUILD_TYPE RelWithDebInfo) # Release, RelWithDebInfo
set(CMAKE_CXX_FLAGS "-O3 -fopenmp -std=c++11 ${CMAKE_CXX_FLAGS}")
set(HEADERS
include/mapper_emvs/mapper_emvs.hpp
include/mapper_emvs/data_loading.hpp
include/mapper_emvs/depth_vector.hpp
include/mapper_emvs/trajectory.hpp
include/mapper_emvs/geometry_utils.hpp
include/mapper_emvs/median_filtering.hpp
)
set(SOURCES
src/mapper_emvs.cpp
src/data_loading.cpp
src/median_filtering.cpp
)
option(DEFINE_USE_INVERSE_DEPTH "Use linear spacing in inverse depth (if OFF, will use linear spacing in depth)" ON)
if(DEFINE_USE_INVERSE_DEPTH)
add_definitions(-DUSE_INVERSE_DEPTH)
endif(DEFINE_USE_INVERSE_DEPTH)
cs_add_library(${PROJECT_NAME} ${SOURCES} ${HEADERS})
# Executables
################################################################################
cs_add_executable(run_emvs src/main.cpp)
target_link_libraries(run_emvs ${PROJECT_NAME})
################################################################################
cs_install()
cs_export()
Title seems to be in trouble :O
@M.Halwani: please fix the title.
If you don't, and this is a spam account, I'll remove all the content and block the user account.
what is the problem with the title ! I'm not a spam account :)
The title was this, before I changed it:
Public Stack Overflow Tags Users Find a Job Jobs Companies Teams What’s this? Free 30 Day Trial
.That doesn't seem like a proper title for this forum, and seems like someone trying to use ROS Answers to spam.
I'm sorry but I didn;t see this title at all in my browser ! I don't know what's the issue