Closed Jaeyoung-Lim closed 7 years ago
I know that gazebo 7 can build in Ubuntu 14.04 with ROS Indigo, so I suspect, as it looks like it's a package dependency issue, ignition, a package gazebo depends seems to have been changed in 16.04 resulting in the error
@eric1221bday
But it is weird because gazebo7 runs just fine on its own. The error occurs only when trying to run SITL with gazebo
@Jaeyoung-Lim I suspect there is some dependency issue on these packages. I run ROS kinetic, Gazebo 7, everything works fine. It might be worth reinstalling/updating everything, and give a try then.
This looks like something with the dependency to ignition is wrong. Check what you have installed there.
Do you know the solution to solve the problem of ignition/math/Inertial.hh? i still have the same problem.
What ignition stuff do you have installed? It's some version mismatch there.
Did you try sudo apt-get install libignition-math2-dev
?
Same issue here with Ubuntu 16.04. @rikba I tried that command and the package is already installed:
libignition-math2-dev is already the newest version (2.2.3+dfsg1-4)
@Jaeyoung-Lim , did you find a resolution?
@Jaeyoung-Lim @nikkk91 @hamid-m
When you get the error message, just type: killall gzserver Then, build your 'sitl_gazebo package' once again from the beginning.
hi , i am getting the same error , can you please tell specifically whats going on wrong ?? i have ros - kinetic
Please make a new issue and add compile output, installed versions, etc.
I got the same error here, ubuntu 16.04, ros kinetic desktop full, gazebo 7, I followed this link : https://github.com/disaster-robotics-proalertas/usv_sim_lsa and when I run : catkin_make_isolated --install
I got :
In file included from /usr/include/gazebo-7/gazebo/physics/Entity.hh:30:0,
from /usr/include/gazebo-7/gazebo/physics/Model.hh:34,
from /usr/include/gazebo-7/gazebo/physics/Actor.hh:24,
from /usr/include/gazebo-7/gazebo/physics/physics.hh:2,
from /home/sanji/usv_sim_lsa/src/keel_plugin/src/keel_plugin.cpp:5:
/usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/Inertial.hh: No such file or directory
compilation terminated.
CMakeFiles/keel_plugin.dir/build.make:62: recipe for target 'CMakeFiles/keel_plugin.dir/src/keel_plugin.cpp.o' failed
make[2]: [CMakeFiles/keel_plugin.dir/src/keel_plugin.cpp.o] Error 1
CMakeFiles/Makefile2:867: recipe for target 'CMakeFiles/keel_plugin.dir/all' failed
make[1]: [CMakeFiles/keel_plugin.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'keel_plugin':
Command '['make', '-j8', '-l8']' returned non-zero exit status 2
Reproduce this error by running: ==> cd /home/sanji/usv_sim_lsa/build_isolated/keel_plugin && make -j8 -l8
Command failed, exiting.
@mrabbah this is an old thread, please open a new one where appropriate, e.g. in https://github.com/disaster-robotics-proalertas/usv_sim_lsa if that's where you have the instructions from.
Just as an FYI, I hit the same error today, SITL worked with Gazebo9 but when installing Gazebo7 it croaked when building.
The fix was installing libignition math 2 sudo apt-get install libignition-math2-dev
That made SITL work again with Gazebo7.
Solved with sudo apt-get install libignition-math2-dev
I have been using gazebo6 with ROS indigo(on Ubuntu 14.04) to run the PX4 plugin and now changing to gazebo7 with ROS kinetic (on Ubuntu 16.04)
I have followed the instructions and the
works just fine. However, I cannot make the plugin run with gazebo7. Below is the error when I am trying to run the px4 plugin with
The document states that the SITL does not work in Gazebo7 but I see some posts that it does. (and the documentation is now mostly based on gazebo7) I am not sure how I should understand the support for gazebo7.