meerasebastian / wu-robotics

Automatically exported from code.google.com/p/wu-robotics
0 stars 0 forks source link

leg_detector2 does not compile #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. rosmake leg_detector2

What is the expected output? What do you see instead?
Expected output: that the package compiles successfully.
Actual output:

mkdir -p bin
cd build && cmake -Wdev 
-DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmak
e  ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
[rosbuild] Building package leg_detector2
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
-- Using CATKIN_DEVEL_PREFIX: 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/build/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/groovy
-- This workspace overlays: /opt/ros/groovy
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Skip enable_testing() for dry packages
-- Using CATKIN_TEST_RESULTS_DIR: 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/build/test_results
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.71
[rosbuild] Including 
/opt/ros/groovy/stacks/client_rosjava_jni/rosjava_jni/cmake/rosjava.cmake
-- Found Java: /usr/bin/java (found version "1.7.0.25")
[rosbuild] Including /opt/ros/groovy/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/groovy/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/groovy/share/rospy/rosbuild/rospy.cmake
MSG: gencfg_cpp on:LegDetector.cfg
ERROR Finding dependencies for 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/cfg/LegDetector.cfg

-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/build
cd build && make 
make[1]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[2]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
Scanning dependencies of target ROSBUILD_gencfg_cpp
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 25%] Generating ../cfg/cpp/leg_detector2/LegDetectorConfig.h, 
../docs/LegDetectorConfig.dox, ../docs/LegDetectorConfig-usage.dox, 
../src/leg_detector2/cfg/LegDetectorConfig.py, ../docs/LegDetectorConfig.wikidoc
Generating reconfiguration files for LegDetector in leg_detector2
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 25%] Built target ROSBUILD_gencfg_cpp
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
Scanning dependencies of target rospack_gencfg
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 25%] Built target rospack_gencfg
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
Scanning dependencies of target rospack_genmsg_libexe
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 25%] Built target rospack_genmsg_libexe
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
Scanning dependencies of target rosbuild_precompile
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 25%] Built target rosbuild_precompile
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
Scanning dependencies of target leg_detector
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[3]: Entering directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
[ 50%] Building CXX object CMakeFiles/leg_detector.dir/src/laser_processor.cpp.o
[ 75%] Building CXX object CMakeFiles/leg_detector.dir/src/leg_detector.cpp.o
In file included from 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/src/leg_detector.cpp:55:0:
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/cfg/cpp/leg_detector2/LegDetectorConfig.h:250:7: error: expected 
identifier before numeric constant
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/cfg/cpp/leg_detector2/LegDetectorConfig.h:250:7: error: expected 
unqualified-id before numeric constant
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/src/leg_detector.cpp:925:1: error: expected ‘}’ at end of input
In file included from 
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/src/leg_detector.cpp:55:0:
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/cfg/cpp/leg_detector2/LegDetectorConfig.h:244:7: error: expected 
unqualified-id at end of input
/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_de
tector2/cfg/cpp/leg_detector2/LegDetectorConfig.h:244:7: error: expected 
‘}’ at end of input
make[3]: *** [CMakeFiles/leg_detector.dir/src/leg_detector.cpp.o] Error 1
make[3]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[2]: *** [CMakeFiles/leg_detector.dir/all] Error 2
make[2]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/fred/development/projects/robocup/athome/groovy/wu-robotics/people2/leg_d
etector2/build'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
- Revision: 2433
- OS: Ubuntu 12.04, 64-bit
- ROS Groovy

Original issue reported on code.google.com by hegger.f...@gmail.com on 17 Aug 2013 at 11:41

Attachments:

GoogleCodeExporter commented 8 years ago
It tested also under ROS Fuerte. And there I get the same error. 

Original comment by hegger.f...@gmail.com on 25 Aug 2013 at 10:07

GoogleCodeExporter commented 8 years ago
I got same problem with ros fuerte. Did you solve it?

Original comment by tl20...@gmail.com on 3 Jan 2014 at 4:42

GoogleCodeExporter commented 8 years ago
Attached is a version of leg_detector.cpp that allows the package to compile 
(at least on my machine: Ubuntu 12.04, 64 bit, ROS Groovy). You can diff to the 
current file to see changes. To see what needed to be changed, I compared the 
existing to the version of David Lu's Github: 
https://github.com/DLu/people/tree/master/leg_detector

Original comment by angusle...@gmail.com on 16 Jan 2014 at 9:50

Attachments: