ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Found the following, but they're either not files, or not executable:

asked 2016-03-22 09:19:17 -0500

tuncguclu gravatar image

Hi all!

rosrun using_markers basic_shapes
Couldn't find executable named basic_shapes below /home/tunc/catkin_wws/src/using_markers

rosrun using_markers basic_shapes.cpp
Found the following, but they're either not files, or not executable
/home/tunc/catkin_wws/src/using_markers/src/basic_shapes.cpp

I have problem like this. Can somebody help me? Thanks...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-22 11:41:05 -0500

mgruhler gravatar image

You haven't compiled your workspace, this is why it only finds the .cpp and not the executable.

You have to run a catkin_make and have your CMakeLists.txt and package.xml configured correctly.

Check out section 4.3 and the last lines of section 4.1 here.

edit flag offensive delete link more

Comments

Ok but when i try to run catkin_make an error like this occurs

The specified base path "/home/tunc/catkin_wws/src/using_markers" contains a package but "catkin_make" 
must be invoked in the root of workspace.
tuncguclu gravatar image tuncguclu  ( 2016-03-23 06:29:00 -0500 )edit

You need to run catkin_make in /home/tunc/catkin_wws/, not in /home/tunc/catkin_wws/src/.

mgruhler gravatar image mgruhler  ( 2016-03-23 06:34:19 -0500 )edit

catkin_make worked. I know i am asking too much :D but when i try to run rosrun using_markes basic_shapes it says

Error: package 'using_markes' not found

How do i handle that?

tuncguclu gravatar image tuncguclu  ( 2016-03-23 06:57:59 -0500 )edit

Did you source /home/tunc/catkin_wws/devel/setup.bash after catkin_make?

mgruhler gravatar image mgruhler  ( 2016-03-23 06:59:38 -0500 )edit

No but i did now and still says the same thing.

tuncguclu gravatar image tuncguclu  ( 2016-03-23 07:01:48 -0500 )edit

You need to do this in every terminal you use a ROS command. Can you past the output of echo $ROS_PACKAGE_PATH as well as the package.xml and CMakeLists.txt of your package? Please edit your question and format the files respectively using the preformatted text button (the one with 1s and 0s).

mgruhler gravatar image mgruhler  ( 2016-03-23 07:06:01 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-03-22 09:19:17 -0500

Seen: 7,166 times

Last updated: Mar 22 '16