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.
- Download the repo
git clone https://github.com/haoboluo/gazebo_magnet_plugin
cd gazebo_magnet_plugin
mv gazebo_plugin_tutorial/ ..
-
Open a project for 'gazebo_plugin_tutorial' in Clion.
-
Configure as:
- Test the compiled plugin:
roscore
rosrun gazebo_ros gzserver /home/luo/gazebo_plugin_tutorial/sphere_contact.world
gzclient