Plugin Types
There are currently 5 types of plugins
- World
- Model
- Sensor
- System.
- Visual.
Hello WorldPlugin!
#include <gazebo/gazebo.hh> namespace gazebo { class WorldPluginTutorial : public WorldPlugin { public: WorldPluginTutorial() : WorldPlugin() { printf("Hello World!\n"); } public: void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf) { } }; GZ_REGISTER_WORLD_PLUGIN(WorldPluginTutorial) }
GZ_REGISTER_WORLD_PLUGIN,GZ_REGISTER_MODEL_PLUGIN, GZ_REGISTER_SENSOR_PLUGIN, GZ_REGISTER_SYSTEM_PLU
时间: 2024-11-06 17:17:55