Robotics StackExchange | Archived questions

Unable to Compile Plugin for Gazebo Ignition

Hi, I am trying to move from Gazebo to Ignition Gazebo. I used to build plugins for Gazebo without any problem, but I am not understanding how to do it in Ignition Gazebo. I was trying to build a very simple plugin using the code from the Ignition Gazebo tutorials. When I tried to compile with CMake I got the error

Unknown CMake command "ign_find_package".

So I have tried to find out what to compile Ignition libraries (for build ign gazebo plugins) and I have seen the ignition-cmake project. Should I use it to compile libraries for ignition gazebo? And if yes how should I use it? In the project under the voice "Usage" the description is:

This library is used internally by the ignition projects. See other ignition projects for examples of how this gets used.

But I didn't found anything on how to do that. Do you have any suggestion on how to that or where I can find a guide to do that?

Thank you very much in advance.

Asked by Tadteo on 2021-03-04 08:59:09 UTC

Comments

could you please attach the code you are trying to compile and how are you building it? thanks

Asked by Jose Luis Rivero on 2021-04-20 14:35:50 UTC

Answers

Yes, you would need ignition-cmake to use that command.

Have you installed the Ignition libraries? This installation tutorial should get you all the libraries, including ignition-cmake https://ignitionrobotics.org/docs/dome/install

You can view all the Ignition libraries here https://ignitionrobotics.org/libs

Asked by mz on 2021-03-06 03:30:40 UTC

Comments

Actually, I have installed it using that approach but it still does not work. There are anything else that I can try? Maybe there is some env var to change?

Asked by Tadteo on 2021-04-06 10:37:25 UTC

When you say it doesn't work, can you provide details to what you mean? Is there an error message, and what are the steps you followed?

Asked by mz on 2021-06-10 19:44:29 UTC