Robotics StackExchange | Archived questions

my ros package could not be bulid

I have installed indigo followed link text successfully in ubuntu 14.04. But when I create a new package, I can not build it using catkin_make, it only returns

thinker@thinker:~/turtlebot$ catkin_make
Base path: /home/thinker/turtlebot
Source space: /home/thinker/turtlebot/src
Build space: /home/thinker/turtlebot/build
Devel space: /home/thinker/turtlebot/devel
Install space: /home/thinker/turtlebot/install
####
#### Running command: "make cmake_check_build_system" in "/home/thinker/turtlebot/build"
####
####
#### Running command: "make -j4 -l4" in "/home/thinker/turtlebot/build"
####

here is the ROSPACKAGEPATH: /home/thinker/turtlebot/src:/home/thinker/catkin_ws/src:/home/thinker/huilong/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks what can I do next? thanks

Asked by yongqi on 2016-06-29 04:54:20 UTC

Comments

If there is no error output, catkin_make finished successfully. If you built your workspace before and there are no changes to any CMakeLists.txt, this is the output that you will get. So there is nothing wrong here.

Asked by mgruhler on 2016-06-29 05:55:48 UTC

Why makes you say that it did not work ??

Asked by lfr on 2016-06-29 06:51:00 UTC

no,it did not build, when I enter rosrun + the package name, it can not find this package. Or after I enter two TAB, it did return the package name.

Asked by yongqi on 2016-06-29 07:30:39 UTC

Without the complete output from your catkin_mke run, it's impossible for us to tell if it built successfully or not. Your previous comment does not necessarily imply a build problem, it could instead imply a bad workspace setup or just an old rospack cache.

Asked by jarvisschultz on 2016-06-29 09:44:44 UTC

Also, the syntax is rosrun PACKAGE EXECUTABLE. just rosrun PACKAGE will output a respective usage message.

Asked by mgruhler on 2016-06-29 09:57:46 UTC

You you want to use rosrun, you have to have an executable file and added it in your CMakeLists.txt. If the package is not found, try to source your devel/setup.bash

Asked by lfr on 2016-06-30 02:03:05 UTC

Answers