Errors in the source code of the Gazebo plugin developer tutorial
I am following the tutorial for compiling a custom Gazebo plugin: http://classic.gazebosim.org/tutorials?tut=contact_sensor&cat=sensors
I am getting the following two errors in the ContactPlugin.hh file:
identifier "sdf" is undefined
namespace "gazebo::event" has no member "ConnectionPtr"
I tried to install everything I could find regarding Gazebo and SDF. I am at a loss. In my include paths include:
/usr/include/gazebo-11/**
/usr/include/sdformat-9.8/sdf/**
I have also tried switching the #include to:
gazebo-11/gazebo/gazebo.hh
but to no avail.
Any help would be greatly appreciated, Thanks!
Asked by Gavriel-CTO on 2022-12-12 07:59:55 UTC
Comments
Maybe this is a vscode issue... but I tried the hello-world example and even though I had the same errors, it compiled with including only the gazebo-11 path and including
Asked by Gavriel-CTO on 2022-12-12 09:48:01 UTC
I'm having the same issue. It's just vscode that's acting up though since the plugin compiles just fine. But it would be nice if there was a fix.
Asked by lem2300 on 2023-02-23 07:00:16 UTC