my ros package could not be bulid

asked 2016-06-29 04:54:20 -0500

yongqi gravatar image

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 ROS_PACKAGE_PATH: /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

edit retag flag offensive close merge delete

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.

mgruhler gravatar imagemgruhler ( 2016-06-29 05:55:48 -0500 )edit

Why makes you say that it did not work ??

lfr gravatar imagelfr ( 2016-06-29 06:51:00 -0500 )edit

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.

yongqi gravatar imageyongqi ( 2016-06-29 07:30:39 -0500 )edit

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.

jarvisschultz gravatar imagejarvisschultz ( 2016-06-29 09:44:44 -0500 )edit

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

mgruhler gravatar imagemgruhler ( 2016-06-29 09:57:46 -0500 )edit

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

lfr gravatar imagelfr ( 2016-06-30 02:03:05 -0500 )edit