Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Hi again,

after switching to the branch gazebo_1.9 the old error disappeared and now i get an error about a missing SDF.hh header and a lot of other things

/home/user/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_bumper.cpp:31:22: fatal error: sdf/SDF.hh: No such file or directory compilation terminated. /home/user/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_camera_utils.cpp:34:22: fatal error: sdf/SDF.hh: No such file or directory compilation terminated. /home/user/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/gazebo_ros_block_laser.cpp:31:22: fatal error: sdf/SDF.hh: No such file or directory compilation terminated.

I'm currently confused how this can compile on other installations...

a lot of plugins seem to include <sdf/SDF.hh> (for example gazebo_ros_block_laser.cpp) but neither gazebo nor sdformat seems to have a file in this path gazebo has <sdf/interface/SDF.hh> and sdformat has no SDF.hh.

when using the SDF.hh from gazebo catkin was trying to use the sdf includes from gazebo...

after further investigations I recognized that gazebo is not using any of the src in the gazebo/sdf directory anymore, so removed the gazebo sdf directory in my include path and replaced all occurrences of sdf/SDF.hh with sdf/sdf.hh

this seems to have solved the Problem. I'm not sure how this is supposed to work

I will now do some tests with my current solution and mark the Question as solved if no unexspected behaviour occurs....