Gazebo | Ignition | Community
Ask Your Question
0

Unable to Compile Plugin for Gazebo Ignition

asked 2021-03-04 07:59:09 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.

edit retag flag offensive close merge delete

Comments

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

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2021-04-20 14:35:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-03-06 02:30:40 -0500

mz gravatar image

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/dom...

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

edit flag offensive delete link more

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?

Tadteo gravatar imageTadteo ( 2021-04-06 10:37:25 -0500 )edit

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?

mz gravatar imagemz ( 2021-06-10 19:44:29 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-03-04 07:59:09 -0500

Seen: 360 times

Last updated: Mar 06 '21