/gazebo_magnet_plugin

How to write and debug a model plugin of Gazebo by Clion?

Primary LanguageMakefileMIT LicenseMIT

gazebo_magnet_plugin

I plan to update my computer from ubuntu16 to ubuntu20, save some code here.

This repo serves as a template to write a model plugin of Gazebo using Clion.

  1. Download the repo
git clone https://github.com/haoboluo/gazebo_magnet_plugin
cd gazebo_magnet_plugin
mv gazebo_plugin_tutorial/ ..
  1. Open a project for 'gazebo_plugin_tutorial' in Clion.

  2. Configure as:

  1. Test the compiled plugin:
roscore
rosrun gazebo_ros gzserver /home/luo/gazebo_plugin_tutorial/sphere_contact.world
gzclient