0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Gazebo error : fatal error: sdf/sdf.hh No such file or directory

Last updated at Posted at 2019-10-01

fatal error: sdf/sdf.hh No such file or directory

$ colcon build --symlink-install

make[2]: *** 'libTelloPlugin.so' に必要なターゲット '/usr/lib/x86_64-linux-gnu/libignition-common1.so.1.0.1' を make するルールがありません.  中止.
make[2]: *** 未完了のジョブを待っています....
In file included from /usr/include/gazebo-9/gazebo/common/common.hh:8:0,
                 from /usr/include/gazebo-9/gazebo/gazebo_core.hh:19,
                 from /usr/include/gazebo-9/gazebo/gazebo.hh:20,
                 from /home/k-koh/ros2_ws/src/tello_ros/tello_gazebo/src/tello_plugin.cpp:3:
/usr/include/gazebo-9/gazebo/common/Battery.hh:25:10: fatal error: sdf/sdf.hh: そのようなファイルやディレクトリはありません
 #include "sdf/sdf.hh"
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/TelloPlugin.dir/src/tello_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/TelloPlugin.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< tello_gazebo	[ Exited with code 2 ]
Aborted  <<< tello_driver                                                            
Aborted  <<< turtlebot3_node
Aborted  <<< tello_description                                       

Summary: 10 packages finished [6.41s]
  1 package failed: tello_gazebo
  3 packages aborted: tello_description tello_driver turtlebot3_node
  1 package had stderr output: tello_gazebo
  4 packages not processed

Fixed

$ sudo apt-get purge libgazebo9-dev
$ sudo apt-get install -y libgazebo9-dev
$ rosdep install --from-paths . --ignore-src --rosdistro dashing -y
$ sudo apt-get install ros-dashing-gazebo*
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?