ModelPropShop.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 #include <string>
18 
19 // Include Rand.hh first to avoid osx compilation errors
20 #include "gazebo/math/Rand.hh"
21 #include "gazebo/common/Plugin.hh"
22 #include "gazebo/rendering/rendering.hh"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
30  {
32  public: virtual ~ModelPropShop();
33 
37  public: void Load(int _argc, char **_argv);
38 
40  private: void Init();
41 
43  private: void OnWorldCreated();
44 
46  private: void Update();
47 
49  private: event::ConnectionPtr updateConn;
50 
52  private: event::ConnectionPtr worldCreatedConn;
53 
55  private: transport::NodePtr node;
56 
58  private: transport::PublisherPtr pub;
59 
61  private: transport::PublisherPtr factoryPub;
62 
64  private: rendering::ScenePtr scene;
65 
67  private: rendering::CameraPtr camera;
68 
70  private: rendering::LightPtr light;
71 
73  private: boost::shared_ptr<sdf::SDF> sdf;
74 
76  private: std::string modelName;
77 
79  private: boost::filesystem::path savePath;
80  };
81 }
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:83
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:87
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:303
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:79
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66
This plugin will generate 5 pictures of a model: perspective, top, front, side, back.
Definition: ModelPropShop.hh:29