Ask Your Question
0

rosmake mypackage

asked 2013-03-24 21:33:13 -0500

Holton gravatar image

updated 2013-03-25 00:34:02 -0500

felix k gravatar image

Hi dear all, I got some problems when I want to compile my package(mytele). I want to create a new package named mytele, and it is copy from turtlebot_teleop turtlebot_key.cpp. I am sure that the copy is complete. Here is my steps:

roscreate-pkg mytele geometry_msgs rospy roscpp

and I type this path so that ROS can find my package

export ROS_PACKAGE_PATH=/home/turtlebot/mytele:$ROS_PACKAGE_PATH

and then I copy this package code to my new package

cp turtlebot_key.cpp /home/turtlebot/mytele/src/turtlebot_key.cpp

and complie it

rosmake mytele mytele

the first time compile is completed, and new folder "bin" and "build" has been created. It seems every things is OK here.

> [ rosmake ] rosmake starting...    
[ rosmake ] Packages requested are: ['mytele', 'mytele']   
[ rosmake ] Logging to directory /home/turtlebot/.ros/rosmake/rosmake_output-20130325-140610 
[ rosmake ] Expanded args ['mytele', 'mytele'] to:
['mytele', 'mytele']                       
[rosmake-0] Starting >>> geometry_msgs [ make ]                
[rosmake-0] Finished <<< geometry_msgs  No Makefile in package geometry_msgs   
[rosmake-0] Starting >>> roslang [ make ]                 
[rosmake-0] Finished <<< roslang  No Makefile in package roslang   
[rosmake-0] Starting >>> rospy [ make ]                
[rosmake-2] Starting >>> roscpp [ make ]                  
[rosmake-2] Finished <<< roscpp  No Makefile in package roscpp       
[rosmake-0] Finished <<< rospy  No Makefile in package rospy           
[rosmake-2] Starting >>> mytele [ make ]               
[rosmake-2] Finished <<< mytele [PASS] [ 7.28 seconds ]     
[ rosmake ] Results:                             
[ rosmake ] Built 5 packages with 0 failures.                 
[ rosmake ] Summary output to directory               
[ rosmake ] /home/turtlebot/.ros/rosmake/rosmake_output-20130325-140610

and add the following line at the end of CMakeLists.txt file

rosbuild_add_executable(mytele.keyboard src/turtlebot_key.cpp)

and compile again

rosmake mytele mytele

but, this time, I got this failure message.

> [ rosmake ] rosmake starting...         
[ rosmake ] Packages requested are: ['mytele']  
[ rosmake ] Logging to directory /home/turtlebot/.ros/rosmake/rosmake_output-20130325-145504  
[ rosmake ] Expanded args ['mytele'] to:
['mytele']                           
[rosmake-0] Starting >>> geometry_msgs [ make ]        
[rosmake-1] Starting >>> roslang [ make ]              
[rosmake-0] Finished <<< geometry_msgs  No Makefile in package geometry_msgs   
[rosmake-1] Finished <<< roslang  No Makefile in package roslang        
[rosmake-1] Starting >>> rospy [ make ]           
[rosmake-2] Starting >>> roscpp [ make ]            
[rosmake-1] Finished <<< rospy  No Makefile in package rospy      
[rosmake-2] Finished <<< roscpp  No Makefile in package roscpp    
[rosmake-2] Starting >>> mytele [ make ]        
[ rosmake ] All 39 linesytele: 2.3 sec ]                                         [ 1 Active 4/5 Complete ]
{------------------------------------------------------------------------------- [ 1 Active 4/5 Complete ]
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  [rosbuild] Building package mytele
  [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
  [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
  [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
  -- Configuring done
  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_TOOLCHAIN_FILE


  -- Build files have been written to: /home/turtlebot/mytele/build
  cd build && make -l4
  make[1]: Entering directory `/home/turtlebot/mytele/build'
  make[2]: Entering directory `/home/turtlebot/mytele/build'
  make[3]: Entering directory `/home/turtlebot/mytele/build'
  make[3]: Leaving directory `/home/turtlebot/mytele/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/turtlebot/mytele/build'
  make[3]: Leaving directory `/home/turtlebot/mytele/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/turtlebot/mytele/build'
  make[3]: Leaving directory `/home/turtlebot/mytele/build'
  make[3]: Entering directory `/home/turtlebot/mytele/build ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-25 00:44:09 -0500

felix k gravatar image

In the original turtlebot_teleop manifest a lot more package dependencies are listed than you added in your roscreate-pkg command. Is this intentionally? If you copy the packages sources it's unlikely that all those deps are superfluous.

edit flag offensive delete link more

Comments

Thank you!!! I added turtlebot_bringup to the dependencies so I can compile now!! Thank you very much again!!

Holton gravatar image Holton  ( 2013-03-31 22:36:51 -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

1 follower

Stats

Asked: 2013-03-24 21:33:13 -0500

Seen: 714 times

Last updated: Mar 25 '13