Robotics StackExchange | Archived questions

Can't get ContainPlugin to trigger in Tutorial

Hello, I can't get this ContainPlugin to trigger the light on according to this tutorial (http://gazebosim.org/tutorials?tut=contain_plugin&cat=plugins).

I've downloaded the files to ~/gaztut/contain_plugin/,

then ran $ cmake ../ $ make in ~/gaztut/contain_plugin/build/,

set the source with $ usr/share/gazebo/setup.sh,

added the library path with $ export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:~/gaztut/contain_plugin/build,

then started $ gazebo ~/gaztut/contain_plugin/contain_example.world --verbose.

The ball rolls down and away but no light is triggered on. Shell shows:

Gazebo multi-robot simulator, version 9.8.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 134.130.76.57
[Wrn] [ColladaLoader.cc:1422] emission texture not supported
Service [/~/contain_example/enable] is not valid.
Topic [/~/contain_example/contain] is not valid.
[Msg] Started contain plugin [~/contain_example]
[Msg] Loading Example plugin

Are these two messages

Service [/~/contain_example/enable] is not valid.
Topic [/~/contain_example/contain] is not valid.

relevant? I've tried another world-file only launching but they still appear.

Further, what's the difference between ContainPlugin and OccupiedEvent from SimEventsPlugin? They both seem to trigger when something enters their specified area... Please help me! Thank you in advance! :)

Asked by gaznoob on 2019-03-27 03:35:05 UTC

Comments

Answers

"In gazebo 9 and beyond the gazebo topics are removed; only the ignition transport topics are available." The problem lies here. We need to use ignition transport services in order to get the plugin's messages. In the source code, the plugin publishes to a ignition topic. But I cant seem to find any examples yet.

Asked by dogukan_altay on 2019-04-19 01:41:16 UTC

Comments