Robotics StackExchange | Archived questions

gazebo/examples/plugins/camera build error

Hello,

I am trying to build the camera example under plugins, using the latest gazebo-11. While trying to make I get the following error:

/usr/include/sdformat-9.2/sdf/Param.hh:72:57: error: expected constructor, destructor, or type conversion before ‘;’ token template<class T> ParamStreamer(T) -> ParamStreamer<T>; /usr/include/sdformat-9.2/sdf/Param.hh:83:47: error: ‘variant’ is not a member of ‘std’ ParamStreamer<std::variant<Ts...>> sv)

I am attaching the full error output. C:\fakepath\error.yaml

Any help on this problem greatly appreciated.

Asked by altineller on 2020-05-09 20:31:09 UTC

Comments

Answers

I had the same error.. In the following warnings it said something about variant being supported by c++17 and so I added the following lines in the begenning of CMakeLists.txt and it worked:

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

Asked by tanmay on 2020-10-20 06:02:29 UTC

Comments