Ask Your Question
0

Unable to find executable

asked 2014-10-07 12:27:00 -0500

Bharath Javvadhi gravatar image

updated 2016-10-24 09:02:46 -0500

ngrennan gravatar image

Hello Everyone,

I am completely new to ROS and programming in C++, I am looking for a program to move the turtlebot forward and found a tutorial named sending simple goals to navigation stack. However, I tried the tutorial ( http://wiki.ros.org/navigation/Tutori... ) to move the robot forward by 1 meter. I have followed the tutorial in the exact way but unable to execute the program and it shows an error message:

asun@asun-Latitude-E6400:~$ rosrun simple_navigation_goals simple_navigation_goals

[rosrun] Couldn't find executable named simple_navigation_goals below /home/asun/catkin_ws/src/simple_navigation_goals
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/asun/catkin_ws/src/simple_navigation_goals
[rosrun]   /home/asun/catkin_ws/src/simple_navigation_goals/include/simple_navigation_goals

I can see the executable file under this folder:

home/asun/catkin_ws/src/simple_navigation_goals/include/simple_navigation_goals

Please help me with the solution. I am using ROS-Hydro and Ubuntu 12.04 LTS precise.

Also, I am completely new to this. Please help me with any tutorial in C++ or python to move the robot forward or backward in the simulator as well as the turtlebot itself using code but not teleop.

Any help will be much appreciated.

I have built the code using catkin_make and it produced the following result:

asun@asun-Latitude-E6400:~$ cd ~/catkin_ws/
asun@asun-Latitude-E6400:~/catkin_ws$ catkin_make
Base path: /home/asun/catkin_ws
Source space: /home/asun/catkin_ws/src
Build space: /home/asun/catkin_ws/build
Devel space: /home/asun/catkin_ws/devel
Install space: /home/asun/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/asun/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/asun/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/hydro
-- This workspace overlays: /opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/asun/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 5 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~  - geometry_msgs
-- ~~  - agitr
-- ~~  - enclosure_escape
-- ~~  - simple_navigation_goals
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'geometry_msgs'
-- ==> add_subdirectory(geometry_msgs)
-- +++ processing catkin package: 'agitr'
-- ==> add_subdirectory(agitr)
-- +++ processing catkin package: 'enclosure_escape'
-- ==> add_subdirectory(enclosure_escape)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'simple_navigation_goals'
-- ==> add_subdirectory(simple_navigation_goals)
-- Using these message generators: gencpp;genlisp;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asun/catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/asun/catkin_ws/build"
####
[  0%] [  0%] Built target roscpp_generate_messages_cpp
Built target roscpp_generate_messages_py
[  0%] Built target rosgraph_msgs_generate_messages_lisp
[  0%] [  0%] Built target roscpp_generate_messages_lisp
Built target rosgraph_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target rosgraph_msgs_generate_messages_cpp
[ 16%] Built target listener
[ 16%] [ 16%] Built target geometry_msgs_generate_messages_cpp
Built target geometry_msgs_generate_messages_lisp
[ 16%] Built target geometry_msgs_generate_messages_py
[ 33%] Built target hello
[ 33%] Built target move_base_msgs_generate_messages_cpp
[ 33%] [ 33%] Built target move_base_msgs_generate_messages_lisp
Built target move_base_msgs_generate_messages_py
[ 33%] Built target actionlib_msgs_generate_messages_py
[ 33%] Built target actionlib_msgs_generate_messages_cpp
[ 33%] Built target actionlib_generate_messages_lisp
[ 33%] [ 33%] Built target actionlib_generate_messages_py
Built target actionlib_msgs_generate_messages_lisp
[ 33%] Built target actionlib_generate_messages_cpp
[ 50%] Built target talker
[ 83%] [ 83 ...
(more)
edit retag flag offensive close merge delete

Comments

What's your CMakeList.txt look like? Can you confirm where simple_navigation_goals.cpp is located?

You also asked for more tutorials, you can check out our ROS tutorials The ROS101: Creating a workspace, package and publisher tutorial seems to suit your needs

MartinCote gravatar imageMartinCote ( 2014-10-15 10:20:27 -0500 )edit

I am facing the same issue, have you found the solution to this?

aarontan gravatar imageaarontan ( 2018-06-06 16:36:16 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-08 01:09:57 -0500

Wolf gravatar image

I think you missed sourcing your workspace after catkin_make:

source /home/asun/catkin_ws/devel/setup.bash

If you have only sourced the setup.bash of the ros distro in /opt/ros/... your environment will not know where the packages/execs in your workspace are places....

edit flag offensive delete link more

Comments

I have sourced it as per your comments. Now it returns to the previous error and displays that the executable is not found.

Bharath Javvadhi gravatar imageBharath Javvadhi ( 2014-10-08 14:44:11 -0500 )edit
0

answered 2014-10-07 14:19:29 -0500

dornhege gravatar image

Have you build your code by calling catkin_make?

I highly doubt that the executable is under a directory named .../include/simple_navigation_goals and if it is, something has seriously gone wrong.

edit flag offensive delete link more

Comments

Could not respond in full here, so i have revised my question and updated the question with answers to your queries. Thanks

Bharath Javvadhi gravatar imageBharath Javvadhi ( 2014-10-07 19:48:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-10-07 12:23:54 -0500

Seen: 1,381 times

Last updated: Oct 08 '14