PresetManagerPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_PHYSICS_PRESETMANAGER_PRIVATE_HH_
18 #define _GAZEBO_PHYSICS_PRESETMANAGER_PRIVATE_HH_
19 
20 #include <map>
21 #include <string>
22 #include <mutex>
24 
25 namespace gazebo
26 {
27  namespace physics
28  {
32  {
35  public: PresetPrivate(const std::string &_name = "default name")
36  : name(_name)
37  {
38  }
39 
41  public: std::string name;
42 
44  public: std::map<std::string, boost::any> parameterMap;
45 
47  public: sdf::ElementPtr elementSDF;
48  };
49 
50  class Preset;
51 
55  {
57  public: std::string currentPreset;
58 
60  public: std::map<std::string, Preset> presetProfiles;
61 
64 
66  public: std::mutex currentProfileMutex;
67  };
68  }
69 }
70 
71 #endif
std::map< std::string, Preset > presetProfiles
Map of all known preset profile pairs keyed by name.
Definition: PresetManagerPrivate.hh:60
sdf::ElementPtr elementSDF
SDF for the physics element represented by this object.
Definition: PresetManagerPrivate.hh:47
std::string currentPreset
Name of the current preset.
Definition: PresetManagerPrivate.hh:57
std::map< std::string, boost::any > parameterMap
Map of key, parameter pairs.
Definition: PresetManagerPrivate.hh:44
Definition: PresetManagerPrivate.hh:54
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:116
std::string name
Name of this preset profile.
Definition: PresetManagerPrivate.hh:41
std::mutex currentProfileMutex
Mutex to protect setting the current preset profile.
Definition: PresetManagerPrivate.hh:66
Definition: PresetManagerPrivate.hh:31
PhysicsEnginePtr physicsEngine
Physics engine instrumented by this PresetManager.
Definition: PresetManagerPrivate.hh:63
PresetPrivate(const std::string &_name="default name")
Constructor.
Definition: PresetManagerPrivate.hh:35
Representation of a preset physics profile.
Definition: PresetManager.hh:36