[ros-users] ROS default header files
ibwood
ianbenjiman at hotmail.com
Tue Jun 1 21:19:13 UTC 2010
Hi Josh,
The code is my own source code (not really it was obtained from a co-worker)
and here is what happened when I tried $ make for the joystick_code package:
$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
rosbuild`/rostoolchain.cmake ..
[rosbuild] Building package joystick_code
[rosbuild] Including /home/ian/ros/ros/core/rospy/cmake/rospy.cmake
[rosbuild] Including /home/ian/ros/ros/core/roscpp/cmake/roscpp.cmake
[rosbuild] WARNING: rosbuild_genmsg() was called, but no .msg files were
found
[rosbuild] WARNING: rosbuild_gensrv() was called, but no .srv files were
found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ian/ros/ros/joystick_code/build
cd build && make
make[1]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[2]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target rospack_genmsg_libexe
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target ROSBUILD_genmsg_cpp
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target rospack_genmsg
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target ROSBUILD_gensrv_cpp
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target rospack_gensrv
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
[ 0%] Built target rosbuild_precompile
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
make[3]: Entering directory `/home/ian/ros/ros/joystick_code/build'
[ 50%] Building CXX object CMakeFiles/joyListener.dir/src/joyListener.o
In file included from /home/ian/ros/ros/joystick_code/src/joyListener.cpp:2:
/home/ian/ros/ros/joystick_code/src/ros.h:38:22: error: ros/time.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:39:22: error: ros/rate.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:40:25: error: ros/console.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:41:24: error: ros/assert.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:43:24: error: ros/common.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:44:23: error: ros/types.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:45:29: error: ros/node_handle.h:
No such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:46:27: error: ros/publisher.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:47:45: error:
ros/single_subscriber_publisher.h: No such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:48:32: error:
ros/service_server.h: No such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:49:28: error: ros/subscriber.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:50:25: error: ros/service.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:51:22: error: ros/init.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:52:24: error: ros/master.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:53:27: error: ros/this_node.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:54:23: error: ros/param.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:55:23: error: ros/topic.h: No such
file or directory
/home/ian/ros/ros/joystick_code/src/ros.h:56:23: error: ros/names.h: No such
file or directory
In file included from /home/ian/ros/ros/joystick_code/src/joyListener.cpp:3:
/home/ian/ros/ros/joystick_code/src/String.h:7:25: error: ros/message.h: No
such file or directory
/home/ian/ros/ros/joystick_code/src/String.h:8:23: error: ros/debug.h: No
such file or directory
In file included from /home/ian/ros/ros/joystick_code/src/joyListener.cpp:3:
/home/ian/ros/ros/joystick_code/src/String.h:17: error: ‘ros’ has not been
declared
/home/ian/ros/ros/joystick_code/src/String.h:17: error: expected ‘{’ before
‘Message’
/home/ian/ros/ros/joystick_code/src/String.h:18: error: invalid type in
declaration before ‘{’ token
/home/ian/ros/ros/joystick_code/src/String.h:18: warning: extended
initializer lists only available with -std=c++0x or -std=gnu++0x
/home/ian/ros/ros/joystick_code/src/String.h:19: error: expected
primary-expression before ‘public’
/home/ian/ros/ros/joystick_code/src/String.h:19: error: expected ‘}’ before
‘public’
/home/ian/ros/ros/joystick_code/src/String.h:19: error: expected ‘,’ or ‘;’
before ‘public’
/home/ian/ros/ros/joystick_code/src/String.h:21: error: ‘boost’ has not been
declared
/home/ian/ros/ros/joystick_code/src/String.h:21: error: expected initializer
before ‘<’ token
/home/ian/ros/ros/joystick_code/src/String.h:27: error: expected
unqualified-id before ‘)’ token
/home/ian/ros/ros/joystick_code/src/String.h:30: error: expected
unqualified-id before ‘const’
/home/ian/ros/ros/joystick_code/src/String.h:30: error: expected ‘)’ before
‘const’
/home/ian/ros/ros/joystick_code/src/String.h:35: error: ‘std_msgs::String&
std_msgs::operator=(const std_msgs::String&)’ must be a nonstatic member
function
/home/ian/ros/ros/joystick_code/src/String.h:42: error: declaration of
‘~std_msgs::String’ as non-member
/home/ian/ros/ros/joystick_code/src/String.h:55: error: ‘virtual’ outside
class declaration
/home/ian/ros/ros/joystick_code/src/String.h:55: error: non-member function
‘const std::string std_msgs::__getDataType()’ cannot have cv-qualifier
/home/ian/ros/ros/joystick_code/src/String.h:56: error: ‘virtual’ outside
class declaration
/home/ian/ros/ros/joystick_code/src/String.h:56: error: non-member function
‘const std::string std_msgs::__getMD5Sum()’ cannot have cv-qualifier
/home/ian/ros/ros/joystick_code/src/String.h:57: error: ‘virtual’ outside
class declaration
/home/ian/ros/ros/joystick_code/src/String.h:57: error: non-member function
‘const std::string std_msgs::__getMessageDefinition()’ cannot have
cv-qualifier
/home/ian/ros/ros/joystick_code/src/String.h:58: error: ‘uint32_t’ does not
name a type
/home/ian/ros/ros/joystick_code/src/String.h:64: error: expected initializer
before ‘*’ token
/home/ian/ros/ros/joystick_code/src/String.h:76: error: expected initializer
before ‘*’ token
/home/ian/ros/ros/joystick_code/src/String.h:86: error: ‘boost’ has not been
declared
/home/ian/ros/ros/joystick_code/src/String.h:86: error: expected initializer
before ‘<’ token
/home/ian/ros/ros/joystick_code/src/String.h:87: error: ‘boost’ has not been
declared
/home/ian/ros/ros/joystick_code/src/String.h:87: error: expected initializer
before ‘<’ token
/home/ian/ros/ros/joystick_code/src/String.h:90: error: expected declaration
before ‘}’ token
make[3]: *** [CMakeFiles/joyListener.dir/src/joyListener.o] Error 1
make[3]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
make[2]: *** [CMakeFiles/joyListener.dir/all] Error 2
make[2]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ian/ros/ros/joystick_code/build'
make: *** [all] Error 2
--
View this message in context: http://ros-users.122217.n3.nabble.com/ROS-default-header-files-tp862763p862911.html
Sent from the ROS-Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
ros-users mailing list
ros-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ros-users
More information about the ros-users
mailing list