problem with gazebo 1.9.0
Hello Dear All,
I've used standalone gazebo (1.8.6) without any problems and today i update it to (1.9.0) and now when i run my code i got this error:
/home/vahid/My_WorkSpace/Project_Code_5_Qt4/CommonHeaders.hh:2: error: gazebo/transport/transport.hh: No such file or directory
also i add gazebo to cmake of my project in this way:
#//////////////////////////////////////////////////////////***Gazebo
include(FindPkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(GAZEBO gazebo)
endif()
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})
also i call headers file of gazebo in this way:
/////////////////////////////////////////////////// Gazebo Headers
#include "gazebo/transport/transport.hh"
#include "gazebo/msgs/msgs.hh"
#include "gazebo/gazebo.hh"
#include "math/gzmath.hh"
#include "gazebo/common/Image.hh"
as i said in gazebo 1.8.6, i don't have any problem and this problem is after updating gazebo to 1.9.0. by the way when i add gazebo-1.9 to address of headers file (#include "gazebo-1.9/gazebo/transport/transport.hh"), my problem is solved but i should add gazebo-1.9 to all headers! any one know what is my fault or what should i do?
Asked by Vahid on 2013-07-26 10:29:49 UTC
Answers
You can check that pkg-config returns correct values using:
pkg-config --cflags gazebo
The output should be something like:
-I/home/nkoenig/local/include/gazebo-1.9 -I/home/nkoenig/local/include/gazebo-1.9/gazebo -I/home/nkoenig/local/include/sdformat-1.4
Asked by nkoenig on 2013-07-26 10:35:40 UTC
Comments
Dear nkoeing, when i run above command, the output is( -I/usr/include/gazebo-1.9 -I/usr/include/gazebo-1.9/gazebo -I/usr/include/sdformat-1.4), it's same to you, so what is my fault?
Asked by Vahid on 2013-07-26 10:38:33 UTC
That's the same as me. Can you check to make sure that /usr/include/gazebo-1.9/gazebo/transport/transport.hh
exists?
Asked by nkoenig on 2013-07-26 18:28:51 UTC
yes, i checked it and it's available, also when i copied the gazebo folder from inside of gazebo-1.9 to /usr/include, this error disappear! but i got finding library error!
Asked by Vahid on 2013-07-26 20:12:46 UTC
You should never manually copy something into an install path, it'll almost always lead to errors. So it sounds like you are compiling from source. Check to make sure that no errors are generated, and that you are running "sudo make install"
Asked by nkoenig on 2013-07-30 10:26:13 UTC
I would also suggest using the binary debian.
Asked by nkoenig on 2013-07-30 10:26:57 UTC
Thank you dear nkoenig, i reinstall again gazebo using the binary debian and my problem is solved.
Asked by Vahid on 2013-07-30 10:30:08 UTC
Hi Vahid
As you include path (-I/usr/include/gazebo-1.9/gazebo) includes the gazebo folder , your includes should be not include gazebo but should follow the format
#include "transport/transport.hh"
Asked by ynevatia on 2013-07-26 11:06:21 UTC
Comments
Dear ynevatia, i test your suggestion, but i got past error again!
Asked by Vahid on 2013-07-26 12:36:02 UTC
Can you check the contents of the folder /usr/include/gazebo-1.9/gazebo?
Asked by ynevatia on 2013-07-26 15:04:42 UTC
Dear ynevatoa, yes i checked it all headers are available on it.
Asked by Vahid on 2013-07-26 20:15:46 UTC
Comments
my problem is solved, i reinstall gazebo and qt!!!
Asked by Vahid on 2013-07-28 06:03:07 UTC