Unable to run system plugin in ignition gazebo

asked 2020-05-23 05:07:24 -0500

Jaeyoung-Lim gravatar image

updated 2020-05-23 05:16:08 -0500


I am trying to integrate PX4 SITL(Software-In-The-Loop) simulation into ignition gazebo.

However, when I add the plugin and start it from the world file, the plugin fails with the following error.

Warning [Model.cc:210] Non-unique names detected in XML children of model with name[x3].
[libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: ignition/msgs/time.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1164] CHECK failed: generated_database_- 
>Add(encoded_file_descriptor, size): 
terminate called after throwing an instance of 'google::protobuf::FatalException'
what():  CHECK failed: generated_database_->Add(encoded_file_descriptor, size):

The plugin itself I am trying to use a identifal plugin as in the System Plugin Tutorial. Removing the plugin from the world file allows ignition gazebo to run properly.

What would be causing the exception?

I am developing on Ubuntu 18.04 bionic,

$ ign gazebo --versions
edit retag flag offensive close merge delete


This usually happens when trying to mix 2 ign-msgs versions. Can you check ign msg --versions? Also check the version you compiled your plugin against?

chapulina gravatar imagechapulina ( 2020-05-26 12:56:21 -0500 )edit

@chapulina, right that seems highly probable

ign msg --versions

This was my cmake file

cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

find_package(ignition-cmake2 REQUIRED)
find_package(ignition-plugin1 REQUIRED COMPONENTS register)
find_package(ignition-gazebo2 REQUIRED)
set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR})
Jaeyoung-Lim gravatar imageJaeyoung-Lim ( 2020-05-27 06:48:20 -0500 )edit

Does this mean that I cannot have gazebo1 and ignition gazebo in the same system?

Jaeyoung-Lim gravatar imageJaeyoung-Lim ( 2020-05-27 06:49:35 -0500 )edit

I use Gazebo9+ and Ignition on the same system without any problems. It could be that your plugin is linked against the wrong ign-msgs version?

chapulina gravatar imagechapulina ( 2020-05-27 12:11:42 -0500 )edit