18 #ifndef _GAZEBO_PHYSICS_PRESETMANAGER_HH_ 19 #define _GAZEBO_PHYSICS_PRESETMANAGER_HH_ 21 #include <boost/any.hpp> 44 public:
Preset(
const std::string & _name);
51 public: std::string Name()
const;
59 public:
bool GetParam(
const std::string &_key, boost::any &_value)
const;
64 public:
bool SetParam(
const std::string &_key,
const boost::any &_value);
69 public:
bool HasParam(
const std::string &_key)
const;
82 public:
bool SetAllParamsFromSDF(
const sdf::ElementPtr _elem);
88 private:
bool SetAllParamsHelper(
const sdf::ElementPtr _elem);
92 public: sdf::ElementPtr SDF()
const;
97 public:
bool SDF(
const sdf::ElementPtr _sdfElement);
100 private: PresetPrivate *dataPtr;
103 class PresetManagerPrivate;
113 const sdf::ElementPtr _sdf);
121 public:
bool CurrentProfile(
const std::string &_name);
125 public: std::string CurrentProfile()
const;
129 public: std::vector<std::string> AllProfiles()
const;
136 public:
bool SetProfileParam(
const std::string &_profileName,
137 const std::string &_key,
const boost::any &_value);
147 public:
bool GetProfileParam(
const std::string &_name,
148 const std::string &_key, boost::any &_value)
const;
154 public:
bool SetCurrentProfileParam(
const std::string &_key,
155 const boost::any &_value);
164 public:
bool GetCurrentProfileParam(
const std::string &_key,
171 public:
bool CreateProfile(
const std::string &_name);
178 public: std::string CreateProfile(
const sdf::ElementPtr _sdf);
182 public:
void RemoveProfile(
const std::string &_name);
187 public:
bool HasProfile(
const std::string &_name)
const;
193 public: sdf::ElementPtr ProfileSDF(
const std::string &_name)
const;
199 public:
bool ProfileSDF(
const std::string &_name,
200 const sdf::ElementPtr _sdf);
205 public:
void GenerateSDFFromPreset(
const std::string &_name,
206 sdf::ElementPtr &_elem)
const;
211 private:
void GenerateSDFHelper(
const Preset &_preset,
212 sdf::ElementPtr &_elem)
const;
217 private:
void GeneratePresetFromSDF(
const sdf::ElementPtr _elem,
222 private:
Preset *CurrentPreset()
const;
225 private: PresetManagerPrivate *dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
default namespace for gazebo
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:126
Class to manage preset physics profiles.
Definition: PresetManager.hh:107
Representation of a preset physics profile.
Definition: PresetManager.hh:36