ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

problem with making package - file not found

asked 2012-08-29 04:54:18 -0600

viovio gravatar image

updated 2012-08-30 04:34:54 -0600

Hello to all

the command:

faps@UbuntuBioMech:~/ros_workspace/beginner_tutorials$ make

occurs following failures:

    faps@UbuntuBioMech:~/ros_workspace/beginner_tutorials$ make
[  0%] Built target rospack_genmsg_libexe
[  0%] Built target rosbuild_premsgsrvgen
[  0%] Built target ROSBUILD_gensrv_lisp
[  0%] Built target ROSBUILD_gensrv_cpp
[  0%] Built target rospack_gensrv
[ 12%] Built target ROSBUILD_genmsg_lisp
[ 37%] Built target ROSBUILD_genmsg_py
[ 50%] Built target ROSBUILD_genmsg_cpp
[ 50%] Built target rospack_genmsg
[ 50%] Built target rosbuild_precompile
[ 62%] Building CXX object CMakeFiles/add_two_ints_client.dir/src/add_two_ints_client.o
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp: In function ‘int main(int, char**)’:
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:15:47: error: ‘beginner_tutorials’ was not declared in this scope
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:15:33: error: parse error in template argument list
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:15:93: error: no matching function for call to ‘ros::NodeHandle::serviceClient(const char [13])’
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:15:93: note: candidates are:
/opt/ros/fuerte/include/ros/node_handle.h:1129:17: note: template<class MReq, class MRes> ros::ServiceClient ros::NodeHandle::serviceClient(const string&, bool, const M_string&)
/opt/ros/fuerte/include/ros/node_handle.h:1149:17: note: template<class Service> ros::ServiceClient ros::NodeHandle::serviceClient(const string&, bool, const M_string&)
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:16:3: error: ‘beginner_tutorials’ is not a class or namespace
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:16:34: error: expected ‘;’ before ‘srv’
/home/faps/ros_workspace/beginner_tutorials/src/add_two_ints_client.cpp:17:3: error: ‘srv’ was not declared in this scope
make[2]: *** [CMakeFiles/add_two_ints_client.dir/src/add_two_ints_client.o] Error 1
make[1]: *** [CMakeFiles/add_two_ints_client.dir/all] Error 2
make: *** [all] Error 2
faps@UbuntuBioMech:~/ros_workspace/beginner_tutorials$

What should i do?

Many Thanks in advance Dominik

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2012-08-29 05:36:04 -0600

Seems that you are using a service (AddTwoInts). Check that you have the correct service definition (under ./srv/AddTwoInt.srv usually) or include the correct package in your manifest file.

edit flag offensive delete link more
0

answered 2012-08-29 10:03:35 -0600

rosrookie gravatar image

[Writing from my 2. account]

Actually there was no AddTwoInt.srv - File, so I added it. Nevertheless the same failure occurs by making the package.

Any different roposals?

edit flag offensive delete link more

Comments

1

Please do not create answers just for discussion. Answers should be real answers. This is not a forum. Either edit your original question or use the comment functionality.

Lorenz gravatar image Lorenz  ( 2012-08-29 10:11:53 -0600 )edit

Question Tools

Stats

Asked: 2012-08-29 04:54:18 -0600

Seen: 327 times

Last updated: Aug 30 '12