Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A ROS node for Gazebo has not been initialized, unable to load plugin. Load the Gazebo system plugin 'libgazebo_ros_api_plugin.so' in the gazebo_ros package) #1517

Open
Burhanudin02 opened this issue Nov 23, 2023 · 1 comment

Comments

@Burhanudin02
Copy link

Burhanudin02 commented Nov 23, 2023

i was tried to run gazebo world using "gazebo --verbose /path/to/my/world" and the error "A ROS node for Gazebo has not been initialized, unable to load plugin. Load the Gazebo system plugin 'libgazebo_ros_api_plugin.so' in the gazebo_ros package" appear. I have installed the 'gazebo_ros_pkgs' in my catkin workspace and build it using 'catkin_make'. I also set the 'GAZEBO_PLUGIN_PATH' to '~/catkin_ws/devel/lib' which is where the .so files located. What should I do? Ask me if you need more information

ubuntu@MSI-GF63-Thin-10SC_ ~ 23_11_2023 07_06_34

@Burhanudin02
Copy link
Author

This error appear because ROS node for gazebo has not been initialized. Try to open your .world file using a launch file, for example you can see the empty_world.launch at '/gazebo_ros_pkgs/gazebo_ros/launch/'. For further use follow the format of the launch files at this example repo https://github.com/Intelligent-Quads/iq_sim and make some changes to refer my .world file. And if you have any issue with ardupilot sitl (in this case i following this tutorial https://github.com/Intelligent-Quads/iq_tutorials/blob/master/docs/installing_gazebo_arduplugin.md for ardupilot plugin instalation) you can do:

cd ~/ardupilot/Tools/autotest/
export PATH=$PATH:~/.local/bin
ln -s $(pwd)/sim_vehicle.py ~/.local/bin/sim_vehicle
cd ~/.local/bin
chmod +x sim_vehicle

then you can call your sitl (in this case for drone simulation)
sim_vehicle -v ArduCopter -f gazebo-iris --console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant