Robotics StackExchange | Archived questions

Building examples from ignition rendering with colcon?

trying to build the simple_demo example in ignition-rendering has given me compile errors.

Here's the compile error: home/ddeng/ign_rendering_ws/src/ign-rendering/examples/simple_demo/Main.cc:30:10: fatal error: ignition/common/Console.hh: No such file or directory #include <ignition/common/Console.hh>

For reference hereโ€™s the github link: https://github.com/ignitionrobotics/ign-rendering/tree/ign-rendering5/examples/simple_demo

This all signifies that I'm missing ign-common. However, if I use the colcon build method with all the ignition dependencies in the src folder, I am unable to find the binaries for it - it looks like it wasn't built at all. Is there any way to get the examples to build correctly? Preferably with the colcon build manner of building.

Asked by ddengster on 2021-06-30 06:21:39 UTC

Comments

Answers

We have compilation instructions for that example using CMake here:

https://ignitionrobotics.org/api/rendering/5.1/simple_demo.html

It looks like you may not have sourced your Ignition installation? Did you source install/setup.sh from your Ignition colcon workspace?

Preferably with the colcon build manner of building.

I just tried here, and if you have all dependencies correctly installed and sourced, running colcon build inside examples/simple_demo works ๐Ÿ‘

Asked by chapulina on 2021-06-30 08:32:56 UTC

Comments

ah thanks, that worked! ๐Ÿ‘

Asked by ddengster on 2021-06-30 22:46:29 UTC