Gazebo | Ignition | Community
Ask Your Question

Plugins in Gazebo 9 - ROS Melodic

asked 2020-04-08 03:53:01 -0600

Anton gravatar image

updated 2020-04-10 13:18:21 -0600


I am having trouble using plugins in Gazebo 9.0.0, that came pre-installed with ROS. The specific plugin I'm trying to make work is the Actor Collions plugin (Found here)

I have tried downloading the plugin files, but it doesn't seem to have any effect on the collision of the actor at all.

Is this due to Gazebo not being a source installation, or something else entirely?

Thanks in advance!

I followed the install tutorial here, to install Gazebo 9.13.
I then downloaded the example files from the OSRF bitckbucket using the 9.13 tag. I put the actor_collisions example folder in a workspace by itself and tried running "gazebo" from the terminal.
I have tried both with and without using catkin_make to build my workspace first. The result is the actor walking around among the objects, but there's still no collision.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2020-04-21 16:04:37 -0600

relffok gravatar image

updated 2020-04-21 16:05:00 -0600

Hi, have you tried running it with the --verbose flag?

When I follow the steps you linked and run: gazebo ../ --verbose I get the error that the plugin could not be found:

Failed to load plugin cannot open shared object file: No such file or directory

If this is your case, you might need to set the environment variable, to tell Gazebo where to look for your plugin, something like this: export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:{path_to_your_ws}/actor_collisions/build and run the command again.

edit flag offensive delete link more


Thank you! This fixed my problem.

Anton gravatar imageAnton ( 2020-04-28 02:34:15 -0600 )edit

answered 2020-04-08 11:26:54 -0600

chapulina gravatar image

As you can see on the changelog, for Gazebo major version 9, that plugin is only available from Gazebo 9.1.0. Follow the install instructions here to install the latest minor release.

edit flag offensive delete link more


Thanks, that makes sense! As I'm using ROS Melodic, I would prefer to not use anything newer than Gazebo 9.x. What is the easiest way to install 9.13? When I use the command "sudo apt-get install gazebo9=9.13.0", i get an error that says this version was not found

EDIT: "sudo apt-get install gazebo9=9.13.0-1*" worked. Will test if this solves my initial problem

Anton gravatar imageAnton ( 2020-04-09 03:41:16 -0600 )edit

Upgrading to 9.13 did not fix the issue. I downloaded the example files from the 9.13 commit on Bitbucket ( so I think the files are correct...

Anton gravatar imageAnton ( 2020-04-09 04:28:53 -0600 )edit

Oh no :/ Could you update the question with steps to reproduce the issue and the error output you're seeing?

chapulina gravatar imagechapulina ( 2020-04-09 16:16:17 -0600 )edit

Yeah :/ I have updated the question, looking forward to your response :)

Anton gravatar imageAnton ( 2020-04-10 13:19:04 -0600 )edit

Hello chapulina, do you by chance have an update?

Anton gravatar imageAnton ( 2020-04-21 04:31:52 -0600 )edit

Did you follow these instructions? Also, does running with --verboseprint any errors?

chapulina gravatar imagechapulina ( 2020-04-21 21:40:58 -0600 )edit

Thank you, your link along with relffok's answer solved my issue :)

Anton gravatar imageAnton ( 2020-04-28 02:33:17 -0600 )edit

Question Tools



Asked: 2020-04-08 03:52:30 -0600

Seen: 944 times

Last updated: Apr 21 '20