RenderingIface.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 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 _RENDERINGIFACE_HH_
18 #define _RENDERINGIFACE_HH_
19 
20 #include <string>
21 #include "gazebo/msgs/poses_stamped.pb.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace rendering
28  {
31 
33  GZ_RENDERING_VISIBLE
34  bool load();
35 
37  GZ_RENDERING_VISIBLE
38  bool init();
39 
41  GZ_RENDERING_VISIBLE
42  bool fini();
43 
46  GZ_RENDERING_VISIBLE
47  rendering::ScenePtr get_scene(const std::string &_name = "");
48 
54  GZ_RENDERING_VISIBLE
55  void update_scene_poses(const std::string &_name,
56  const msgs::PosesStamped &_msg);
57 
62  GZ_RENDERING_VISIBLE
63  rendering::ScenePtr create_scene(const std::string &_name,
64  bool _enableVisualizations,
65  bool _isServer = false);
66 
69  GZ_RENDERING_VISIBLE
70  void remove_scene(const std::string &_name);
71 
73  }
74 }
75 #endif
void remove_scene(const std::string &_name)
remove a rendering::Scene by name
Forward declarations for the common classes.
Definition: Animation.hh:26
rendering
Definition: RenderEngine.hh:31
rendering::ScenePtr get_scene(const std::string &_name="")
get pointer to rendering::Scene by name.
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:82
bool fini()
teardown rendering engine.
void update_scene_poses(const std::string &_name, const msgs::PosesStamped &_msg)
Update Poses via direct API call instead of transport.
bool init()
init rendering engine.
rendering::ScenePtr create_scene(const std::string &_name, bool _enableVisualizations, bool _isServer=false)
create rendering::Scene by name.
bool load()
load rendering engine.