##

ModelPropShop.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_PLUGINS_MODELPROPSHOP_HH_
#define GAZEBO_PLUGINS_MODELPROPSHOP_HH_
#include <string>
#include <ignition/transport/Node.hh>
#include "gazebo/common/Plugin.hh"
#include "gazebo/rendering/rendering.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
class GAZEBO_VISIBLE ModelPropShop : public SystemPlugin
{
public: virtual ~ModelPropShop();
public: void Load(int _argc, char **_argv);
private: void Init();
private: void OnWorldCreated();
private: void Update();
private: event::ConnectionPtr updateConn;
private: event::ConnectionPtr worldCreatedConn;
private: transport::NodePtr node;
private: transport::PublisherPtr pub;
private: transport::PublisherPtr factoryPub;
private: rendering::ScenePtr scene;
private: rendering::CameraPtr camera;
private: rendering::LightPtr light;
private: sdf::SDFPtr sdf;
private: std::string modelName;
private: boost::filesystem::path savePath;
// Place ignition::transport objects at the end of this file to
// guarantee they are destructed first.
private: ignition::transport::Node nodeIgn;
private: ignition::transport::Node::Publisher pubIgn;
private: ignition::transport::Node::Publisher factoryPubIgn;
};
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::transport::PublisherPtr
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
system.hh
gazebo::transport::NodePtr
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
gazebo::rendering::ScenePtr
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:82
gazebo::SystemPlugin
A plugin loaded within the gzserver on startup.
Definition: Plugin.hh:361
gazebo::event::ConnectionPtr
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::ModelPropShop
This plugin will generate 5 pictures of a model: perspective, top, front, side, back.
Definition: ModelPropShop.hh:32
gazebo::rendering::LightPtr
boost::shared_ptr< Light > LightPtr
Definition: RenderTypes.hh:86
gazebo::rendering::CameraPtr
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:90
Plugin.hh
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59