Robotics StackExchange | Archived questions

problems with building ptam

Hi i want to work with ptam,

the problem is, that i can't build it. I followed the instructions but i have some problems: Rosdep:

rosdep install ptam
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
ptam: Cannot locate rosdep definition for [ptam_com]

rosmake:

rosmake ethzasl_ptam
[ rosmake ] rosmake starting...                                                                                                                                                  
[ rosmake ] Packages requested are: ['ethzasl_ptam']                                                                                                                             
[ rosmake ] Logging to directory /home/gerken/.ros/rosmake/rosmake_output-20140710-152734                                                                                        
[ rosmake ] Expanded args ['ethzasl_ptam'] to:
[]                                                                                                                                
[ rosmake ] WARNING: The stack "catkin" was not found. We will assume it is using the new buildsystem and try to continue...                                                     
[ rosmake ] Results:                                                                                                                                                             
[ rosmake ] Built 0 packages with 0 failures.                                                                                                                                    
[ rosmake ] Summary output to directory                                                                                                                                          
[ rosmake ] /home/gerken/.ros/rosmake/rosmake_output-20140710-152734      

So i thought i could compile manually by using make in the main folder. It runs for ~ 5mins and then exits with following error:

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package ptam_com.

  Set ptam_com_DIR to the directory containing a CMake configuration file for
  ptam_com.  The file will have one of the following names:

    ptam_comConfig.cmake
    ptam_com-config.cmake

Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)


CMake Warning at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:406 (message):
  catkin_package() include dir
  '/home/gerken/ROS/pkg/ethzasl_ptam/ptam/build/devel/include' should be
  placed in the devel space instead of the build space
Call Stack (most recent call first):
  /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
  CMakeLists.txt:28 (catkin_package)


-- checking for module 'gtk+-2.0'
--   found gtk+-2.0, version 2.24.10
-- Configuring incomplete, errors occurred!
make[2]: *** [all] Fehler 1
make[2]: Verlasse Verzeichnis '/home/gerken/ROS/pkg/ethzasl_ptam/ptam'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/gerken/ROS/pkg/ethzasl_ptam/ptam'
make: *** [all] Fehler 2

I use hydro but since ptam doesn't support hydro i installed groovy and changed the "source" in the .bashrc. $ROSPACKAGEPATH is

/opt/ros/groovy/share:/opt/ros/groovy/stacks:/home/gerken/ROS/pkg/ethzasl_ptam

Could anybody help me with building the package? Thanks Andreas

Asked by andreas.gerken on 2014-07-10 08:39:59 UTC

Comments

Answers

I found out, that i have to put the code into the sourcefolder of a catkin_workspace. Now the build worked after installing liblapack-dev.

Asked by andreas.gerken on 2014-07-11 09:05:44 UTC

Comments

Hi Andreas,

so finally, did you use ROS Hydro or Groovy after the installation of the liblapack-dev?

I'm trying to use Hydro, but without any success...

Asked by FDC82 on 2014-09-23 05:27:30 UTC