|
24 | 24 | #include <string>
|
25 | 25 | #include <vector>
|
26 | 26 | #include <sdf/Element.hh>
|
| 27 | +#include <sdf/Plugin.hh> |
27 | 28 | #include <sdf/Root.hh>
|
28 | 29 | #include <ignition/gazebo/config.hh>
|
29 | 30 | #include <ignition/gazebo/Export.hh>
|
@@ -86,12 +87,26 @@ namespace ignition
|
86 | 87 | /// \param[in] _name Name of the interface within the plugin library
|
87 | 88 | /// to load.
|
88 | 89 | /// \param[in] _sdf Plugin XML elements associated with this plugin.
|
| 90 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 91 | + /// sdf::Plugin interface. |
89 | 92 | public: PluginInfo(const std::string &_entityName,
|
90 | 93 | const std::string &_entityType,
|
91 | 94 | const std::string &_filename,
|
92 | 95 | const std::string &_name,
|
93 | 96 | const sdf::ElementPtr &_sdf);
|
94 | 97 |
|
| 98 | + /// \brief Constructor with plugin information specified. |
| 99 | + /// \param[in] _entityName Name of the entity which should receive |
| 100 | + /// this plugin. The name is used in conjuction with _entityType to |
| 101 | + /// uniquely identify an entity. |
| 102 | + /// \param[in] _entityType Entity type which should receive this |
| 103 | + /// plugin. The type is used in conjuction with _entityName to |
| 104 | + /// uniquely identify an entity. |
| 105 | + /// \param[in] _plugin SDF Plugin library information. |
| 106 | + public: PluginInfo(const std::string &_entityName, |
| 107 | + const std::string &_entityType, |
| 108 | + const sdf::Plugin &_plugin); |
| 109 | + |
95 | 110 | /// \brief Copy constructor.
|
96 | 111 | /// \param[in] _info Plugin to copy.
|
97 | 112 | public: PluginInfo(const PluginInfo &_info);
|
@@ -127,32 +142,56 @@ namespace ignition
|
127 | 142 |
|
128 | 143 | /// \brief Get the plugin library filename.
|
129 | 144 | /// \return Plugin library filename.
|
| 145 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 146 | + /// sdf::Plugin interface. |
130 | 147 | public: const std::string &Filename() const;
|
131 | 148 |
|
132 | 149 | /// \brief Set the type of the entity which should receive this
|
133 | 150 | /// plugin. The type is used in conjuction with EntityName to
|
134 | 151 | /// uniquely identify an entity.
|
135 | 152 | /// \param[in] _filename Entity type string.
|
| 153 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 154 | + /// sdf::Plugin interface. |
136 | 155 | public: void SetFilename(const std::string &_filename);
|
137 | 156 |
|
138 | 157 | /// \brief Name of the interface within the plugin library
|
139 | 158 | /// to load.
|
140 | 159 | /// \return Interface name.
|
| 160 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 161 | + /// sdf::Plugin interface. |
141 | 162 | public: const std::string &Name() const;
|
142 | 163 |
|
143 | 164 | /// \brief Set the name of the interface within the plugin library
|
144 | 165 | /// to load.
|
145 | 166 | /// \param[in] _name Interface name.
|
| 167 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 168 | + /// sdf::Plugin interface. |
146 | 169 | public: void SetName(const std::string &_name);
|
147 | 170 |
|
148 | 171 | /// \brief Plugin XML elements associated with this plugin.
|
149 | 172 | /// \return SDF pointer.
|
| 173 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 174 | + /// sdf::Plugin interface. |
150 | 175 | public: const sdf::ElementPtr &Sdf() const;
|
151 | 176 |
|
152 | 177 | /// \brief Set the plugin XML elements associated with this plugin.
|
153 | 178 | /// \param[in] _sdf SDF pointer, it will be cloned.
|
| 179 | + /// \note This will be deprecated in Gazebo 7 (Garden), please the use |
| 180 | + /// sdf::Plugin interface. |
154 | 181 | public: void SetSdf(const sdf::ElementPtr &_sdf);
|
155 | 182 |
|
| 183 | + /// \brief Get the SDF plugin information. |
| 184 | + /// \return The SDF Plugin object. |
| 185 | + public: const sdf::Plugin &Plugin() const; |
| 186 | + |
| 187 | + /// \brief Get a mutable version of the SDF plugin information. |
| 188 | + /// \return The SDF Plugin object. |
| 189 | + public: sdf::Plugin &Plugin(); |
| 190 | + |
| 191 | + /// \brief Set the SDF plugin information. |
| 192 | + /// \param[in] _plugin The SDF Plugin object to use. |
| 193 | + public: void SetPlugin(const sdf::Plugin &_plugin) const; |
| 194 | + |
156 | 195 | /// \brief Private data pointer
|
157 | 196 | private: std::unique_ptr<ServerConfig::PluginInfoPrivate> dataPtr;
|
158 | 197 | };
|
|
0 commit comments